[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


apache, php, ssl

Posted on 2005-05-04
Medium Priority
Last Modified: 2010-03-04
in my web folder there is 2 folder. let say the first folder is abcd and the second is defg

so the abcd is for www.abcd.com and defg is for www.defg.com

i would like to do https://www.abcd.com. if i surf to http://www.abcd.com the domain is pointing perfectly to the abcd folder website. but when i add the S ( https )..the web server didnt show what is suppose to show. it only show apache Test Page and not the website from abcd...i already install some of the component such as below:

 Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7d PHP/5.0.4 DAV/2 mod_perl/1.999.21 Perl/v5.8.6
Question by:emlily
1 Comment
LVL 19

Accepted Solution

ramazanyich earned 375 total points
ID: 13924825
did you create separate VirtualServer part for your ssl server ?
it seems not, because if apache doesn't find virtual server part for your https server then it uses default https server.
suppose you have following config for your http server:

<VirtualHost *:80>
ServerName www.abcd.com
DocumentRoot /path/to/abcd

for https server you should add following lines:
<VirtualHost www.abcd.com:443>
DocumentRoot /path/to/abcd
ServerName www.abcd.com:443
SSLEngine on
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key

NOTE: if you are usig namebased virtual hosts. It is not possible to use namebased virtual hosts for multiple SSL sites due to SSL nature, you should have different IP addresses per SSL site.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month19 days, 6 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question