Welcome! Log In Create A New Profile


NGINX server_name issues

November 29, 2011 02:41AM
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?

Thank you so much!
Subject Author Posted

NGINX server_name issues

unai November 29, 2011 02:41AM

Re: NGINX server_name issues

Igor Sysoev November 29, 2011 02:58AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 284
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready