Index apache2.conf

Hello, I would like to ask for your help, I am trying to make an index on a subdomain “dl.duduweb.ovh” as below.

I modified the apache file but without success.

/etc/apache2/apache2.conf

<Directory "/home/dudu_web/web/dl.duduweb.ovh/public_html/">
Options +Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>

<Directory "/var/www/">
Options +Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>

Thank you for your help!**

Don’t edit the main apache conf file, instead add a .htaccess file with Options +Indexes directive.

echo 'Options +Indexes' >> /home/dudu_web/web/dl.duduweb.ovh/public_html/.htaccess
3 Likes

Thank you, you solved my problem.
Thank you very much!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.