How do I disable direct IP access?
-
- Posts: 6
- Joined: Sun Jun 08, 2014 4:30 pm
How do I disable direct IP access?
When I access my direct server IP, I connect to my website. However, I would like this not to be possible. How do I block direct IP access vía my server, so they get a forbidden error, or a error of some sort.
Re: How do I disable direct IP access?
its normal for apacheWhen I access my direct server IP, I connect to my website
by default, you can see a domain which is the first in the apache config
you can create any default domain, and make it first in the configuration file of apache (editing virtual hosts in apache.conf or httpd.conf)
Code: Select all
/home/user/conf/web/