For me I have another problem.
I have two servers behind nginx but nginx seems to get only the first server in the config file.
I have this :
server_name_in_redirect off;
server {
listen 80;
server_name server1.domain.com;
access_log logs/server1.access.log;
error_log logs/server1.nginx_error.log;
location / {
proxy_pass http://server1.domain.com/;
}
location /server1/ {
proxy_pass http://server1.domain.com/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80;
server_name server2.domain.com;
access_log logs/server2.access.log;
error_log logs/lacie1.nginx_error.log;
location / {
proxy_pass http://server2.domain.com/;
}
location /server2/ {
proxy_pass http://server2.domain.com/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
I don't understand why the second server is not active in the config file.
Please help me.
Thank you
Edited 1 time(s). Last edit at 06/06/2011 05:38PM by Tag.