nginix not servic static content as part of page

JohnSchulze nginx-forum at nginx.us
Fri Feb 5 23:26:55 MSK 2010


Oh, and here is my full nginx.conf contents: 

error_log  logs/error.log;
worker_processes  1;
events { 
    worker_connections  1024; 
}

http {
    include mime.types;
    default_type application/octet-stream;
	
    upstream  mysite {
        server 127.0.0.1:4004;
    }
    server {
        #note: not actual IP
        listen 111.222.333.444:80; 
        server_name  _;
        return 444;
    }
    server {
        #note: not actual IP
        listen 111.222.333.444:80; 
        server_name new.mysite.co.uk; 
        root ../rails/MySite/public;
		
            location / {
                try_files $uri @rails;
            }

            location @rails {
                proxy_pass http://mysite$request_uri;
            }

        proxy_set_header        Host            $host;
        proxy_set_header        X-Real-IP       $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Grateful for any help! 

JS

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,50870,51099#msg-51099




More information about the nginx mailing list