Use Apache confs with SSL

Discussion in 'Install/Configuration' started by TomBG, Mar 18, 2009.

  1. TomBG

    TomBG New Member

    We're having another issue when using Apache configs and SSL.

    For an SSL site we use a "domain.com:443.conf" file, and for standard http "domain.com.conf". In LS it lists the port 80 listener, and a domain.com virtualhost as well as a www.domain.com virtualhost (apparently for the SSL) even though no "www" is defined in the conf. There's also no listener for the port 443 version of the domain.

    Can you please tell me what's wrong?
  2. mistwang

    mistwang LiteSpeed Staff

    Is there a "Listen 443" configuration?
  3. TomBG

    TomBG New Member

    I commented out everything in the primary Apache conf including the Listen lines. Reason being it listens for connections to 443 on EVERY IP address on the server instead of just the ones with confs. Is this required?
  4. TomBG

    TomBG New Member

    What's the minimum that must exist for everything to work correctly in the httpd.conf?
  5. mistwang

    mistwang LiteSpeed Staff

    If you want to listen one IP, you should use

    "List <IP>:443"

    use 443 or "0.0.0.0:443" will make web server listen on all IP.
  6. TomBG

    TomBG New Member

    Actually, you NEED a DirectoryIndex defined or the server returns a 404 Not Found error with https sites. Is there some reason LiteSpeed does not use the values we have entered in its own configuration?

    Basically, I only want to use the Apache configs as far as defining virtualhosts (everything between the <VirtualHost 1.2.3.4> </VirtualHost> tags directives) to make management easier. Everything else I want to be pulled from LiteSpeed's own config (until you guys come out with your own virtualhost configs that don't require XML or some other solution).

    I think you should also create listeners out of the IP's defined in the config's instead of requiring them to be put into Listen directives.

    Here's our typical config:

    <VirtualHost 1.2.3.4:80>
    User username
    Group group
    ServerAdmin webmaster@domain.com
    ServerName domain.com
    ScriptAlias /cgi-bin/ /htdocs/username/domain.com/cgi-bin/
    DocumentRoot /htdocs/username/domain.com
    ErrorLog /htdocs/username/domain.com/logs/error.log
    CustomLog /htdocs/username/domain.com/logs/access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
    </VirtualHost>
    Last edited: Mar 21, 2009

Share This Page