forked from frandieguez/mabishu-apache-autoindex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vhost.conf
38 lines (32 loc) · 1.24 KB
/
vhost.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Virtualhost example configuration file with autoindex theme support
<VirtualHost *:80>
ServerName your.vhost.local
DocumentRoot /var/www/your.vhost.local/public_html
# Define where is the theme and icons directory
Alias /icons/ /var/www/your.vhost.local/include/icons/
Alias /include/ /var/www/your.vhost.local/include/
<Directory "/var/www/your.vhost.local/public_html">
AllowOverride All
Order allow,deny
Allow from all
# Tell Apache to add theme support to autoindex
<IfModule mod_autoindex.c>
Options Indexes FollowSymLinks
IndexOptions +FancyIndexing
IndexOptions +VersionSort
IndexOptions +HTMLTable
IndexOptions +FoldersFirst
IndexOptions +IconsAreLinks
IndexOptions +IgnoreCase
IndexOptions +SuppressDescription
IndexOptions +SuppressHTMLPreamble
IndexOptions +XHTML
IndexOptions +IconWidth=16
IndexOptions +IconHeight=16
IndexOptions +NameWidth=*
IndexOrderDefault Descending Name
HeaderName /include/header.html
ReadmeName /include/footer.html
</ifModule>
</Directory>
</VirtualHost>