|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Hi,
I am trying to change the defalt index file for a particular directory by using DirectoryIndex in htaccess. I con't seem to get it to work. My htaccess file looks like this:
<FilesMatch ".inc.php$"> require valid-user AuthUserFile /dir/.htpasswd AuthName ISE-Forums AuthType Basic </FilesMatch>
DirectoryIndex wwwthreads.php
But I get an error that looks like this:
[Tue Feb 13 08:47:31 2001] [alert] [client 64.230.176.170] /dir/.htaccess: DirectoryIndex not allowed here
It seems kosher how I implemented DirectoryIndex, but something obviously is not.
Any ideas?
Thanks.
|
|
|
|
Joined: Jun 1999
Posts: 54
Member
|
Member
Joined: Jun 1999
Posts: 54 |
I've had the same problem too, anyone had answer?
|
|
|
|
Joined: May 1999
Posts: 242
Coder
|
Coder
Joined: May 1999
Posts: 242 |
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
It was a matter of changing my httpd.conf (apache configuration file) so that it would allow me to create new DirectoryIndex in htaccess. I needed to add the AllowOveride Indexes directive. Check http://httpd.apache.org/docs/mod/core.html#allowoverrideHope this helps -e
|
|
|
|
Joined: Jun 1999
Posts: 54
Member
|
Member
Joined: Jun 1999
Posts: 54 |
Thanks you all, I'll take a look on the docs you provided.[]/w3timages/icons/smile.gif[/]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|