Jump to content

Apache redirect for Yifipop Streaming


tjnetworking

Recommended Posts

I would like to think everyone for there input in advance I am trying to get yifipop working correctly behind an apache server reverse proxy I have included my config file any help or improvement to the file would be much appreciated.  I almost forgot I have a domain I use for almost all of the items lets say mydomain.net and for yifipop I want to use stream.mydomain.net is this possible? if needed I am running unraid 6.0 .

 

 

<VirtualHost *:443>
        ServerName servername
        ServerAlias servername
ServerName servername
        ServerAdmin webmaster@servername
        DocumentRoot /web
  
        SSLEngine on
SSLProxyEngine on
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
RequestHeader set Front-End-Https "On"
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
        SSLProtocol all -SSLv2
        SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
        SSLCertificateFile /config/ssl.crl
        SSLCertificateKeyFile /config/decrypted.ssl.key
        SSLCertificateChainFile /config/sub.class1.server.ca.pem
        
<Location /plexWatch>
                ProxyPass http://localhost:8090/plexWatch
                ProxyPassReverse http://localhost:8090/plexWatch
	AuthName "Restricted Area" 
	AuthType Basic 
	AuthUserFile /config/.htpasswd 
	require valid-user
        </Location>

        <Location /plex>
                ProxyPass https://localhost:32400/web
                ProxyPassReverse https://localhost:32400/web
        </Location>

<Location /mobile>
                ProxyPass https://localhost:4443/mobile
                ProxyPassReverse https://localhost:4443/mobile
</Location>

        <Location /welcome>
                ProxyPass http://localhost:4443/welcome
                ProxyPassReverse http://localhost:4443/welcome
        </Location>

        <Location /customer>
                ProxyPass http://localhost:4443/customer
                ProxyPassReverse http://localhost:4443/customer
        </Location>

        <Location /technician>
                ProxyPass http://localhost:4443/technician
                ProxyPassReverse http://localhost:4443/technician
        </Location>
       
        <Location /status>
                ProxyPass http://localhost:8024/status
                ProxyPassReverse http://localhost:8024/status
                AuthUserFile /config/.htpasswd
                AuthType Basic
                AuthName "UpStatsBoard - Proxy"
                Require user someone
        </Location>

        <Location /yifipop>
                ProxyPass  https://localhost:4000
                ProxyPassReverse  https://localhost:4000
        </Location>

<Location /access>
                ProxyPass http://localhost:4443/access
                ProxyPassReverse http://localhost:4443/access
        </Location>

<Location /guacamole/>
   		ProxyPass http://localhost:9090/ max=20 flushpackets=on
    		ProxyPassReverse http://localhost:9090
</Location>

</VirtualHost>

<VirtualHost *:80>
        ServerName www.tjne.net
        ServerAlias tjne.net
        ServerAdmin [email protected]
        DocumentRoot /web
        SSLProxyEngine On
        RequestHeader set Front-End-Https "On"
ServerName stream.tjne.net
        Redirect /yifipop https://stream.tjne.net

        <Location /plexrequests>
                ProxyPass http://localhost:3000
                ProxyPassReverse http://localhost:3000
        </Location>

        <Location /plexrequestsadmin>
                ProxyPass http://localhost:3000
                ProxyPassReverse http://localhost:3000
        </Location>

</VirtualHost>

Link to comment

it's not https either

 

Thanks I fixed this here is my config for those who may have the issue in the future I had to use a rewrite rule.

 

<VirtualHost *:80>
        ServerAdmin [email protected]
        ServerName stream.hosting.com
RewriteEngine On
RewriteRule ^/?(.*) https://stream.hosting.com/$1 [R=301,L]
</VirtualHost>

<VirtualHost *:443>
SSLEngine on
RequestHeader set Front-End-Https "On"
        SSLCertificateFile /config/ssl.crl
        SSLCertificateKeyFile /config/decrypted.ssl.key
        SSLCertificateChainFile /config/sub.class1.server.ca.pem
SSLProxyEngine on
SSLProxyVerify none 
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off 

     	ProxyRequests Off
ProxyPreserveHost On
	ProxyPass / http://localhost:4000/
        ProxyPassReverse / http://localhost:4000/
ServerAdmin [email protected]
ServerName stream.hosting.com
</VirtualHost>

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...