27 lines
732 B
Plaintext
27 lines
732 B
Plaintext
<VirtualHost *:80>
|
|
DocumentRoot /var/www/html
|
|
|
|
AliasMatch "^/api(/.*)?" "/var/www/html/public$1"
|
|
<Directory /var/www/html/public>
|
|
Options FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
AliasMatch "^(/.*)?" "/var/www/html/frontend/dist$1"
|
|
<Directory /var/www/html/frontend/dist>
|
|
AllowOverride All
|
|
Order allow,deny
|
|
Allow from All
|
|
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^ - [L]
|
|
RewriteRule ^ index.html [L]
|
|
</Directory>
|
|
|
|
ErrorLog "${APACHE_LOG_DIR}/error.log"
|
|
CustomLog "${APACHE_LOG_DIR}/access.log" combined
|
|
</VirtualHost>
|