Our apache conf file has a number of virtual host settings in the following format:
<VirtualHost site.org>
DocumentRoot /usr/local/etc/httpd/htdocs/
ServerName site.org
NameVirtualHost 111.11.111.11:*
TransferLog logs/access_log
</VirtualHost>
We also have one SSL cert for site.org, but the conf file does not seem to have any explicit settings for SSL or port 443 (I am not the author of the Conf file we are using)
If I only use /usr/local/etc/httpd/htdocs/secure for HTTPS stuff, can I configure Apache to force the use of HTTPS for the contents of this folder AND automatically revert to HTTP when not in the secure folder? I am currently forcing the use of HTTPS through a php script on the appropriate pages, but there is the potential for a user to stay in HTTPS when browsing content which does not need to be secure (I'm using relative links and would like to keep it that way).
I don't know too much about Apache, please let me know if I haven't included enough information.
Thanks!