Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName szymekk.me
- ServerAlias *.szymekk.me
- #<Directory /var/www/szymekk.me>
- # order allow,deny
- # allow from all
- # RewriteEngine On
- # RewriteCond %{REQUEST_FILENAME} -s [OR]
- # RewriteCond %{REQUEST_FILENAME} -l [OR]
- # RewriteCond %{REQUEST_FILENAME} -d
- # RewriteRule ^.*$ - [NC,L]
- # RewriteRule ^(.*) /index.html [NC,L]
- # </Directory>
- <Location /api>
- RewriteEngine off
- ProxyPreserveHost On
- ProxyPass http://localhost:5000/api
- ProxyPassReverse http://localhost:5000/api
- </Location>
- RewriteEngine On
- RewriteMap lowercase int:tolower
- RewriteRule ^(/var/www/[^/]+/.*)$ $1 [L]
- RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
- RewriteRule ^(www\.)?([^/]+)/(.*)$ /var/www/$2/$3 [L,E=VHOST_ROOT:/var/www/$2/]
- #Redirect permanent / https://szymekk.me/
- #RewriteCond %{SERVER_NAME} =szymekk.me
- #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- </VirtualHost>
- <VirtualHost *:81>
- ProxyPreserveHost On
- ProxyPass / http://localhost:5000/
- ProxyPassReverse / http://localhost:5000/
- ServerName www.szymekk.me
- ServerAlias *.szymekk.me
- ErrorLog ${APACHE_LOG_DIR}hellomvc-error.log
- CustomLog ${APACHE_LOG_DIR}hellomvc-access.log common
- RewriteEngine on
- RewriteCond %{SERVER_NAME} =*.szymekk.me [OR]
- RewriteCond %{SERVER_NAME} =szymekk.me
- RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement