59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
|
<VirtualHost *:80>
|
||
|
# The ServerName directive sets the request scheme, hostname and port that
|
||
|
# the server uses to identify itself. This is used when creating
|
||
|
# redirection URLs. In the context of virtual hosts, the ServerName
|
||
|
# specifies what hostname must appear in the request's Host: header to
|
||
|
# match this virtual host. For the default virtual host (this file) this
|
||
|
# value is not decisive as it is used as a last resort host regardless.
|
||
|
# However, you must set it for any further virtual host explicitly.
|
||
|
#ServerName www.example.com
|
||
|
|
||
|
ServerAdmin webmaster@localhost
|
||
|
DocumentRoot /loginapp/public
|
||
|
|
||
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||
|
# error, crit, alert, emerg.
|
||
|
# It is also possible to configure the loglevel for particular
|
||
|
# modules, e.g.
|
||
|
#LogLevel info ssl:warn
|
||
|
|
||
|
LogLevel info
|
||
|
ErrorLog |/bin/cat
|
||
|
CustomLog |/bin/cat combined
|
||
|
|
||
|
Header merge Access-Control-Allow-Origin "*"
|
||
|
Header merge Access-Control-Allow-Headers "X-Requested-With"
|
||
|
|
||
|
AddType image/svg+xml svg svgz
|
||
|
AddEncoding gzip svgz
|
||
|
|
||
|
#Alias /page/image /portal/app/uploads/portal_images
|
||
|
Alias /build /loginapp/public/build
|
||
|
Alias /images /loginapp/public/images
|
||
|
#Alias /img /loginapp/public/img
|
||
|
Alias /js /loginapp/public/js
|
||
|
Alias /css /loginapp/public/css
|
||
|
Alias /bundles /loginapp/public/bundles
|
||
|
Alias /favicon.ico /loginapp/public/favicon.ico
|
||
|
Alias /logiinapp /loginapp/public
|
||
|
|
||
|
<Directory "/loginapp/public">
|
||
|
Header merge Access-Control-Allow-Origin "*"
|
||
|
DirectoryIndex app_docker.php
|
||
|
Require all granted
|
||
|
<IfModule mod_rewrite.c>
|
||
|
RewriteEngine On
|
||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||
|
RewriteRule ^(.*)$ /app_docker.php [QSA,L]
|
||
|
</IfModule>
|
||
|
</Directory>
|
||
|
|
||
|
#<Directory "/portal/app/uploads">
|
||
|
# Require all granted
|
||
|
#</Directory>
|
||
|
|
||
|
<FilesMatch "\.(png|jp?g|gif|ico|css|map|woff?|eot|svg|ttf|js|json|pdf)">
|
||
|
ExpiresActive on
|
||
|
ExpiresDefault "access plus 1 weeks"
|
||
|
</FilesMatch>
|
||
|
</VirtualHost>
|