Hello,
I’m currently have an issue where I can’t access using the following link, plex.kylecastle.co.uk however if you go via kylecastle.co.uk:32400 this works fine and the conf file suggests everything should work okay:
Plex.conf
<VirtualHost *:80>
ServerName plex.kylecastle.co.uk
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://kylecastle.co.uk:32400/
ProxyPassReverse / http://kylecastle.co.uk:32400/
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/web
RewriteCond %{HTTP:X-Plex-Device} ^$
RewriteRule ^/$ /web/$1 [R,L]
RewriteCond %{SERVER_NAME} =plex.kylecastle.co.uk
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Plex-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName plex.kylecastle.co.uk
<Proxy *>
Order deny,allow
Allow from all
AuthType None
Require all granted
</Proxy>
ProxyRequests Off
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://kylecastle.co.uk:32400/
ProxyPassReverse / http://kylecastle.co.uk:32400/
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/web
RewriteCond %{HTTP:X-Plex-Device} ^$
RewriteRule ^/$ /web/$1 [R,L]
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.
# RewriteCond %{SERVER_NAME} =plex.kylecastle.co.uk
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
SSLCertificateFile /etc/letsencrypt/live/plex.kylecastle.co.uk/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/plex.kylecastle.co.uk/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
It keeps returning a 503 error after a while any help will be much appreciated!
Many Thanks,
Kyle