nginx as reverse proxy for runining apache
There is an example from the book Nginx Http Server, page 235.
server { server_name .example.com; root /home/example.com/www; location ~* \.php.$ { # Proxy all requests with an URI ending with .php* # (includes PHP, PHP3, PHP4, PHP5...) proxy_pass http://127.0.0.1:8080; } location / { # Your other options here for static content # for example cache control, alias... expires 30d; }}