Author |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Thu 24 Jan '08 1:06 Post subject: Error 403 |
|
|
All,
I am getting an error 403 in my root dir but I cant figure out what is causing it. I allowed Indexes for /var/www/html but somewhere in my httpd.conf there must be a second entry that overrides that one. But I cant find it. Arrggghhhhhh. I have pasted my httpd.conf below. I searched it for a 2nd reference for /var/www/html but I didnt see anything. ANy help is MUCH appreciated:
ServerRoot "/etc/httpd"
Listen 8070
Include conf.d/*.conf
User apache
Group apache
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /cc /home/cmckinney/pubx
<Directory "/home/cmckinney/pubx">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /whiteslimo /home/whiteslimo/pubx
<Directory "/home/whiteslimo/pubx">
Options Indexes FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
Alias /clarkes /home/clarkes/pubx
<Directory "/home/clarkes/pubx">
Options Indexes FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/share/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/share/awstats/wwwroot/cgi-bin/"
<Directory "/usr/share/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Modnote: Do NOT post the whole httpd.conf see the forum rules |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 24 Jan '08 12:06 Post subject: |
|
|
Are you sure that apache is the owner of that folder? AFAIK there is no user and group apache by default under Linux.
Which is your OS? |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Thu 24 Jan '08 16:22 Post subject: |
|
|
James Blond wrote: | Are you sure that apache is the owner of that folder? AFAIK there is no user and group apache by default under Linux.
Which is your OS? |
I apologize for putting the conf file in my msg. I didnt read the rules enough *doh* lol. But to answer your Questions:
Im running on Fedora Core 7
The owner of that particular folder (/var/www/html) is root |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Thu 24 Jan '08 16:26 Post subject: |
|
|
James Blond wrote: | Are you sure that apache is the owner of that folder? AFAIK there is no user and group apache by default under Linux.
Which is your OS? |
I just checked and I do have a user and group called apache setup |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 24 Jan '08 16:57 Post subject: |
|
|
So you have to chances:
a) change the owner and the group of the the folder to apache
b) chmod 0777
Second solution is there bad one |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Thu 24 Jan '08 17:55 Post subject: |
|
|
James Blond wrote: | So you have to chances:
a) change the owner and the group of the the folder to apache
b) chmod 0777
Second solution is there bad one |
I guess Ill change the owner to Apache and see if the sitemap works then. BRB |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Thu 24 Jan '08 18:03 Post subject: |
|
|
jpaulwhite wrote: | James Blond wrote: | So you have to chances:
a) change the owner and the group of the the folder to apache
b) chmod 0777
Second solution is there bad one |
I guess Ill change the owner to Apache and see if the sitemap works then. BRB |
Ok changed owner and group to apache, didnt work
Changed permissions to 777 that didnt work either
Looked in my hhtp error log and saw
[Thu Jan 24 04:28:29 2008] [error] [client 85.92.84.232] Directory index forbidden by Options directive: /var/www/html/, referer: http://dclimo.dyndns.org/
[Thu Jan 24 04:31:46 2008] [error] [client 85.92.84.232] Directory index forbidden by Options directive: /var/www/html/, referer: http://dclimo.dyndns.org/
Same error I have been getting all along. But I dont see where that directive is being overridden in my httpd.conf. Arrrggghhhhhh |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 24 Jan '08 18:57 Post subject: |
|
|
Fedora is whacky, I have Fedora 6, the biggest problem I had was with SELinux. Because you have changed to a port other than 80, I would bet SELinux is getting in the way. |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Thu 24 Jan '08 19:09 Post subject: |
|
|
glsmith wrote: | Fedora is whacky, I have Fedora 6, the biggest problem I had was with SELinux. Because you have changed to a port other than 80, I would bet SELinux is getting in the way. |
Actually I have SELinux disabled. For some reason that OPtions directive is being overridden somehow or another |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Fri 25 Jan '08 1:37 Post subject: |
|
|
You might want to search all of the .conf files which get included into httpd.conf: Code: | grep -i Indexes /etc/httpd/conf.d/*.conf |
Is there any index.html file in /var/www/html ?
-tom- |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Fri 25 Jan '08 19:36 Post subject: |
|
|
tdonovan wrote: | You might want to search all of the .conf files which get included into httpd.conf: Code: | grep -i Indexes /etc/httpd/conf.d/*.conf |
Is there any index.html file in /var/www/html ?
-tom- |
I added that and it worked. Now I cant get indexing to work on any of my subdirectories though. Arrrggghhhh. Im working on home/whiteslimo/pubx now (One websites root) |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Fri 25 Jan '08 20:08 Post subject: |
|
|
re: "I added that and it worked"
I'm confused. Added what?
The "grep" suggestion was a shell command to see if you have any other config files which could interfere with indexing. Did it find any? Did you change them somehow?
-tom- |
|
Back to top |
|
jpaulwhite
Joined: 14 Oct 2006 Posts: 10
|
Posted: Fri 25 Jan '08 20:16 Post subject: |
|
|
tdonovan wrote: | re: "I added that and it worked"
I'm confused. Added what?
The "grep" suggestion was a shell command to see if you have any other config files which could interfere with indexing. Did it find any? Did you change them somehow?
-tom- |
I saw in conf.d there was a file that was called if there was no index.html welcome.conf was the name I think. So I added an index.html to my www root and that corrected it |
|
Back to top |
|