How to configure in apache HTTPS for a specific page and HTTP for the others?

1

I need a specific page to work via HTTPS with a specific certificate. How to configure the httpd.conf, httpd-ssl and httpd-vhosts.conf files in apache? Do you have any other files to modify?

    
asked by anonymous 20.08.2014 / 15:41

1 answer

2

You have to configure the domain on two Vhosts: one on port 80 and one on port 443. This will cause the site to respond both to HTTP and HTTPS on any page.

After that, you only have to restrict in your application what pages you want to force the user to see in HTTP or HTTPS, checking the schema on each request and redirecting it as the case may be.

At first just include the sites in the httpd-vhosts.conf files and check if the SSL and certificate settings are all ok. :)

    
20.08.2014 / 15:45