I have stunnel4 installed on Ubuntu Server 11.10. I have apache installed from the repositories. I have some programs installed such as ownCloud or sitebar. When I visit their web pages over the Internet using addresses like https://myserver.com/owncloud, if I then click on a link within the web page that appears, it takes me to a http address such as http://myserver.com/owncloud/linkiclickedon and the page appears white.
I have to always keep changing the URLs to https. How can I correct this behaviour?
Th site installed on the server is located at for example, http://myserver/owncloud, but I am taking it through stunnel to give it some security when accessing it online.
stunnel4encrypts traffic between the server and client, without touching the actual contents of the message (i.e. rewriting URLs from http -> https). Can't you create a proper setup with SSL for Apache? – Lekensteyn Feb 11 '12 at 17:48