The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Force HTTP and HTTPS use same folder

Discussion in 'General Discussion' started by deakhead, Oct 24, 2008.

  1. deakhead

    deakhead Registered

    Joined:
    Oct 24, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have problem getting it to work:

    I installed a wildcard SSL on a domain. However, HTTP and HTTPS URLs don't seem to point to the same folder on the server:

    For example, if I go to

    http://www.example.com //shows correct page
    http://www.example.com/home.html //shows correct page

    https://www.example.com //It works.!
    https://www.example.com/home.html //got the following

    PHP:
    The server can not find the requested page:

        
    popkiller.us/(port 443

    Please forward this error screen to popkiller.us's WebMaster.
    Apache/1.3.41 Server at popkiller.us Port 443
    Apparently HTTP and HTTPS requests do not result in the same directory on the server. What should I do to solve this problem?
     
  2. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    That's a tough one to troubleshoot theoretically as if the domain works on SSL and non-SSL, files inside the domain should as well. I'd recommend submitting a support request (see my signature for the link) so one of our analysts can check your /usr/local/apache/conf/httpd.conf configuration.

    /usr/local/apache/logs/error_log may have some useful information related to the error.
     
  3. mediagenerator

    Joined:
    Mar 16, 2010
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I've got the exact same problem. I noticed that the DocumentRoot in httpd.conf for <VirtualHost x.x.x.x:443> points to /usr/local/apache/htdocs - showing the "You got cpanel working!"-default page as soon as i try to switch to https:// on any site.

    I'm using a wildcard certificate, too. Is there anything you could recommend trying out to get http://mydomain.com to work like https://mydomain.com ?

    Thanks,

    Oliver
     
Loading...

Share This Page