Skip to content

Instantly share code, notes, and snippets.

@papodaca
Created April 7, 2016 04:48
Show Gist options
  • Save papodaca/54652980837c93872c4b7d0497b0fb0a to your computer and use it in GitHub Desktop.
Save papodaca/54652980837c93872c4b7d0497b0fb0a to your computer and use it in GitHub Desktop.
NameVirtualHost *:443
<VirtualHost *:443>
RewriteEngine On
RewriteOptions Inherit
SSLEngine On
SSLProtocol all -SSLv3 -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite EECDH+AES:EDH+AES:-SHA1:EECDH+RC4:EDH+RC4:RC4-SHA:EECDH+AES256:EDH+AES256:AES256-SHA:!aNULL:!eNULL:!EXP:!LOW:!MD5
SetEnv no-gzip
SSLCertificateFile /etc/apache2/ssl/plex.crt
SSLCertificateKeyFile /etc/apache2/ssl/plex.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem
SSLCACertificateFile /etc/apache2/ssl/ca.pem
ServerAdmin webmaster@localhost
ServerName plex.au.iyg.im
DocumentRoot /var/nowhere
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/nowhere/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/plex_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/plex_access.log combined
RewriteRule ^(.*)$ http://localhost:32400$1 [P,L]
ProxyPassReverse / http://localhost:32400/
ProxyRequests Off
<Proxy http://localhost:32400/*>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment