i have question

You need an .htaccess file in your public_html directory, and this line needs to be included in the file:
Code:
Options +Indexes
Jeff
 
i want to do this in all my server

i need do this in admin user?
 
Last edited:
If you really want to do this (it could be somewhat of a security risk; for example it could allow people to find mysql passwords which store credit card and order info), you can.

With a shell access as root, edit the /etc/httpd/conf/httpd.conf file

Look for this text:
Code:
<Directory /home/*>
    AllowOverride All
    Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
(on one of my servers it starts on line 210; your experience may be different)

and change the line that begins with Options:
Code:
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
Change -Indexes to +Indexes

Then save the file and restart apache.

Jeff
 
If you really want to do this (it could be somewhat of a security risk; for example it could allow people to find mysql passwords which store credit card and order info), you can.

With a shell access as root, edit the /etc/httpd/conf/httpd.conf file

Look for this text:
Code:
<Directory /home/*>
    AllowOverride All
    Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
(on one of my servers it starts on line 210; your experience may be different)

and change the line that begins with Options:
Code:
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
Change -Indexes to +Indexes

Then save the file and restart apache.

Jeff

I do this is and remove the .htaccess file but is not working...

I get Forbiddenand, so I put again .htaccess in the user..

but I want to do this in all server
 
Last edited:
Sorry, I didn't realize the information would be overwritten in the site-specific httpd.conf include files.

To fix it you'll need to:

a) copy the virtual_host*.conf files in the templates directory to the templates/custom directory:
Code:
# cp /usr/local/directadmin/data/templates/virtual_host*.conf custom/
Then change to that directory, and edit all these files; change -Indexes to +Indexes.

This will work for all domains set up in the future. There's probably a command you can use to rewrite all the existing domains to use the new template for existing domains, but I'm not sure what it might be. Anyone else?

Otherwise you'll have to manually change these files:

/usr/local/directadmin/data/users/*/httpd.conf

Jeff
 
Back
Top