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.

Virtual host problem

Discussion in 'Apache' started by tke248, Jul 13, 2005.

  1. #1
    I have two .com domain trying to use virtual host file to redirect site but it is only going to the first site regardless of which domain name entered any assistance will be greatly appreciated

    NameVirtualHost 192.168.1.100 #external ip
    NameVirtualHost 192.168.1.4 #internal ip


    <VirtualHost 192.168.1.100 192.168.1.4>

    ServerAdmin webmaster@site1.com
    ServerName www.site1.com
    DocumentRoot /var/www/html

    <Directory />
    Options +Includes
    </Directory>

    ErrorLog /var/www/html/logs/error.log
    CustomLog /var/www/html/logs/access.log combined


    </VirtualHost>
    <VirtualHost 192.168.1.100 192.168.1.4>

    ServerAdmin webmaster@site2.com
    ServerName www.site2.com
    DocumentRoot /var/www/html/site2

    <Directory />
    Options +Includes
    </Directory>

    ErrorLog /var/www/html/site2/logs/error.log
    CustomLog /var/www/html/site2/logs/access.log combined

    </VirtualHost>
     
    tke248, Jul 13, 2005 IP
  2. tke248

    tke248 Well-Known Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #2
    willing to pay $20 instantly via paypal PM if intrested need this done fast
     
    tke248, Jul 14, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you don't sort things out by tonight, PM me and I will help you out.

    J.D.
     
    J.D., Jul 14, 2005 IP