53 lines
1.1 KiB
ApacheConf
53 lines
1.1 KiB
ApacheConf
Alias /image-db /mnt/storage/image/
|
|
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 /mnt/storage/image/>
|
|
Options +Indexes +FollowSymLinks
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Directory /mnt/storage/image/*/*>
|
|
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>
|