75 lines
1.9 KiB
Plaintext
75 lines
1.9 KiB
Plaintext
V1:
|
|
|
|
#IfModule mod_ssl.c>
|
|
|
|
<VirtualHost *:6901>
|
|
|
|
ServerAdmin admin@tonetwork.de
|
|
ServerName thwgat.tonetwork.de
|
|
DocumentRoot /var/www/thwgat/thwgat_homepage/build/
|
|
|
|
FallbackResource ./index.html
|
|
|
|
LogLevel info
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
Options -Indexes
|
|
|
|
|
|
<Directory /var/www/thwgat/thwgat_homepage/build/>
|
|
# Options FollowSymLinks MultiViews
|
|
# AllowOverride None
|
|
# Order allow,deny
|
|
# allow from all
|
|
|
|
# # ADDING FOLLOWING LINES SOLVED THE PROBLEM
|
|
RewriteEngine on
|
|
# # Don't rewrite files or directories
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^ - [L]
|
|
# # Rewrite everything else to index.html to allow html5 state links
|
|
RewriteRule ^ /index.html [L]
|
|
|
|
</Directory>
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
|
V2:
|
|
|
|
|
|
<VirtualHost *:6901>
|
|
|
|
ServerAdmin admin@tonetwork.de
|
|
|
|
ServerName thwgat.tonetwork.de
|
|
DocumentRoot /var/www/thwgat/thwgat_homepage/build/
|
|
|
|
FallbackResource ./index.html
|
|
|
|
LogLevel info
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
Options -Indexes
|
|
|
|
|
|
<Directory /var/www/thwgat/thwgat_homepage/build/>
|
|
|
|
|
|
# # ADDING FOLLOWING LINES SOLVED THE PROBLEM
|
|
RewriteEngine on
|
|
# # Don't rewrite files or directories
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^ - [L]
|
|
# # Rewrite everything else to index.html to allow html5 state links
|
|
RewriteRule ^ /index.html [L]
|
|
|
|
</Directory>
|
|
|
|
</VirtualHost>
|