apache, php, ssl

Posted on 2005-05-04
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 and defg is for

i would like to do if i surf to 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

    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>
    DocumentRoot /path/to/abcd

    for https server you should add following lines:
    DocumentRoot /path/to/abcd
    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

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now