https and http for one domain name
Dear all,
I'm using a box running CentOS 5.5 powered with Apache2. In this machine I hosted several domains and sub domains, managed by Apache's virtual host. Due to security issue, one sub domain needs to be able to be accessed either using http or https. My question is:
any help appreciated. regards, Yoachan |
Yes, what you're trying to do is possible in apache (apart from the given data, I'm assuming that the server got a static IP and no other https domains are served via this IP). I'll just brief what you need to do to configure the subdomain with both http and https. There might be many step by step tutorials available on this so feel free to google and find one if you need more detailed information :P
1) Purchase an SSL certificate for the specific domain. 2) Make sure your apache server is compiled with mod_ssl, if not install and enable mod_ssl 3) Copy the certificate and private key to the specific locations (check the virtualhost configuration given below) 4) Create a virtual host entry for your subdomain (this will serve the domain via http) 5) Create one more virtual host entry like this Code:
<VirtualHost YOUR_STATIC_IP:443> Hope this will help you to get started :) |
@Vishnu:
Thanks for your quick and brief reply. :) I will give it a shot. About your statement Quote:
warm regards, Yoachan |
Quote:
|
@Noway2: Thanks for your reply
It really help me to understand thanks :) |
All times are GMT -5. The time now is 03:36 PM. |