How do I set up apache HTTPS for a specific page and HTTP for the others?

Asked

Viewed 879 times

1

I need a specific page to work via HTTPS with a specific certificate. How to configure httpd.conf, httpd-ssl and httpd-vhosts.conf files in apache? has some other file to modify?

1 answer

2

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

After that just restrict in your application which pages you want to force the user to see in HTTP or HTTPS, checking the schema in each request and redirecting it as appropriate.

In principle only include the sites in the archives httpd-vhosts.conf and check if the SSL and certificate settings are all ok. :)

  • Rodrigo, have skype or email to contact?

  • @mcardoso Can add me to Skype: Rodrigo.mammano

Browser other questions tagged

You are not signed in. Login or sign up in order to post.