I installed Foswiki on a local computer: http://<localcomputer>:<localport>/foswiki
.
It works nice for many years. This computer is not reachable by the internet.
Now I want to access it from the internet through a reverse Apache2 proxy. Therefor I have a domain name: foswiki.<mydomain.com>
. On the proxy server i have:
<VirtualHost *:443>
ServerName foswiki.<mydomain.com>
some SSL stuff
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests On
ProxyPreserveHost On
ProxyPass / http://<localcomputer>:<localport>/foswiki/
ProxyPassReverse / http://<localcomputer>:<localport>/foswiki/
</VirtualHost>
Using the link on an external computer: https://foswiki.<mydomain.com>
, I can see the texts from the front page, but the layout is not OK. The logo is not shown. I tried many things, but not the correct one yet....
The external link is in https. The local link is http. In the source code, as seen with the external https link, there are some href="http://foswiki.<mydomain.com>/foswiki/bin/../pub/*"
. Note the http in stead of https. These http:// are not working.
Other proxies of the same proxy server are working correctly. They redirect to other computers than the Foswiki installation.
What am I missing?
EDIT: Gerald gave me the answer to get the proxy working with Foswiki. See below.
Now, I have another issue. But If try to solve this myself.