LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09: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, 03:24 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
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, 03:34 AM   #3
prodev05
Member
 
Registered: Jul 2009
Location: Planet 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 08:00 PM
"lighttpd" giving 403 Forbidden error nishith Linux - Server 2 05-29-2010 12:32 PM
Apache and Named Virtual Hosts Giving 403 Forbidden Error durus123 Linux - Server 1 09-05-2009 06:24 AM
Apache and Named Virtual Hosts Giving 403 Forbidden Error PekinSOFT Linux - Server 2 04-15-2009 02:07 AM
Apache giving mysterious 403 Forbidden ktvoelker Linux - Software 5 03-14-2005 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration