Click to See Complete Forum and Search --> : How to configure apache to listen ONLY to a domain:port ?


Donovan
01-26-2001, 06:55 PM
Hi, I would like apache to listen ONLY to a spcific domain http://www.linuxnewbie.org/ubb/tongue.gifort.

Here is what I have in my httpd:conf:


<VirtualHost www.mydomain.fr:80> (http://www.mydomain.fr:80>)
DocumentRoot /var/www
ServerName servername
</VirtualHost>


This being the virtual server serving my pages.

What should I add in this file so apache will NOT listen to anything else than www.mydomain (http://www.mydomain) on port 80 (for example I don't want it to listen to another domain I have on the server).


Right now, apache listen to everything, every domain.
Thanks,
Donovan

ndogg
01-26-2001, 09:21 PM
Did you try this configuration?

------------------
Too much Sun can give you cancer. Windows break too easily.
Apples/Macintoshes can rot. BSD... sounds too much like LSD.
Penguins are the only animals sophisticated enough to wear a
tuxedo.


Linux, the only one with the Penguin.


http://ndogg.n3.net