I'm using Apache HTTPD Server under Debian Squeeze.
How can I prevent users to access my server by the server hostname(dummy.xxx.com) or ip address(xx.xx.xx.xx)?!
For example: I do not want them to use the hostname or ip address as url. I already thought about using mod_rewrite for this, but is there another alternative?
Thanks!
Update:
Let me explain my thoughts with an example: Normally you can access the apache webserver htdocs by typing the ip address of the server or the server hostname or an registered domain. But I want to allow only access with the domain.