LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Use Apache confs with SSL

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2009, 03:56 PM
TomBG TomBG is offline
Member
 
Join Date: Oct 2008
Posts: 43
Default Use Apache confs with SSL

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?
Reply With Quote
  #2  
Old 03-18-2009, 04:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Is there a "Listen 443" configuration?
Reply With Quote
  #3  
Old 03-18-2009, 05:01 PM
TomBG TomBG is offline
Member
 
Join Date: Oct 2008
Posts: 43
Quote:
Originally Posted by mistwang View Post
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?
Reply With Quote
  #4  
Old 03-18-2009, 05:09 PM
TomBG TomBG is offline
Member
 
Join Date: Oct 2008
Posts: 43
Quote:
Originally Posted by mistwang View Post
Is there a "Listen 443" configuration?
What's the minimum that must exist for everything to work correctly in the httpd.conf?
Reply With Quote
  #5  
Old 03-18-2009, 08:12 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #6  
Old 03-21-2009, 02:19 AM
TomBG TomBG is offline
Member
 
Join Date: Oct 2008
Posts: 43
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 by TomBG; 03-21-2009 at 02:28 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:06 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.