PDA

View Full Version : ISPConfig .htaccess Options +Indexes


davidcampbell
21st March 2008, 14:38
I have a Debian Etch 4.0r2 running the latest version of ISPConfig (installed last weekend) + phpmyadmin module addon

I'm having an issue with allowing Directory Indexes, all the apache servers I've worked with before (I'll admit, Im fairly noob-ish :rolleyes: ) have just let me add a .htaccess file in the directory and add the lines

Options +Indexes
IndexOptions +FancyIndexing

And that will make my indexing work, but in ISPConfig I get a 500 Internal Server Error page coming up... can somebody help me :confused:

daveb
22nd March 2008, 01:00
Not sure if this is the safest way, but I added this to the apache directives feild for the site that I wanted to have indexed.
<Directory /path/to/dir>
Options +Includes +Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

davidcampbell
22nd March 2008, 10:37
Thanks alot, that works nicely... but can I ask, is there anyway to allow this to work directly with .htaccess files?

falko
22nd March 2008, 17:34
At the end of /etc/apache2/apache2.conf, you should find something like this:

<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>You can adjust that to your likings.

bhwong
29th October 2009, 05:35
Is this file located under /etc/apache2/sites-enabled/000-default?

And do I have to restart apache after editing this for it to take effect?

bhwong
29th October 2009, 05:56
I add :80 as suggested at: http://bugtracker.ispconfig.org/index.php?do=details&task_id=672

But I still receive the same error with :80 added:

[error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

falko
29th October 2009, 23:51
Is this file located under /etc/apache2/sites-enabled/000-default?

And do I have to restart apache after editing this for it to take effect?

Do you use ISPConfig 2 or 3?

bhwong
30th October 2009, 03:05
I use ISPConfig3

till
30th October 2009, 09:50
Then your're in the wrong forum. This thread and Forum is about ISPConfig 2, which is a completely different doftware then ISPConfig 3 and everything that is posted here does not apply to your installation.

bhwong
30th October 2009, 13:05
Oh, so sorry. I will repost this to the correct forum.