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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-27-2004, 11:07 PM
|
#1
|
LQ Newbie
Registered: Apr 2003
Location: Toronto, Ontario, Canada
Distribution: Red Hat
Posts: 29
Rep:
|
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
|
|
|
10-28-2004, 01:27 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
"-Indexes" will remove the Indexing - if you want to enable it then remove the "-" and restart apache.
|
|
|
10-28-2004, 02:21 PM
|
#3
|
LQ Newbie
Registered: Apr 2003
Location: Toronto, Ontario, Canada
Distribution: Red Hat
Posts: 29
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|