virtual host mapping

Discussion in 'Install/Configuration' started by harsha, Aug 13, 2010.

  1. harsha

    harsha New Member

    How to map a virtual host to two listeners. mydomain1.com is mapped to listener1 which is bundled with SSL certificate(https). Now i want to map {mydomain1} to another listener so that i could access it through
    {http}.Primary reason is i want to redirect http to https.
    i tried mapping mydomain1 to another listener by configuring virtual host mappings but could not access it through {http}.
    Do i need to do some DNS settings. Please give me steps to map one virtual host to two different listeners.
  2. NiteWave

    NiteWave Administrator

    are you using apache http.conf or litespeed native configuration?
  3. harsha

    harsha New Member

    I am using apache httpd.conf should i add <virtual host> directive to the conf file or litespeed server gui console will take care of virtual host mappings.
  4. NiteWave

    NiteWave Administrator

    how do you configure it in httpd.conf? can you paste this part here? it's easier to discuss with an example.
  5. harsha

    harsha New Member

    am i wrong, just want run mydomain1.com on port 80 and port 443 on two different listeners so that i could redirect http to https or is that possible with
    only one listener, whether it is apache conf file or native configuration.
  6. NiteWave

    NiteWave Administrator

    in native configuration, just define 2 listeners. one is for IP:80 another is IP:443

    and define one vhost --- mydomain1.com

    then in each listener configuration, map to this vhost.

    no special -- just like normal listener configuration.

Share This Page