• 0

Can't get .htaccess file to work.


Question

I've put my /home/site/.htaccess file one level up from the root of my web directory (/home/site/www/)

I keep getting 500 Internal Server Errors with Apache 1.3.33. I'm not sure that's wrong, does .htaccess not support <Directory> Scope Containers?

&lt;Directory /home/site/www/&gt;
DirectoryIndex index.php index.htm index.html
Options -Indexes
Redirect /1 http://www.yahoo.com/
&lt;/Directory&gt;

&lt;Directory /home/site/www/subdirectory/private/&gt;
Options +Indexes
AuthType Basic
AuthName "Private"
AuthUserFile /home/site/.htpasswd
Require valid-user
&lt;Limit GET POST&gt;
require valid-user
&lt;/Limit&gt;
&lt;/Directory&gt;

&lt;Directory /home/site/www/subdirectory/scripts/&gt;
DirectoryIndex home.html
AuthType Basic
AuthName "Scripts"
AuthUserFile /home/site/.htpasswd
Require valid-user
&lt;Limit GET POST&gt;
require valid-user
&lt;/Limit&gt;
&lt;/Directory&gt;

&lt;Directory /home/site/www/mail/&gt;
AuthType Basic
AuthName "eMail"
AuthUserFile /home/site/.htpasswd
Require valid-user
&lt;Limit GET POST&gt;
require valid-user
&lt;/Limit&gt;
&lt;/Directory&gt;

This is shared hosting, so I don't have access to the main server configuration. I changed some of the names because I don't want to share that information.

Any and all help is appriciated.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.