Page 1 of 1

Virtual Hosts xampp 1.6.6

PostPosted: 24. January 2009 14:52
by jami
Voilà, mon problème...

Je voudrais mettre deux sites web sur xampp.

Ceci marche sur le LAN mais à partir de l'internet avec deux urls differents, p.e. www.website.com et www.website1.com, je tombe toujours sur le premier site www.website.com, c-à-d, le default localhost.

<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/website1
ServerName www.website1.com
</VirtualHost>

Dans WINDOWS/System32/drivers/etc

127.0.0.1 localhost
127.0.0.1 www.website1.com

Qqn peut m'aider??????

Re: Virtual Hosts xampp 1.6.6

PostPosted: 24. January 2009 23:33
by Wiedmann
Well, I don't understand frensh...

But in your config there is one line missing:
Code: Select all
NameVirtualHosts *:80

Re: Virtual Hosts xampp 1.6.6

PostPosted: 25. January 2009 00:25
by Izzy
Why are you posting using the French language in the Apache Friends in English forum when all your other posts, except your double post of this same issue, are using the correct English language for this forum - you can post in English as you have already proven in the past, so Why?

Please don't double post the same topic it is bad forum etiquette as is posting in the wrong language when you know and can to do otherwise.

Also please read the comments in the httpd-vhosts.conf file, in particular the method used to check your code for errors, then paste the full message here not just the snippets that you feel give you a positive outcome, like Syntax OK.
This is not the full message returned after the apache -S command and the full message would have given more clues to rectify your problem.

Here is a link to 25 Forum Etiquette Tips - please read, they are in English which I know you can read, write and understand quite well because you have been visiting these forums now for quite some time.