httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pepe <pepinsoftw...@hotmail.com>
Subject [users@httpd] VirtualHosts on different ports and trying a non-response when asking to a non-allowed service.
Date Thu, 06 Dec 2012 19:59:43 GMT

I have an apache server with 3 virtual host (all DNS work already done):
http://www1.example.com --> listens on port 80
http://www2.example.com --> listens on port 80 with required user authentication
https://wwwsecure.example.com --> listens on port 443
Everyone with different DocumentRoot.

Everything working with "<VirtualHost>" directive

I want that if someone types:
http://wwwsecure.example.com   (--> request to port 80)
the client do not receive any answer (like "page not found"). By now, the client receives
the first virtual host (http://www1.example.com).
And viceversa, if someone types:
https://www1.example.com (--> request to port 443) or https://www2.example.com
I would like the client do not receive any answer.

Is this possible?

Thanks. 		 	   		  
Mime
View raw message