web icon indicating copy to clipboard operation
web copied to clipboard

Apache Reverse-Proxy

Open Fire69 opened this issue 6 years ago • 2 comments

Hi,

I'd like to make my install (running on a RasPi with OSMC) availabe behind an Apache-server running on my Ubuntu-server. I put it in my apache 000-default.conf like this:

ProxyPass http://192.168.1.13 ProxyPassReverse http://192.168.1.13

When I go to https:///kerberos, the only thing I get is: A product byverstraeten.io (yes, it's missing a space ;-) ) When I use the internal ip, http://192.168.1.20/kerberos, I get the login screen but it fails to log in.

Anything I can adjust to make this work? :-)

Fire69 avatar May 16 '18 14:05 Fire69

I get the same issue when I use HTTPS instead of HTTP, I see in the console that the javascript and css files are not loaded, they are blocked since they are requested as HTTP.

The page at 'https://camera1.domainname.com/login' was loaded over HTTPS, but requested an insecure stylesheet 'http://camera1.domainname.com/js/vendor/csshake/dist/csshake.css'. This request has been blocked; the content must be served over HTTPS.

regnerus avatar Jun 22 '18 20:06 regnerus

I fixed this by adding \URL::forceScheme('https'); to the web routes file.

regnerus avatar Jun 22 '18 21:06 regnerus