httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Long <>
Subject Re: [users@httpd] IP address show Apache welcome page but domain name working!
Date Tue, 22 Sep 2020 13:15:33 GMT
Where is "000-default.conf" file? I have not it!!

# ls /etc/httpd/conf.modules.d/
00-base.conf           00-proxy_timeout.conf  10-mod_security.conf
00-dav.conf            00-ssl.conf            10-proxy_h2.conf
00-lua.conf            00-systemd.conf        15-php.conf
00-mpm.conf            01-cgi.conf            README
00-optional.conf       10-fcgid.conf          
00-proxy.conf          10-h2.conf 

On Tuesday, September 22, 2020, 11:12:28 AM GMT+3:30, Walter Penn <>

Jason Long wrote:
> When I visit my website by its IP address the welcome page of Apache showed, but with"" 
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 ^/ [R,L]

Retart httpd then it will work.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message