Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache Virtual Host & TCP Rejecting

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  httpd dead but pid exist  
Author Message
pspfr

External


Since: Aug 07, 2003
Posts: 1



(Msg. 1) Posted: Thu Aug 07, 2003 1:53 pm
Post subject: Apache Virtual Host & TCP Rejecting
Archived from groups: alt>apache>configuration (more info?)

Hi.
I would like to know if it would be possible to tcp reject (or drop)
requests that don't have a domain name, but only an IP adress.
I explain myself :
I run a webserver which is accessible through two domain names :
www.domain1.com & www.domain2.com.
Each domain is mapped to a name-based virtual host in apache.
I would like a user who types www.domain1.com in his browser to go to the
right virtual host and receive the corresponding http page, but I would like
a user who types the actual IP and who doesn't know the domain to be TCP
rejected (ie without even a http response).
That way, scans on port 80 would fail but a request with the actual domain
name would be successful.
Do you think it's possible with an apache module or something ?
My firewall is iptables.
Thanx
Yann

 >> Stay informed about: Apache Virtual Host & TCP Rejecting 
Back to top
Login to vote
newjackswing

External


Since: Aug 14, 2003
Posts: 2



(Msg. 2) Posted: Thu Aug 14, 2003 10:40 pm
Post subject: Re: Apache Virtual Host & TCP Rejecting [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, well sort of.

make all domain virtual hosts and the default goes to a dumb page or
something..

if your want real TCP resets that can only be done with firewalling I
guess.. use iptables and "-m string" string match patch o matic.. you match
the port 80 http request and reject the packet..

"Yann Zz" <pspfr DeleteThis @netcourrier.com> wrote in message
news:bgt42o$fnb$1@news-reader2.wanadoo.fr...
 > Hi.
 > I would like to know if it would be possible to tcp reject (or drop)
 > requests that don't have a domain name, but only an IP adress.
 > I explain myself :
 > I run a webserver which is accessible through two domain names :
<font color=purple> > <a style='text-decoration: underline;' href="http://www.domain1.com" target="_blank">www.domain1.com</a> & <a style='text-decoration: underline;' href="http://www.domain2.com.</font" target="_blank">www.domain2.com.</font</a>>
 > Each domain is mapped to a name-based virtual host in apache.
 > I would like a user who types <a style='text-decoration: underline;' href="http://www.domain1.com" target="_blank">www.domain1.com</a> in his browser to go to the
 > right virtual host and receive the corresponding http page, but I would
like
 > a user who types the actual IP and who doesn't know the domain to be TCP
 > rejected (ie without even a http response).
 > That way, scans on port 80 would fail but a request with the actual domain
 > name would be successful.
 > Do you think it's possible with an apache module or something ?
 > My firewall is iptables.
 > Thanx
 > Yann
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache Virtual Host & TCP Rejecting 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual Host From PS? - Ok.. so I am running a server with a bunch of virtual hosts.. Someone on one of them is running a PHP script or CGI thats causing problems and im getting huge load spikes and sometimes even crashing the entire server requiring a hard reboot to fix it.. ...

automatic Virtual Host - Hello, on my dedicaced server, I would like that : the domain multinetworks.net is accessible in /home/multinetworks.net and that all sub-domaines are also accesible : I mean : When someone type : http://www.CrazyNetwork.net/ it take the files in : ..

Virtual Host - Bad Request - ==> One IP, may hostnames. (name based virtual host) When I set the IP address of the virtual hosts explicitly they work fine: -------part of conf file-------- NameVirtualHost 65.94.21.150 <VirtualHost 65.94.21.150> ServerAdmin webmaster@ha...

IP/Hostname Virtual Host - Hello, Is there a way I can create a virtual host based on a DYNAMIC IP and hostname? In other words, I want to redirect people who connect to my site with my IP address (e.g. http://62.252.64.3) or its hostname (e.g. http://a553e3.25sv543ca.myisp.com)....

my Virtual host is Virtual Toast - hi everyone ! Well after trying a few different configurations of the following lines of code I am still finding that I can only get the sites to go to the htdocs dir and not the subdirectories ... I keep on trying different things i read in..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]