NGINX server_name issues

Igor Sysoev igor at sysoev.ru
Tue Nov 29 07:57:34 UTC 2011


On Tue, Nov 29, 2011 at 02:41:27AM -0500, unai wrote:
> I have the following simple server block on NGINX:
> 
>  server {
>         listen 80;
>         listen 8090;
>         server_name st.rdsx.net;
>         autoindex on;
> 
>         root /home/users/saifbechan/st-rdsx-net;
>     }
> 
> After I include the relevant settings on my hosts file I get the
> following (unexpected) behavior:
> 
> (1) http://st.rdsx.net/ and http://st.rdsx.net:8090/ work fine;
> (2) http://st.rdsx.net:8090/future-cell-phone-technology-01-150x150.jpg
> works;
> (3) http://st.rdsx.net/future-cell-phone-technology-01-150x150.jpg ->
> ERROR! "The connection was reset"
> 
> I've been troubleshooting (3) for a couple hours and I'm unable to
> identify the culprit. I'm running NGINX 1.0.10 (latest stable) on Debian
> 6.0.2 32 bits.
> 
> This NGINX instance runs another 40 or 50 sites with no problems.
> 
> Could anyone enlighten me? Any thoughts?

Could you try debug log of the request ?

http://nginx.org/en/docs/debugging_log.html


-- 
Igor Sysoev



More information about the nginx mailing list