Use Apache confs with SSL

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

  1. TomBG

    TomBG Active Member

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

    For an SSL site we use a "" file, and for standard http "". In LS it lists the port 80 listener, and a virtualhost as well as a 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 Active 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 Active 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 "" will make web server listen on all IP.
  6. TomBG

    TomBG Active 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> </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:

    User username
    Group group
    ScriptAlias /cgi-bin/ /htdocs/username/
    DocumentRoot /htdocs/username/
    ErrorLog /htdocs/username/
    CustomLog /htdocs/username/ "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
    Last edited: Mar 21, 2009

Share This Page