Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    86

    Default httpd.conf virtual hosts only includes std config settings not ssl

    I followed Changes Contained within a VirtualHost Directive to allow me create custom virtual host configurations for apache 2 based on using the account and domain names to create a particular folder structure and adding a conf file in the correct place but only the http include(s) seem to get added to the httpd.conf file under the relevant virtual host section.

    Also when I view the domain corresponding to the virtual host on http I get the content from the file manager but if i use https i get the cpanel success holding page defaultwebpage.cgi

    Any suggestions as to whats happening?

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: httpd.conf virtual hosts only includes std config settings not ssl

    Hello mobcdi,

    You will need to show us the configuration changes you are talking about specifically as I'm a bit lost as to what you've done precisely.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Jul 2009
    Posts
    86

    Default Re: httpd.conf virtual hosts only includes std config settings not ssl

    I created the following folder structure but substituted $user, $domain and $includename with the necessary values relevant to my cPanel username, my domain and my conf file so the include files will get added to the httpd.conf file managed by cpanel

    Apache 2 with SSL — /usr/local/apache/conf/userdata/ssl/2/$user/$domain/$includename.conf
    Apache 2 without SSL — /usr/local/apache/conf/userdata/std/2/$user/$domain/$includename.conf

    The conf files I want included tell apache to load a module and if I visit http (non ssl) version of the domain the necessary module is invoked as needed and the default.html file i added to the webroot is also loaded

    The problem is that if I use the https (ssl) version of the domain address I get the default cpanel holding page defaultwebpage.cgi which says "Great Success !Apache is working on your cPanel® and WHM™ Server" instead of showing me the default.html file I know is in the webroot.

    If I view the httpd.conf file and go to the relevant virtual host section I can see its configured to look in ..userdata/std/2/$user/$domain/ for *.conf but the only entry in the httpd.conf file /ssl/ is the virtual host entry for the hosts IP address

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: httpd.conf virtual hosts only includes std config settings not ssl

    Which commands did you run upon adding the includes to incorporate them into httpd.conf file? Please provide all commands used upon creating the include files to see what was processed.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Jul 2009
    Posts
    86

    Default Re: httpd.conf virtual hosts only includes std config settings not ssl

    As per the document I used

    /scripts/verify_vhost_includes

    /scripts/ensure_vhost_includes --user=$username

    /scripts/ensure_vhost_includes --all-users

    and got either Apache successfully restarted message or "Ok" message for each.

    The host and the domains share the same IP address and the virtual host for IPAddress:443 is the only place in httpd.conf where /userdata/ssl/2 is checked for conf files to include but no entry exists in that list for /$user/$domain/$includename.conf

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: httpd.conf virtual hosts only includes std config settings not ssl

    When I tested this on my machine, I was able to get the ssl entries to add as includes rather than only the std entries. In /usr/local/apache/conf/httpd.conf, the following includes appears upon running "/scripts/ensure_vhost_includes --user=t3st" where t3st was the cPanel username for the account:

    Include "/usr/local/apache/conf/userdata/*.conf"
    Include "/usr/local/apache/conf/userdata/*.owner-root"
    Include "/usr/local/apache/conf/userdata/ssl/*.conf"
    Include "/usr/local/apache/conf/userdata/ssl/*.owner-root"
    Include "/usr/local/apache/conf/userdata/ssl/2/*.conf"
    Include "/usr/local/apache/conf/userdata/ssl/2/*.owner-root"
    Include "/usr/local/apache/conf/userdata/ssl/2/t3st/*.conf"
    Include "/usr/local/apache/conf/userdata/ssl/2/t3st/test.com/*.conf"
    These all added after the </Directory> tag, but before the </VirtualHost> tag for the https entry for that domain.

    Since this is not working for you, please open up a ticket if nothing is logging to /usr/local/cpanel/logs/error_log location.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Apache httpd.conf every virtual host using port 8888 and not 80
    By Saint Isaiah in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-29-2011, 02:23 PM
  2. Why doesn't my custom virtual directive includes appear in the httpd.conf?
    By robertnorris in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-25-2011, 05:17 PM
  3. httpd.conf showing deleted virtual hosts
    By learner in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-29-2009, 07:58 AM
  4. SSL virtual hosts, many ips and registration
    By eightn in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-06-2008, 11:25 AM
  5. Uptime, diskswapping, httpd.conf settings
    By ozzi4648 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-11-2003, 02:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube