hedera-web/apache.conf

53 lines
1.2 KiB
ApacheConf

Alias /vn-image-data /var/lib/hedera-web/image-db/
Alias /vn-access /mnt/storage/vn-access/
<IfModule mod_mime.c>
AddType text/x-yaml .yml
</IfModule>
<VirtualHost *:80>
DocumentRoot /usr/share/hedera-web/
</VirtualHost>
<Directory /usr/share/hedera-web/>
Options -Indexes -FollowSymLinks
AllowOverride None
Require all granted
<FilesMatch "\.(css|js|json|yml|php|xml|html|svg)$">
SetOutputFilter DEFLATE
</FilesMatch>
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
</Directory>
<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
AllowOverride FileInfo Options
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.[a-zA-Z0-9]+$
RewriteRule ^(.+)$ %{REQUEST_URI}.png [L]
</IfModule>
</Directory>
<Directory /mnt/storage/vn-access>
Require all granted
AllowOverride None
Options +Indexes
IndexIgnoreReset On
Header set X-Robots-Tag "noindex, nofollow"
</Directory>