Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ProxyPass /dresden/ http://127.0.0.1:5000/
  4. ProxyPassReverse /dresden/ http://127.0.0.1:5000/
  5.  
  6. RewriteCond %{HTTP_HOST} !^mrsengo\.com/dresden/$ [NC]
  7. RewriteRule ^/dresden/$ http://%{HTTP_HOST}/dresden/ [L,R=301]
  8.  
  9. ErrorLog ${APACHE_LOG_DIR}/error.log
  10. CustomLog ${APACHE_LOG_DIR}/access.log combined
  11.  
  12. </VirtualHost>
  13.  
  14. <VirtualHost *:443>
  15.  
  16. ServerName mrsengo.com
  17.  
  18. ProxyPass /dresden/ http://127.0.0.1:5000/
  19. ProxyPassReverse /dresden/ http://127.0.0.1:5000/
  20.  
  21. RewriteCond %{HTTP_HOST} !^mrsengo\.com/dresden/$ [NC]
  22. RewriteRule ^/dresden/$ http://%{HTTP_HOST}/dresden/ [L,R=301]
  23.  
  24. ErrorLog ${APACHE_LOG_DIR}/error.log
  25. CustomLog ${APACHE_LOG_DIR}/access.log combined
  26.  
  27. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement