1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache virtual hosts not working externally only the first container is

Discussion in 'Apache' started by Lee Cooper, Oct 4, 2014.

  1. #2
    hi my virtual host resolves locally but but not externally only the first container seems to be active.
    My windows host file reads as follows and DNS is set to forward to my ip

    # rhino.acme.com # source server
    # x.acme.com # x client host

    # localhost name resolution is handled within DNS itself. localhost
    # ::1 localhost www.aacomputersandconsoles.co.uk aacomputersandconsoles.co.uk www.guildwebsites.co.uk guildwebsites.co.uk www.defenderofaszune.guildwebsites.co.uk defenderofaszune.guildwebsites.co.uk

    My Httpd reads

    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf

    and my virtual host file reads as follows

    NameVirtualHost *:80
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ##ServerName or ##ServerAlias in any <VirtualHost> block.

    <VirtualHost *:80>
    DocumentRoot "e:/xampp/htdocs/aacomputersandconsoles" #only this directory is active externally
    ServerName www.aacomputersandconsoles.co.uk


    <VirtualHost *:80>
    DocumentRoot "e:/xampp/htdocs/guildwebsites"
    ServerName www.guildwebsites.co.uk
    ServerAlias *.guildwebsites.co.uk


    Any ideas why these only resolve locally and why only the first container is active externally as i have spent hours working on this problem.

    Thanks in advance
    LEE [​IMG]
    Lee Cooper, Oct 4, 2014 IP