500 nginx bad gateway when Update vbulletin template
iLinux85
nginx-forum at nginx.us
Sun Sep 9 21:49:10 UTC 2012
and here is the nginx configurations for the site
server {
error_log /var/log/nginx/vhost-error_log warn;
listen 192.168.1.1:80;
server_name site.com www.site.com;
access_log /usr/local/apache/domlogs/site.com-bytes_log
bytes_log;
access_log /usr/local/apache/domlogs/site.com combined;
root /home/deltacom/public_html;
location / {
location
~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$
{
expires 7d;
try_files $uri @backend;
}
error_page 405 = @backend;
add_header X-Cache "HIT from Backend";
proxy_pass http://192.168.1.1:8081;
include proxy.inc;
}
location @backend {
internal;
proxy_pass http://192.168.1.1:8081;
include proxy.inc;
}
location ~ .*\.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://192.168.1.1:8081;
include proxy.inc;
}
location ~ /\.ht {
deny all;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230591,230592#msg-230592
More information about the nginx
mailing list