Welcome! Log In Create A New Profile

Advanced

Getting rid of "Welcome to nginx"

August 16, 2011 02:37PM
Hi guys,

I've just setup nginx on my Ubuntu staging machine. Entering http://192.168.1.1/index.php works like a charm and loads the index.php file i've put in the /var/www/public_html folder. http://192.168.1.1 however instead shows the "Welcome to nginx!" page and not my index.php file.

What am I doing wrong? Here's my nginx config:

server {

listen 80 default;
root /var/www/public_html;
index index.php index.html index.htm;
server_name _;

location / {
try_files $uri $uri/ /index.html;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
SubjectAuthorPosted

Getting rid of "Welcome to nginx"

JoakimAugust 16, 2011 02:37PM

Re: Getting rid of "Welcome to nginx"

Mathias TeugelsAugust 16, 2011 03:43PM

Re: Getting rid of "Welcome to nginx"

JoakimAugust 16, 2011 04:13PM

Re: Getting rid of "Welcome to nginx"

JoakimAugust 17, 2011 08:46AM

Re: Getting rid of "Welcome to nginx"

Edho AriefAugust 16, 2011 04:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready