VirtualHosts on different ports and trying a non-response when asking to a non-allowed service.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux