Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th January 2008, 07:47 AM
nuaing's Avatar
nuaing Offline
Registered User
 
Join Date: Feb 2005
Location: Bandung
Posts: 22
Talking httpd directory browse onf F7 (ok can browse) and F8 (Forbidden, error 403)

Hi... I use Fedora for my private server at my home. Primarily for holding local repositories for my other fedora box to save installation time and to save bandwidth. I usually put the repository in /var/www/html/yum/base/8/i386 for Fedora base repository. I am very suprised that in Fedora 8, I can not browse any repos when i try to look at http://192.168.1.1/yum/base/8/i386, which has no index.* file on it. Firefox said that it's forbidden (error 403).

This is what F8 said:
Quote:
Forbidden

You don't have permission to access /base/8/i386/ on this server.
Apache/2.2.0 (Fedora) Server at 192.168.1.1 Port 80
this thing prevent yum to install anything too!!

This problem never happen in Fedora 7 with the same scheme of httpd.conf and the repository that i put on /var/www/html/base/8/i386. With Fedora 7 as my web server I still can browse my repos on the same style of url.

I try to compare httpd.conf from F7 and F8, but for my newbie eye there's no difference? is there is something still missing, since F8 always said Forbidden to browse on those web directory?
__________________
First time knew linux :confused:
then :mad: --> still lack of knowledge and not now where to ask to
then :( --> almost frustated.....
then :) I got FC 3 and learning process continue and refreshen...
now :D Promblems? Just calm... It will be fixed...
then :cool: my friends ask me a lot about this....
:eek: there still many things that I do not know and I have to dig with you all
Reply With Quote
  #2  
Old 24th January 2008, 09:07 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
You have Selinux on?

If so look at:
Code:
su -
system-config-firewall
Reply With Quote
  #3  
Old 25th January 2008, 11:48 PM
dshaw256 Offline
Registered User
 
Join Date: Mar 2006
Location: Virginia
Age: 59
Posts: 246
Have a look at this web site:

http://www.felipecruz.com/blog_disab...ing-apache.php

This shows you how to DISALLOW browsing directories using Apache. I'm guessing you'll find an "Options" statement that does not include the Indexes directive, and that adding it might switch it back on for you.

You might compare the httpd.conf files from your FC7 and FC8 machines and see if they differ in this area.

Happy hunting - httpd.conf is fairly big.
__________________
Dave Shaw
Registered Linux user #412525
Dell Latitude D610 / FC13
dshaw256@centurylink.net

no problem is so bad that a moron with root can't make it much worse
Reply With Quote
  #4  
Old 30th January 2008, 09:42 AM
Jkm3141 Offline
Registered User
 
Join Date: Jun 2007
Posts: 11
I have a slightly different problem. What would prevent directory browsing on my XFS partition, but not on my EXT3 partitions? This problem only occurs on FC7 (current install on my server) but it worked great on my older install of FC3 (too old to use anymore). Ive checked over httpd.conf so many times...
Reply With Quote
  #5  
Old 30th January 2008, 03:22 PM
krishna.hore Offline
Registered User
 
Join Date: Jan 2008
Posts: 25
Facing same problem

tried adding "option indexes "...
not working for me..
Is there someone , who is using F8, and is able to produce directory listing....
Please post your configuration file ..
Thanks in advance...
Reply With Quote
  #6  
Old 30th January 2008, 04:19 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
Using a completely unmodified httpd.conf from the httpd-2.2.6-3 package I created a directory /var/www/html/browsable, touched 3 files in it and was immediately able to browse the directory.

Have you checked your error log for hints on what is the matter? Is the directory readable and executable by the apache user?
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #7  
Old 1st February 2008, 04:51 AM
krishna.hore Offline
Registered User
 
Join Date: Jan 2008
Posts: 25
Thumbs up

Yeppie... I got it too

To enable directory listing

PART-I
======
1) Navigate to folder "/etc/httpd/modsecurity.d/"
2) Open the file "modsecurity_crs_10.conf" in your favorite text editor.
3) Search for the line "SecResponseBodyAccess On", change it to "SecResponseBodyAccess Off"
4) Save the file and exit.
5) Open the file "/etc/httpd/conf.d/welcome.conf"
6) Comment out the line "Options -Indexes"

PART-II
=======
I have my virtualhost declarations in "/etc/httpd/conf.d/system-config-httpd.conf"
Alternatively you may find it in "/etc/httpd/conf/httpd.conf"

1) Add the following lines in your Virtualhost declaration

<Directory "/path/to/web_directory/">
Options Indexes
</Directory>
Reply With Quote
  #8  
Old 31st March 2008, 10:14 AM
leenuxuser Offline
Registered User
 
Join Date: Mar 2008
Posts: 16
403 forbidden

I am using fedora 7 and I installed apache, php and mysql from yum, but whenever I try to access the web page, I get this following error

[B]Forbidden

You don't have permission to access /phpinfo.php on this server.
Apache/2.2.8 (Fedora) Server at localhost Port 80[/B]


I did create phpinfo.php and save it in /var/html/www. I tried "system-config-firewall" , but such command does not exist. I have installed firestarter.How do I solve my problem ?

Last edited by leenuxuser; 1st April 2008 at 06:11 AM.
Reply With Quote
Reply

Tags
403, browse, directory, error, forbidden, httpd, onf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can SSH but can't browse the web? GammaPoint Servers & Networking 4 4th April 2008 03:14 AM
browse ilcarlos Servers & Networking 0 19th November 2006 09:08 AM
Can browse FedoraForum.org, can't browse google.com josephy Installation and Live Media 6 16th February 2006 11:12 AM
Bash script to browse directory with a custom output ? raf_iso Using Fedora 8 12th January 2006 05:13 PM


Current GMT-time: 22:22 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat