Issue
I am using wamp server 3 in my local machine. Whenever I make a virtual host I have to provide at least one index.php
file to access my project directory, without it I am getting an 404
error.
But I also want to access my project directory without providing the index
file. I like to see the directory lists when server doesn't find an index file. Like the below image:
I think the issue is in my httpd-vhost.conf
file. Here is the virtual-host configuration of the directory that I want to enable directory listing:
<VirtualHost *:80>
ServerName virtualhost.info
DocumentRoot c:/wamp64/www/virtual_host_test
<Directory "c:/wamp64/www/virtual_host_test/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
Any help would be greatly appreciated.
Solution
Found one solution.
By default New Wamp disable the Fancy directory listings.
Edit the C:\wamp64\bin\apache\apache2.4.17\conf\httpd.conf
Need to load this module (remove the #)
LoadModule autoindex_module modules/mod_autoindex.so
Need to load this conf (remove the #)
Include conf/extra/httpd-autoindex.conf
Reference links: WAMP is not displaying the icons in the directory listing
Thanks
Answered By - Jimit Shah Answer Checked By - Mildred Charles (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.