Page 1 of 1

can't leave htdocs need some help

PostPosted: 12. July 2007 17:22
by rcpalace
Hi guys, I have set up my xampp server and have added 3 domains for it.
I have done the needed in the apache httpd-vhosts file shown below:
Code: Select all
##<VirtualHost *:80>
##    ServerAdmin admin@cigaremp.com
##    <Directory "C:\xampp\htdocs\cigaremp.com">
##    ServerName cigaremp.com
##    ServerAlias www.cigaremp.com
##</Directory>
##</VirtualHost>

##<VirtualHost *:80>
##    ServerAdmin sales@rc-palace.com
##    <Directory "C:\xampp\htdocs\rc-palace.com">
##    ServerName rc-palace.com
##    ServerAlias www.rc-palace.com
##</Directory>
##</VirtualHost>

##<VirtualHost *:80>
##    ServerAdmin sales@dynno.com
##    <Directory "C:\xampp\htdocs\dynno.com">
##    ServerName dynno.com
##    ServerAlias www.dynno.com
##</Directory>
##</VirtualHost>


Yet, Instead of the domain checking the directory of it's own it only stays at the htdocs main file and not the directory for each domain.
What's going on?
Any help will be appreciated.
Kind Regards.

PostPosted: 12. July 2007 20:06
by davidspan

PostPosted: 12. July 2007 20:13
by rcpalace
do I need xampplite? or xampp will work just fine?
Thanks.

PostPosted: 12. July 2007 20:18
by davidspan
you can use xampp, just note the differences in the dir settings

PostPosted: 12. July 2007 20:24
by rcpalace
Alright thanks! it worked.
Kind regards.

I got virtual hosts working but...

PostPosted: 13. July 2007 10:15
by Capt. Duck
I followed your steps above and got it working also but I have one other question.

I made the three following virtual host sites.
test
webdev
duck

However, when I point my browser to them it opens some default index file that is not in the virtual host site's dir
For example, if I point my browser to http://duck/
my browswer opens to http://duck/xampp/
and shows some default xampp file (two tone orange with "Welcome to XAMPP for Windows Version 1.6.2 ! and some links)
then, if I try to force it to the index.html file I created in that folder (http://duck/index.html) the URL in my browsers address bar remains as http://duck/index.html but the file that opens just says "IT WORKS".

Neither of the above are the index file the address points to, my index file say something different including what it's path is.

I don't know what setting is redirecting my browswer to open these xampp default index files.
Any help figuring out how to just let the virtual host sites open the index file in that sites home dir will be appreciated.

Thanks,
Capt. Duck

PostPosted: 15. July 2007 00:52
by davidspan
remove the default files in the htdocs dir, leave the folders, just remove the files.

PostPosted: 15. July 2007 03:57
by Capt. Duck
davidspan wrote:remove the default files in the htdocs dir, leave the folders, just remove the files.


Thank you very much. I'll probably have more questions as I get into this.

"Duck"

PostPosted: 19. July 2007 11:56
by jtp866