server { server_name example.net www.example.net; listen 80; root /var/www/example.net/public_www; index index.php index.html index.htm; error_log /var/log/nginx/example.net.error.log info; access_log /var/log/nginx/example.net.access.log; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; location = /favicon.ico { log_not_found off; access_log off; } location = /xmlrpc.php { log_not_found off; # access_log off; deny all; } location ~ /\.ht { deny all; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { # expires max; expires 1w; expires 14d; # log_not_found off; # access_log off; } location / { proxy_pass http://127.0.0.1:8080/; } }