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.

Shared SSL problems (username)

Discussion in 'General Discussion' started by casey, Jul 31, 2003.

  1. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    I am trying to set up a shared ssl cert, but I can't figure out what to do. WHM forced me to input a username for the install, so I put mine in, but that makes all secure accesses go to my webpage. In httpd.conf it has the following:

    Obviously, the documentroot is set to my www folder, so anyone who uses that certificate (https://server21.domain.com/~ANYONE) is going to be directed to my content. How do I fix this?

    cPanel.net Support Ticket Number:
     
  2. cass

    cass Well-Known Member

    Joined:
    Jul 17, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Argentina/USA/Mexico
    You can use : DocumentRoot /home/None ... if you want.
    or create a user for this. (it will show this page when you not enter /~username)

    Actually, what you need is to Enable /~userdir on this domain/subdomain then users will be able to :

    https://secure.yourdomain.com/~username/ (must show username directory)

    (instead of https://secure.userdomain.com/)
    that's how shared SSL works.

    Regards.

    cPanel.net Support Ticket Number:
     
  3. nixoid

    nixoid Member

    Joined:
    Jul 24, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Newport, RI
    Newbie to servers here. WHM has OpenSSL installed. Does this require an SSL certificate or does this imply that it is free since open sounds like a short name for open source.... Don't mind buying it but why bother if not required.

    cPanel.net Support Ticket Number:
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Thanks Carlos! I didn't realize that you could call user pages from other domains on the server. I thought it had to be http://server.domain.com/~username
    That solved my problem!!

    cPanel.net Support Ticket Number:
     
  5. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    You should use nobody as the username for shared certs.

    cPanel.net Support Ticket Number:
     
  6. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    What should the httpd.conf look like in that case?

    cPanel.net Support Ticket Number:
     
  7. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    Somthing like this...

    <IfDefine SSL>
    <VirtualHost 1.1.1.1:443>
    ServerAdmin webmaster@hostname.domain.com
    DocumentRoot /public_html
    BytesLog domlogs/hostname.domain.com-bytes_log
    ServerName hostname.domain.com
    CustomLog /usr/local/apache/domlogs/hostname.domain.com-ssl_log "%t %{version}c %{cipher}c %{clientcert}c"
    SSLEnable
    SSLCertificateFile /usr/share/ssl/certs/hostname.domain.com.crt
    SSLCertificateKeyFile /usr/share/ssl/private/hostname.domain.com.key
    SSLLogFile /var/log/hostname.domain.com
    UserDir public_html
    ScriptAlias /cgi-bin/ /public_html/cgi-bin/
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    </VirtualHost>
    </IfDefine>

    cPanel.net Support Ticket Number:
     
  8. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Hey Shaun, thanks. That works, but then there's no padlock at the bottom of the screen.:confused:

    cPanel.net Support Ticket Number:
     
  9. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    Where does the customer put their files for the SSL?

    Example Setup:

    WHM = www.domain.com
    SSL = secure.domain.com
    Customer = www.customer.com
    Customer SSL URL = secure.domain.com/~customer

    Where does "customer" put their secure files?

    Do I have to create an extra FTP account on domain.com?
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Secure files go in the same place as the other files. The only thing that makes it different is the https:// instead of http://.

    No extra FTP accounts are necessary.
     
  11. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
  12. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
  13. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
  14. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    What do you mean it didn't work?
     
  15. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
  16. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    What do you get if you try
    http://secure.domain.com/~customer/secure/index.htm ?
    Is that also a 404?
    Maybe it won't work with subdomains. I tried to test it with mine, but I've got mod_userdir security enabled and I can't seem to disable it in order to test.:)
     
  17. webcatal

    webcatal Member

    Joined:
    Apr 10, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I have mod_userdir security disabled, is there anyway to have a shared SSL with that disabled?
     
  18. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
Loading...

Share This Page