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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Problem with www.doamin.com

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2011, 07:06 AM
whyyyhk whyyyhk is offline
New Member
 
Join Date: Feb 2011
Posts: 3
Default Problem with www.doamin.com

Hello,
I want to create virtual host A with www.domain.com
and virtual host B with domain.com
virtual host A and B have different content.
How can it be done.
Thanks
Reply With Quote
  #2  
Old 08-24-2011, 10:08 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
The trick is how to map them to listener.

Here are the steps:
1. create vhost A with docroot /path/to/vhostA
2. create vhost B with docroot /path/to/vhostB
3. create listener L bind to an IP (assuming domain.com and www.domain.com resolve to same IP*)
4. map vhost A with domain www.domain.com to Listener L
5. map vhost B with domain domain.com to Listener L

* if they resolve to different IPs, you may
a. create two listeners bind to per each IP and map the vhosts to their respective listeners
or
b. create a listener binds to any IP and follow step 4 and 5 mentioned above.
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 07:16 PM.



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