LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2004, 09:35 AM   #1
Alan Powell
LQ Newbie
 
Registered: Nov 2003
Location: UK
Distribution: Redhat
Posts: 10

Rep: Reputation: 0
Virtual Hosts/Directory Index Forbidden by Rule


Hello all, can you help please?

I am ditching using a win2K server for all sorts of reasons and am migrating
to Linux RH9.

My server is built and seems to work ok when I have a default site to serve
with Apache 2.0.40. I have set my group and ownership of directory and
files to apache for /var/www/<all subs and content>. The permissions are
set so that the directories are readable and executable by everybody
(rwxr-xr-x) and the files are readable by everybody (rw-r--r--).

The default site was viewable up until I try to add a virtual host using the
apacheconf tool. I am no longer able to see the default site; I get
redirected to the Apache Web Server test page.

The error logs say "Directory index forbidden by rule:
/var/www/<subdirectory>.

I have enabled the indexing of all the sites.

Any ideas please?

Regards

Alan
 
Old 04-08-2004, 12:42 PM   #2
Alan Powell
LQ Newbie
 
Registered: Nov 2003
Location: UK
Distribution: Redhat
Posts: 10

Original Poster
Rep: Reputation: 0
panic over - all fixed

a duff dns and host config issue
 
Old 04-24-2004, 02:42 AM   #3
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Rep: Reputation: 15
A solution?

I am having a similar problem so if Alan can write down how to fix it? or if someone else knows how to fix it I'd Really appreciate it.

I have Apache set up with virtual hosts and am getting Directory Forbidden but the directories are all screwed up in the error logs.

Should I start a different thread for this question?

Cheers
Checta
 
Old 04-26-2004, 07:09 AM   #4
Alan Powell
LQ Newbie
 
Registered: Nov 2003
Location: UK
Distribution: Redhat
Posts: 10

Original Poster
Rep: Reputation: 0
Hi checta

My final solution to the situation I experienced was to do a complete RH9 clean install, post a simple web page with a phpinfo/cgi/mySQL setup to prove Apache was serving and interacting to the other services/daemons correctly.

Why? Well I had originally used synaptic to update my RH9 build but I suspect that that had changed my default config in some strange way that had contributed to my "forbidden by rule" situation. Certainly it made no difference by any chmods I made and my httpd.conf was working ok on a default RH9 install elsewhere.

On IRC I spoke to a guy who said he had had better experience in updating his RH* configs using yum. Having proved my clean install config was ok and then my virtual hosts setup, I then updated with yum and all is still ok. I shall be staying with yum in preference to up2date or synaptic.

By the way, to those reading this; where do folks usually place their mySQL databases on RH linux platforms for Apache interaction please?

Good luck checta!

Alan
 
Old 04-26-2004, 07:35 AM   #5
checta
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Rep: Reputation: 15
Thanks!

Hi Alan!
Thanks for your reply - fortunately my problem wasn't as complicated as yours and I managed to figure it out. I just had some problems with my hosts. (ie )

Cheers,
Claire
 
  


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
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 02:32 AM
Apache2 virtual host cgi 403 Forbidden / mossy Linux - Software 15 07-27-2005 05:56 PM
Index pages for virtual hosts dienerk Linux - General 1 10-22-2004 01:44 PM
403 Forbidden on Virtual Servers with PHP scripts tonyboy Linux - Software 3 03-11-2004 11:43 AM
Question on virtual hosts and CGI-BIN directory cgchris99 Linux - General 9 10-11-2002 12:57 PM


All times are GMT -5. The time now is 08:41 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration