LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-06-2011, 08:45 AM   #1
arco123
LQ Newbie
 
Registered: Feb 2011
Location: Belgium
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
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.
 
Old 02-08-2011, 02:24 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
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
 
Old 02-08-2011, 02:34 AM   #3
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using nginx + thin giving Invalid form authenticity token error deoren Linux - Server 0 11-12-2010 07:00 PM
"lighttpd" giving 403 Forbidden error nishith Linux - Server 2 05-29-2010 11:32 AM
Apache and Named Virtual Hosts Giving 403 Forbidden Error durus123 Linux - Server 1 09-05-2009 05:24 AM
Apache and Named Virtual Hosts Giving 403 Forbidden Error PekinSOFT Linux - Server 2 04-15-2009 01:07 AM
Apache giving mysterious 403 Forbidden ktvoelker Linux - Software 5 03-14-2005 11:41 AM


All times are GMT -5. The time now is 05:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration