Problems with the Windows version of XAMPP, questions, comments, and anything related.
by maeg » 09. July 2010 20:22
Hi
I have setup my server to virtuel host. I have 5 domains on it - and all works fine, but I can only call the webpage with:
http://www.mydomain.dk , and not like
http://mydomain.dk.
How can that be??
Thanks in advance for each hint!
/
Maeg
-
maeg
-
- Posts: 11
- Joined: 08. November 2009 19:58
by Nobbie » 09. July 2010 20:31
maeg wrote:How can that be??
That can be if something is missing or wrong in configuration.
-
Nobbie
-
- Posts: 13176
- Joined: 09. March 2008 13:04
by maeg » 09. July 2010 21:13
Hi
I have this in the file http-vhosts
- Code: Select all
<VirtualHost *:80>
ServerName localhost
DocumentRoot "L://server/xampp/htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName www.jmnet.dk
ServerAlias jmnet.dk
DocumentRoot "L://server/xampp/htdocs/jmnet"
</VirtualHost>
<VirtualHost *:80>
ServerName www.rejsbillig.dk
ServerAlias rejsbillig.dk
DocumentRoot "L://server/xampp/htdocs/rejsbillig.dk"
</VirtualHost>
And this in the file C:\WINDOWS\system32\drivers\etc\hosts
- Code: Select all
127.0.0.1 localhost
127.0.0.1 www.rejsbillig.dk
Is that wrong??
I hope someone can help
/
Maeg
-
maeg
-
- Posts: 11
- Joined: 08. November 2009 19:58
by Nobbie » 09. July 2010 21:25
maeg wrote:Is that wrong??
Yes.
I cannot find any entry "mydomain" (neither
http://www.mydomain.dk nor mydomain.dk) and i cannot see the NameVirtualHost Directive. And I cannot find any IP definition for
www.jmnet.dk neither for jmnet.dk neither for rejsbillig.dk
Lots of things missing.
-
Nobbie
-
- Posts: 13176
- Joined: 09. March 2008 13:04
by maeg » 09. July 2010 22:25
Hi
thx for quick replay.
Now it seems to work
Maeg
-
maeg
-
- Posts: 11
- Joined: 08. November 2009 19:58
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 217 guests