Mobile app version of vmapp.org
Login or Join
Harper822

: 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.

@Harper822

Posted in: #Apache #Apache2 #Subdirectory

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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme