Jan 14
2022
.htaccess if statement
<If “%{REMOTE_ADDR} == ‘123.123.123.123’ || %{REMOTE_ADDR} == ‘456.456.456.456’”>
Options +Indexes
</If>
<Else>
Options -Indexes
</Else>
<If “%{REMOTE_ADDR} == ‘123.123.123.123’ || %{REMOTE_ADDR} == ‘456.456.456.456’”>
Options +Indexes
</If>
<Else>
Options -Indexes
</Else>
When mod_speling
is installed, it may be turned on for a particular scope (such as a directory, virtual host, or the entire server) by setting the CheckSpelling directive to On.
# Don’t bother looking for favicon.ico
Redirect 404 /favicon.ico
# Don’t bother sending the custom error page for favicon.ico
<Location /favicon.ico>
ErrorDocument 404 “No favicon
</Location>
sprawdzenie konfiguracju VirtualHost
/usr/sbin/apache2ctl -S