Guest User

Untitled

a guest
Dec 9th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName mainweb.example.com
  3. ServerAlias www.mainweb.example.com
  4.  
  5. RewriteEngine on
  6. ProxyRequests Off
  7.  
  8. <Proxy *>
  9. Order deny,allow
  10. Allow from all
  11. </Proxy>
  12.  
  13. Options +FollowSymLinks
  14.  
  15. ProxyPreserveHost on
  16. ProxyPass /mainweb http://192.168.1.10/mainweb
  17. ProxyPassReverse /mainweb http://192.168.1.10/mainweb
  18.  
  19. RewriteRule ^/(.*)$ /mainweb/$1 [L,PT]
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteRule ^(.*)$ /mainweb/?$1 [L]
  23.  
  24. </virtualhost>
Add Comment
Please, Sign In to add comment