VirtualHosts

Discussion in 'Server Operation' started by gabrix, Jun 7, 2008.

  1. gabrix

    gabrix New Member

    Hi Howtoforge !
    Cheers for the mail you sent me ! Here we go again !!!
    I have an apache virtualhost issue .
    Where i'm hosting my site an another site added and i don't manage to get them working . The problem is the virtualhost name resolution . When i write in the browser , let's say , siteX , instead , is default.site to show off. I have configured virtualhosts in sites-avialable dir fist and than i enabled them with a2ensite .The default site starts vith a NameVirtualHosts * directive which is not present on the siteX virtualhost file .As attachment there are the virtualhosts file i have,they maybe explain the issue better than me , whatever else you need just ask and thanks ... howtoforge i missed you too ....
     

    Attached Files:

    Last edited: Jun 7, 2008
  2. falko

    falko Super Moderator Howtoforge Staff

  3. gabrix

    gabrix New Member

    Apache error log file doesn't report any particolar strange behavior at all . Technically none of the virtualhosts file i sent are wrong . If i a2ensite marica and i'm looking for www.gabrix.ath.cx , marica shows off and if i look for marica still marica shows off . I a2dissite marica and things go back to normal behavior .
     
  4. gabrix

    gabrix New Member

    Solved ....
    I have put ips in all virtualhosts file i gave you and ops ... everything got sorted ... thanks anyway !
    <VirtualHost 10.0.0.5:80>
     

Share This Page