Nethserver version : 7.3.1611
Module : nethserver-virtualhosts
I’m playing with awstats and I find something strange, for now it is a support post, but It might be probably a bug
When you create a virtualhost by the panel, you cannot browse the content even it the ‘Options +Indexes’ is set in the relevant apache virtualhost setting(/etc/httpd/conf.d/virtualhosts.conf), the default nethserver welcome page is displayed.
In the log you can find an error
[Tue May 09 19:04:25.214037 2017] [autoindex:error] [pid 25066] [client 192.168.12.25:35836] AH01276: Cannot serve directory /var/lib/nethserver/vhost/toto.plop.com/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
of course if you put an index.html in /var/lib/nethserver/vhosts/toto then your specific index.html is displayed, but In some case you want to display a list of files and folders, hence my interest.
If you want to do it, then you must remove the line in /etc/httpd/conf.d/welcome.conf
- Options -Indexes
+ # Options -Indexes
the full code is
ErrorDocument 403 /.noindex.html