Use Apache confs with SSL

TomBG

Active Member
#1
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?
 

TomBG

Active Member
#3
Is there a "Listen 443" configuration?
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?
 

TomBG

Active Member
#6
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:
Top