Previous Thread
Next Thread
Print Thread
Rate Thread
#208350 02/13/2001 10:12 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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.




Sponsored Links
Joined: Jun 1999
Posts: 54
Member
Member
Offline
Joined: Jun 1999
Posts: 54
I've had the same problem too, anyone had answer?


Joined: May 1999
Posts: 624
Master Hacker
Master Hacker
Offline
Joined: May 1999
Posts: 624
You need the path:

DirectoryIndex /cgi-bin/wwwthreads/wwwthreads.pl

[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]

Joined: May 1999
Posts: 242
Coder
Coder
Offline
Joined: May 1999
Posts: 242
Might take a look at this if you haven't already:

http://www.wwwthreads.com/support/configuration/passprotect/index.html



- Six
[email protected]
mYth productions

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
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#allowoverride

Hope this helps

-e


Sponsored Links
Joined: Jun 1999
Posts: 54
Member
Member
Offline
Joined: Jun 1999
Posts: 54
Thanks you all, I'll take a look on the docs you provided.[]/w3timages/icons/smile.gif[/]



Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)