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
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
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
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.
Here is a guide I wrote with more details on this subject... Setting up VHOSTS using XAMPP/Apache in Windows