LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Nginx giving a 403 error. I don't know what's wrong. (http://www.linuxquestions.org/questions/linux-server-73/nginx-giving-a-403-error-i-dont-know-whats-wrong-861012/)

arco123 02-06-2011 09:45 AM

Nginx giving a 403 error. I don't know what's wrong.
 
I have been looking for a while now, but I keep getting 403's for maps but not for files... So if you go to http://gmod.ws/ you get the error but if you go to http://gmod.ws/index.php you don't.

I don't see where the problem is.

We're running a CentOS 5.5 box.

bathory 02-08-2011 03:24 AM

Hi and welcome to LQ,

I guess you have to add index.php in the index directive of nginx.conf:
Code:

index  index.html index.htm index.php;
Regards

prodev05 02-08-2011 03:34 AM

By default your web server should pull index.php|html|htm. The code 403 denotes issue related to permission. So kindly check on that. :)


All times are GMT -5. The time now is 06:51 PM.