need to add VirtualHost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

need to add VirtualHost

Postby ilyail3 » 21. September 2007 08:04

hello, I'm using the latest version of xampp but I have a small issue with it.
I need to add couple VirtualHosts.
I searched the internet and found this
<VirtualHost *:80>
ServerName example.localhost
ServerAlias example.localhost
DocumentRoot C:\xampp\htdocs\example

but instead of getting to this dir when typing example.localhost(page not found).
I get there when I type 'localhost'
can someone help me?
Posts: 1
Joined: 21. September 2007 07:53

Postby delftdamage » 26. September 2007 00:25

<VirtualHost *:80>
ServerName localhost
ServerAdmin admin@localhost
DocumentRoot "c:/xampp/htdocs"

<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "c:/xampp/htdocs/subdomain"

These examples work fine.
I think localhost can't have subdomains or you have misspelled something.
(Check your apache logs)
Posts: 30
Joined: 15. June 2007 23:56

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests