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

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

    # localhost name resolution is handled within DNS itself.
    127.0.0.1 localhost
    # ::1 localhost
    127.0.0.1 www.aacomputersandconsoles.co.uk
    127.0.0.1 aacomputersandconsoles.co.uk
    127.0.0.1 www.guildwebsites.co.uk
    127.0.0.1 guildwebsites.co.uk
    127.0.0.1 www.defenderofaszune.guildwebsites.co.uk
    127.0.0.1 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>

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

    </VirtualHost>

    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
    SEMrush
    LEE [​IMG]
     
    Lee Cooper, Oct 4, 2014 IP
    SEMrush