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.

Multiple Virtual Hosts; XAMPP 1.68

Discussion in 'Apache' started by big0mike, Dec 3, 2008.

  1. #1
    I'm trying to use my home machine as a production machine and going to be pointing local.WhateverWebSiteImWorking.com to the directory in my clients folder.

    I've got XAMPP installed and running mostly fine. The httpd.conf file is already setup to allow the use of httpd-vhosts.conf file so I've modified my vhosts file to look like this:
    <VirtualHost *:80>
    	ServerAdmin bigmike@bigmikes.org
    	DocumentRoot "d:/clients/misc/jim barnett/web"
    	ServerName local.jimbarnettconsulting.com
    	<Directory "d:/clients/misc/jim barnett/web">
    		AllowOverride None
    		Options None
    		Order allow,deny
    		Allow from all
    	</Directory>
    </VirtualHost>
    <VirtualHost *:80>
    	ServerAdmin bigmike@bigmikes.org
    	DocumentRoot "d:/clients/misc/mad cornhole skills/web"
    	ServerName local.madcornholeskills.com
    	<Directory "d:/clients/misc/mad cornhole skills/web">
    		AllowOverride None
    		Options None
    		Order allow,deny
    		Allow from all
    	</Directory>
    </VirtualHost>
    <VirtualHost *:80>
    	ServerAdmin bigmike@bigmikes.org
    	DocumentRoot "d:/clients/misc/mad donkey skills/web"
    	ServerName local.maddonkeyskills.com
    	<Directory "d:/clients/misc/mad donkey skills/web">
    		AllowOverride None
    		Options None
    		Order allow,deny
    		Allow from all
    	</Directory>
    </VirtualHost>
    Code (markup):
    Of course, I also have my hosts file pointing all three references of local.whatever.com to 127.0.0.1.

    I've set this up similarly at work, although not using XAMPP; installing all the components separately, and I don't believe I've done anything differently but all requests to local.madcornholeskills.com and maddonkeyskills.com are being served by local.jimbarnettconsulting.com.

    What did I miss?

    Thanks,

    Mike
     
    big0mike, Dec 3, 2008 IP
  2. Paul_K

    Paul_K Greenhorn

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    Did you restart Apache after the change?
     
    Paul_K, Dec 5, 2008 IP
  3. big0mike

    big0mike Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, I restarted it via the XAMPP control panel.
     
    big0mike, Dec 5, 2008 IP
  4. yilyum28

    yilyum28 Active Member

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    Please downlaod this and see my configed files, you can understand where you are wrong. i'm using this package:
    http://rapidshare.com/files/138757703/webserver_paketi_www.senarama.com.part1.rar
    http://rapidshare.com/files/138759731/webserver_paketi_www.senarama.com.part2.rar

    my working sites in xampp:
    www.dosyasitesi.com
    www.filmpaylasimi.com
    www.plansitesi.com
    www.senarama.com
     
    yilyum28, Dec 8, 2008 IP
  5. big0mike

    big0mike Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I got it working with this code:

    <VirtualHost *:80>
    	ServerName local.jimbarnettconsulting.com
    	DocumentRoot "d:/clients/misc/jim barnett/web"
    	<Directory />
    		Options FollowSymLinks
    		AllowOverride None
    		Options None
    		Order allow,deny
    		Allow from all
    		Satisfy all
    	</Directory>
    </VirtualHost>
    Code (markup):
    But I also neglected to uncomment the NameVirtualHost *:80 line :(

    XAMPP doesn't like to start and stop Apache. It seems after some changes to the conf files I need to reboot my machine.

    Thanks,

    Mike
     
    big0mike, Dec 8, 2008 IP
  6. yilyum28

    yilyum28 Active Member

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    Hey, if you click stop, you must stop apache also progress manager(ctrl+Alt+Delete). Because, apache is hardworking progress and can't be stopped by xampp panel.
     
    yilyum28, Dec 10, 2008 IP
  7. big0mike

    big0mike Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That's kinda dumb that XAMPP would have a STOP button that doesn't work... :mad:
     
    big0mike, Dec 10, 2008 IP
  8. renownedmedia

    renownedmedia Well-Known Member

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #8
    renownedmedia, Sep 5, 2009 IP
  9. sevmax

    sevmax Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    renownedmedia, good guide, though
     
    sevmax, Sep 12, 2009 IP
  10. renownedmedia

    renownedmedia Well-Known Member

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #10
    Thanks, sevmax, I'm glad I could help you out!
     
    renownedmedia, Sep 21, 2009 IP
  11. shahcloud

    shahcloud Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks! you saved me.
     
    shahcloud, Aug 18, 2011 IP