LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 11:07 PM   #1
Magueta
LQ Newbie
 
Registered: Apr 2003
Location: Toronto, Ontario, Canada
Distribution: Red Hat
Posts: 29

Rep: Reputation: 15
Apache 2, Virtual Hosts, Indexing


Greetings.

I've been trying to setup Virtual hosting on my server and have been successful getting it to host html files. However, I cannot get the virtual host to create an index. I've tried commenting and uncommenting things and searching Google, reading Apache documentation and posting on some forums. Here's where I'm at. When I try to access my virtual host without an index file I get the following error message in my error_log:

[Wed Oct 27 23:38:46 2004] [error] [client 192.168.1.1] Directory index forbidden by rule: /var/www/TechSupport/


I've checked the permissions on all the folders in the path and they are all the same. Note my regular webserver indexes fine but my virtual host doesn't. Here's the kicker, if I comment out the following entry

<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>

then the index is generated for the virtual host document root which is actually /var/www/TechSupport.

Anyone have any ideas?
Thanks

Joe
 
Old 10-28-2004, 01:27 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
"-Indexes" will remove the Indexing - if you want to enable it then remove the "-" and restart apache.
 
Old 10-28-2004, 02:21 PM   #3
Magueta
LQ Newbie
 
Registered: Apr 2003
Location: Toronto, Ontario, Canada
Distribution: Red Hat
Posts: 29

Original Poster
Rep: Reputation: 15
I want indexing to not be possible for the root directory so I would like to keep the -Indexes where it is, but why would that entry affect indexing for my virtual server directory if it isn't the same thing?

Joe
 
  


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
Apache Virtual Hosts dienerk Linux - General 15 10-16-2004 12:46 AM
Apache/Virtual Hosts Help C-Squared Linux - General 9 08-04-2003 12:45 PM
Apache virtual hosts Mil0 Linux - Software 5 06-01-2003 11:58 PM
apache virtual hosts jonfa Linux - General 1 06-04-2002 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:23 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
Open Source Consulting | Domain Registration