Guest User

Untitled

a guest
Nov 12th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName plex.domain.com
  3.  
  4. <Proxy *>
  5. Order deny,allow
  6. Allow from all
  7. </Proxy>
  8.  
  9. ProxyRequests Off
  10.  
  11. ProxyRequests Off
  12. ProxyPreserveHost On
  13. ProxyPass / http://domain.com:32400/
  14. ProxyPassReverse / http://domain.com:32400/
  15.  
  16. RewriteEngine on
  17. RewriteCond %{REQUEST_URI} !^/web
  18. RewriteCond %{HTTP:X-Plex-Device} ^$
  19. RewriteRule ^/$ /web/$1 [R,L]
  20.  
  21. RewriteCond %{SERVER_NAME} =plex.domain.com
  22. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
  23. </VirtualHost>
  24.  
  25.  
  26. <VirtualHost *:443>
  27. ServerName plex.domain.com
  28.  
  29. <Proxy *>
  30. Order deny,allow
  31. Allow from all
  32. </Proxy>
  33.  
  34. ProxyRequests Off
  35.  
  36. ProxyRequests Off
  37. ProxyPreserveHost On
  38. ProxyPass / http://domain.com:32400/
  39. ProxyPassReverse / http://domain.com:32400/
  40.  
  41. RewriteEngine on
  42. RewriteCond %{REQUEST_URI} !^/web
  43. RewriteCond %{HTTP:X-Plex-Device} ^$
  44. RewriteRule ^/$ /web/$1 [R,L]
  45.  
  46. RewriteCond %{SERVER_NAME} =plex.domain.com
  47. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
  48. SSLCertificateFile /etc/apache2/ssl/certs/plex.domain.com-ssl.pem
  49. SSLCertificateKeyFile /etc/apache2/ssl/certs/plex.domain.com-ssl.key
  50. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment