Welcome! Log In Create A New Profile

Advanced

NGINX 404 page not found

Posted by krax 
NGINX 404 page not found
April 02, 2011 04:29AM
hi
excuse me to bother you with this

I install nginx on slackware X64 and I configure my nginx according towhat was on the nginx wiki and !pitfall but when i go to the address i get 404 page not found .
I know it is not the way of asking for help but I paste my nginx.conf and /etc/sites-available/defult in pastbin
after install i just had nginx.conf and the sites-available and sites-enabled was not there so I created them and change the nginx.conf and move the rest of it to /etc/nginx/sites-available/default
I could not think of any way which resolve the situation and need help

nginx.conf
http://pastebin.com/QS0QAfge


/etc/nginx/sites-available/default


http://pastebin.com/af9ge8Pa

I would be gratfull if you help me
Bye
Re: NGINX 404 page not found
April 17, 2011 06:59PM
Im by no means in expert on nginx but here are some general tips I normally try:

What are the permissions on your www dir? (can nginx read that dir?)
ls -l /var/www/nginx-default

Have you tried creating a test html file?
e.g.
echo "testing" > /var/www/nginx-default/test.html

then load that page up in your browser: (replace localhost with your servers domain name or ip address
http://localhost/test.html

.... Did any of that help?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready