Welcome! Log In Create A New Profile

Advanced

Accessing site problem

Posted by scoobydoo 
Accessing site problem
July 01, 2013 03:42PM
Hi,

I'm having problems accessing an nginx hosted site. On the server hosting the site, i can ssh in and run;

w3m http://localhost/mysite

And everything works OK

But when i try to access the sitre from another machine on the same network via a browser i get 'can't establish a connection to the server at xxx.xx.x.xx'

I'm able to ping the server and connect via PuTTY etc

Any help working out what could be wrong appreciated.

Thanks.
Re: Accessing site problem
July 01, 2013 04:01PM
Hi,

I found the answer to my own question. Posting here incase others have same issue.

The solution was to alter the listen server setting in /etc/sites-enabled/mysite to be;

listen *:80 default_server;

(it was listen 127.0.0.1:80 default_server)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready