Hi ppl,
I succesfully putted plex behind a reverse proxy, and everything seems to work fine on Internet Explorer.
When using google chrome, I can browse Plex web just fine on plex.domain.nl, but when clicking a video it simply doesn't do anything. Since internet explorer works fine, I think it has something to do with rewrite or the POST request. My Proxy config is as follow:
<VirtualHost *:443>
ServerName plex.domain.nl
<Location />
AuthType Digest
AuthName "Plex Media Server"
AuthUserFile "/etc/httpd/passwd/.htpasswd"
Require valid-user
</Location>
<Location /:/websockets/notifications>
ProxyPass wss://127.0.0.1:32400/:/websockets/notifications
ProxyPassReverse wss://127.0.0.1:32400/:/websockets/notifications
</Location>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/web
RewriteCond %{HTTP:X-Plex-Device} ^$
RewriteCond %{QUERY_STRING} (^|&)X-Plex-Device=(&|$) [OR]
RewriteCond %{QUERY_STRING} !(^|&)X-Plex-Device=
RewriteRule ^/$ /web/$1 [R,L]
LogLevel notice
ErrorLog /var/log/httpd/error_plex.log
CustomLog /var/log/httpd/ssl_access_plex.log combined
SSLEngine on
#SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLHonorCipherOrder On
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
SSLCertificateFile /usr/syno/etc/ssl/ssl.crt/certificateplex.crt
SSLCertificateKeyFile /usr/syno/etc/ssl/ssl.key/certificateplex.key
SSLCertificateChainFile /usr/syno/etc/ssl/ssl.intercrt/server-ca.crt
ErrorDocument 403 "/webdefault/sample.php?status=403"
ErrorDocument 404 "/webdefault/sample.php?status=404"
ErrorDocument 500 "/webdefault/sample.php?status=500"
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
When I use Internet Explorer, everything plays and seems to work, the following POST request is being sent to Plex when clicking 'Play' on a Video:
When I use Google Chrome, I get the following in my log:
<IP> - Sinned [22/Jan/2015:09:40:04 +0100] "POST /playQueues?type=video&uri=library%3A%2F%2F469974e0-581b-4a57-9fdc-382ff560a534%2Fitem%2F%252Flibrary%252Fmetadata%252F12821&shuffle=0 HTTP/1.1" 400 81 "
https://plex.domain.nl/web/index.html""Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
Does anyone have a clue what is going wrong here? The POST from IE seems to be alot longer then Chrome does, why is that?