Problem with www.doamin.com

webizen

Well-Known Member
#2
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.
 
Top