if we need to set up Apache to use SSL (HTTPS) in only one page, and let the other pages accessed using HTTP (we need this to force users log in to our web site using SSL, but the other pages using ordinary HTTP, the thing that speed the web site up and keep it secure), we can do the following:
1- first thing you need to configure Apache to use HTTPS ( I am not covering this issue now).
2- in the http.conf file, in the root domain not the Virtual HTTPS domain put the following:
RewriteEngine on
RewriteRule "^/test/test2.php*" "https://172.22.10.170/test/test2.php" [R=301,L]
whre /test/test2.php : is the path of the page that we need to use in https
and 172.22.10.170 : is the IP of my web server (if you use DNS you can put the name of the web server instead of IP)
3- restart Apache.
and now all the pages are accessed using HTTP except test2.php page.
1- first thing you need to configure Apache to use HTTPS ( I am not covering this issue now).
2- in the http.conf file, in the root domain not the Virtual HTTPS domain put the following:
RewriteEngine on
RewriteRule "^/test/test2.php*" "https://172.22.10.170/test/test2.php" [R=301,L]
whre /test/test2.php : is the path of the page that we need to use in https
and 172.22.10.170 : is the IP of my web server (if you use DNS you can put the name of the web server instead of IP)
3- restart Apache.
and now all the pages are accessed using HTTP except test2.php page.
No comments:
Post a Comment