504 error Gateway Timeout.

Jamie Dolan jamiedolan at gmail.com
Sun Mar 20 22:21:46 MSK 2011


> Fine. But please note, this is only part of configuration. There are some
> files regarding to directive:
> /etc/nginx/vhosts/*
> Please include them also.

This is the vhost file for the site I am working on:

server {
          error_log /var/log/nginx/vhost-error_log warn;
          listen 173.255.200.107:80;
          server_name pawdogs.com www.pawdogs.com;
          access_log /usr/local/apache/domlogs/pawdogs.com-bytes_log bytes_log;
          access_log /usr/local/apache/domlogs/pawdogs.com combined;
          root /home/pawdogs/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://173.255.200.107:8081;
          include proxy.inc;
          }
          location @backend {
          internal;
          proxy_pass http://173.255.200.107:8081;
          include proxy.inc;
          }
          location ~ .*\.(php|jsp|cgi|pl|py)?$ {
          proxy_pass http://173.255.200.107:8081;
          include proxy.inc;
          }
          location ~ /\.ht {
          deny all;
          }


Thank You

Jamie



More information about the nginx mailing list