apache virtual hosting

Discussion in 'Server Operation' started by soroccoheaven, Nov 25, 2008.

  1. soroccoheaven

    soroccoheaven New Member

    I am trying to setup virtual hosting (name based on same system)but as i have set it up for SSL so i am not able to work it out.
    what i am thinking now is, can i modify my hosts file and add an entry in it with the ip address and domain name for my other server so that whenever any request will come to this server it will be directed/resolved by hosts file and will forward it to second webserver.

    as i have installed my webserver behind the adsl ..portfording done everything is working pretty well.now i want other domains on the same wan IP.will this work ?..
    say my webserver1.com is running on 192.168.2.2 and now i have installed another webserver2.com with ip address 192.168.2.10 because my adsl modem is configured for 192.168.2.2 all the port 80 request will be forwarded to 192.168.2.2 , what i am thinking i will add entry for 192.168.2.10 for my second webserver2.com in hosts file.
    will this work ?
    or please advice how to eliminate ssl ?
     
  2. falko

    falko Super Moderator

  3. soroccoheaven

    soroccoheaven New Member

    thanks Falko,
    i have gone through the tutorial and finally decided to eliminate SSL so that i will be able to configure apache for nam based virtual hosting.can you guide me how to eliminate SSL now ?
     
  4. falko

    falko Super Moderator

    Comment out
    Code:
    Listen 443
    in the Apache configuration and remove all SSL parts from your vhosts.
     
  5. soroccoheaven

    soroccoheaven New Member

    Thanks falko, this has been implemented but dont know what's the problem, will try/check to do it again.
     

Share This Page