Restrict SSL access for some paths on a apache2 server
- by valmar
I wanted to allow access to www.mydomain.com/login through ssl only.
E.g.: Whenever someone accessed http://www.mydomain.com/login, I wanted him to be redirect to https://www.mydomain.com/login so it's impossible for him/her to access that site without SSL.
I accomplished this by adding the following lines to the virtual host for www.mydomain.com…