How to configure apache to listen ONLY to a domain:port ?
March 13th, 2010
Filed under: enart.xn--i1uv10c.com | edit
Here is what I have in my httpd:conf:
DocumentRoot /var/wwwServerName
servername
This being the virtual server serving my pages for my domain..
What should I add in this file so apache will NOT listen to anything else than http://www.mydomain.fr 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 every domain on port 80.
Thanks,
[Edited by Sharg on 01-27-2001 at 06:42 AM]
All APACHE directives are hierarchical.
The definition of port 80 in the virtual host directive should take precedence over 99 for that virtual host only.
I set
# Port: The port the standalone listens to. For ports < 1023, you will
# need httpd to be run as root initially.
Port 8888
and have the virtual server as shown above, all it do is say it can't find server from browser (of course I did restarted apache).
Do you have a clue why ?
I am sure there is a simple way of doing a recon of broadcast ports- I don't know it-
Ones to avoid 25 41 43 and 3306 for mysql
Just be caerful not to broadcast on the same port as your control panel for example.
Common 'extra' httpd ports 81 99 8888 9999
# Port: The port the standalone listens to. For ports < 1023, you will
# need httpd to be run as root initially.
#Port 80
#Only port 99 by default
Port 99
Does that look ok?
Thanks,
#If you have any other info about this subject , Please add it free.# |