Archive for the Apache Category

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>

Mar 26 2011

How to permit case-insensitive URLs with Apache

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.

Mar 17 2011

File does not exist: … favicon.ico

# 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>

 

Mar 1 2011

Apache i VirtualHost

sprawdzenie konfiguracju VirtualHost
/usr/sbin/apache2ctl -S