Apache VirtualHost Question

Hopefully really simple, but I just can't get it working.

I've got apache running happily on my new box, but want to make one tiny change.

If you use the address : info.server.com
It will show the default apache site (/var/www)

but if you use any other address, or ip, it will redirect to another page.

I tried this:

<VirtualHost *>
ServerName info.server.com
DocumentRoot /var/www
</VirtualHost?
<VirtualHost *>
Redirect 301 / http://www.othersite.com
</VirtualHost>

In my httpd.conf, but it didn't want to play ball - just kept redirecting *everything* ....

Any ideas?

 

 

 

 

Top