hedera-web/apache.conf

53 lines
1.2 KiB
ApacheConf
Raw Normal View History

2020-01-22 07:39:44 +00:00
Alias /vn-image-data /var/lib/hedera-web/image-db/
2020-01-20 21:26:15 +00:00
Alias /vn-access /mnt/storage/vn-access/
2018-02-05 12:58:17 +00:00
<IfModule mod_mime.c>
AddType text/x-yaml .yml
</IfModule>
2020-01-20 21:26:15 +00:00
<VirtualHost *:80>
DocumentRoot /usr/share/hedera-web/
</VirtualHost>
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>
2020-01-22 07:39:44 +00:00
<Directory /var/lib/hedera-web/image-db/>
Options +Indexes +FollowSymLinks
Require all granted
</Directory>
2020-01-22 07:39:44 +00:00
<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
2020-01-20 21:26:15 +00:00
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
2019-02-05 10:22:20 +00:00
RewriteCond %{REQUEST_FILENAME} !\.[a-zA-Z0-9]+$
RewriteRule ^(.+)$ %{REQUEST_URI}.png [L]
</IfModule>
2016-07-22 20:00:27 +00:00
</Directory>
2020-01-20 21:26:15 +00:00
<Directory /mnt/storage/vn-access>
Require all granted
AllowOverride None
Options +Indexes
IndexIgnoreReset On
Header set X-Robots-Tag "noindex, nofollow"
</Directory>