Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-07-11, 11:09 AM
Junior Member
 
Join Date: Jul 2007
Posts: 2
Loundry is on a distinguished road
Default .htaccess allows access in one directory, but not another

Background:

1. I have two separate Virtual servers set up, let's call them exampleA.net and exampleB.net

2. Webalizer dumps stats for these two virtual servers, repectively, into exampleA.net/stats and exampleB.net/stats. (That's the URL, from the filesystem it's /var/domains/exampleA.net/htdocs/stats, and similiarly for exampleB.net)

3. I have .htaccess files in both /stats directories which points to /var/domains/exampleA.net/.htpasswd (and similarly for exampleB.net)

Here is the behavior:

1. Connect to exampleA.net/stats, login with correct username / password. Success

2. Connect to exampleB.net/stats, login with correct username / password. Forbidden

3. Connect to exampleB.net/stats/index.html with correct username / password. Success

I can see that apache redirects exampleB.net/stats to exampleB.net/stats/ (with trailing slash) before it gives a 403 error (Forbidden).

Can someone explain to be why in the case of exampleB.net, the DirectoryIndex (index.html) is NOT being served? Perhaps can you also explain why this is NOT an issue in exampleA.net?

Thank you!
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.