-
Hahn Axel (hahn) authoredHahn Axel (hahn) authored
vhost_app.conf 761 B
# TARGET: docker/containers/web-server/apache/sites-enabled/vhost_app.conf
#
# {{generator}}
#
<VirtualHost *:80>
DocumentRoot {{WEBROOT}}
<Directory {{WEBROOT}}>
AllowOverride None
Order Allow,Deny
Allow from All
</Directory>
# redirect requests to handle packages
<Location "/packages">
# for Php as php-fpm service:
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Location>
# download files are outside webroot
XSendFile On
XSendFilePath "/var/www/{{APP_NAME}}/example-packages/"
# example to prevent access with http
<Location "/no-access">
Require all denied
</Location>
</VirtualHost>