Page 1 of 1

vhost

PostPosted: 09. July 2010 20:22
by maeg
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

Re: vhost

PostPosted: 09. July 2010 20:31
by Nobbie
maeg wrote:How can that be??


That can be if something is missing or wrong in configuration.

Re: vhost

PostPosted: 09. July 2010 21:13
by maeg
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

Re: vhost

PostPosted: 09. July 2010 21:25
by Nobbie
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.

Re: vhost

PostPosted: 09. July 2010 22:25
by maeg
Hi
thx for quick replay.

Now it seems to work

Maeg