Jason Long wrote:
When I visit my website by its IP address the welcome page of Apache showed, but 
with"https://domain-name.net";  everything is OK. How can I block direct access 
by IP or forward it to domain?

In the 000-default.conf put these lines:


RewriteEngine on
RewriteRule ^/ https://your.domain.name/ [R,L]

Retart httpd then it will work.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to