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.