hedera-web/apache.conf

42 lines
983 B
ApacheConf
Raw Normal View History

2016-08-31 11:53:46 +00:00
# Alias /hedera-web /usr/share/hedera-web/
2016-09-26 09:28:47 +00:00
# Alias /image-db /var/lib/hedera-web/image-db/
2018-02-05 12:58:17 +00:00
<IfModule mod_mime.c>
AddType text/x-yaml .yml
</IfModule>
2016-08-31 11:53:46 +00:00
<Directory /usr/share/hedera-web/>
2015-02-08 15:38:38 +00:00
Options -Indexes -FollowSymLinks
AllowOverride None
2017-12-11 11:46:36 +00:00
Require all granted
2018-02-05 12:58:17 +00:00
<FilesMatch "\.(css|js|json|yml|php|xml|html|svg)$">
SetOutputFilter DEFLATE
</FilesMatch>
2017-12-11 11:46:36 +00:00
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
</Directory>
2016-09-20 18:36:22 +00:00
<Directory /var/lib/hedera-web/image-db/>
Options +Indexes +FollowSymLinks
Require all granted
</Directory>
<Directory /var/lib/hedera-web/image-db/*/*>
Options -Indexes -MultiViews +FollowSymLinks
2016-07-22 20:00:27 +00:00
AllowOverride FileInfo Options
Require all granted
<IfModule mod_headers.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.png -f
RewriteRule ^(.+)$ %{REQUEST_URI}.png [L]
</IfModule>
2016-07-22 20:00:27 +00:00
</Directory>