: Apache2 subdirectory access I am setting up an apache server on my linux (debian) machine. I am making a website, with sub directories that contains my css and image file. Here is my config.
I am setting up an apache server on my linux (debian) machine.
I am making a website, with sub directories that contains my css and image file.
Here is my config.
<Directory /var/www/*>
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
Allow from all
</Directory>
Is that configuration correct for access to sub directory
More posts by @Harper822
1 Comments
Sorted by latest first Latest Oldest Best
You don't need the asterisk(*) after
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
Allow from all
</Directory>
I'm not a huge fan of allowing indexes, so I disabled those and removed the asterisks. The above will deny indexes and grant allow access to any sub-directory of /var/www.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.