Guest User

couchpotato virtual host

a guest
Aug 22nd, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName couchpotato.domein.nl
  3. ServerAlias www.couchpotato.domein.nl
  4. <Location />
  5. RedirectPermanent / https://couchpotato.domein.nl
  6. </Location>
  7. </VirtualHost>
  8.  
  9. <VirtualHost *:443>
  10. <Proxy *>
  11. Order deny,allow
  12. Allow from all
  13. </Proxy>
  14. SSLEngine on
  15. SSLProxyEngine On
  16. SSLCertificateFile /etc/ssl/certs/servercouch.crt
  17. SSLCertificateKeyFile /etc/ssl/private/servercouch.key
  18.  
  19. ProxyRequests Off
  20. ProxyPreserveHost On
  21. ProxyPass / http://localhost:5050/
  22. ProxyPassReverse / http://localhost:5050/
  23.  
  24. <Location />
  25. Order deny,allow
  26. Allow from all
  27. </Location>
  28.  
  29. ErrorLog /var/log/apache2/couchpotato-error.log
  30. # Possible values include: debug, info, notice, warn, error, crit,
  31. # alert, emerg.
  32. LogLevel info
  33. CustomLog /var/log/apache2/couchpotato-access.log combined
  34. CookieLog /var/log/apache2/couchpotato-cookie.log
  35. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment