Overview
Comment:Update .htaccess to make sure that ErrorDocument is not used, should be OK now that Apache 2.4.15+ is more common
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 37de0d1d23fa7588aeb01714248dc74320e4c9b6ce52f6f45741d6432cedd36d
User & Date: bohwaz on 2021-04-30 18:58:35
Other Links: manifest | tags
Context
2021-05-01
17:09
Fix decryption in edit check-in: e8e4c281dd user: bohwaz tags: trunk, stable
2021-04-30
22:35
Merge trunk changes into dev check-in: 58d38d4478 user: bohwaz tags: dev
18:58
Update .htaccess to make sure that ErrorDocument is not used, should be OK now that Apache 2.4.15+ is more common check-in: 37de0d1d23 user: bohwaz tags: trunk, stable
11:53
Fix wrong year was exported check-in: fd71816895 user: bohwaz tags: trunk, stable
Changes

Modified src/www/.htaccess from [5189696f0f] to [229f2663a8].

1
2
3
4






5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Options -MultiViews -Indexes
DirectoryIndex disabled
DirectoryIndex index.php







# FallbackResource n'est dispo que depuis Apache 2.2.16, soit Debian Wheezy (2013)
# Mais bugue avant Apache 2.4.15, il faut donc bien désactiver le DirectoryIndex
# cf. https://bz.apache.org/bugzilla/show_bug.cgi?id=58292
# et https://serverfault.com/questions/559067/apache-hangs-for-five-seconds-with-fallbackresource-when-accessing
<IfModule mod_version.c>
	<IfVersion >= 2.2.16>
		FallbackResource /_route.php
	</IfVersion>
</IfModule>

# Utilisation de ErrorDocument 404 à la place de FallbackResource si possible
ErrorDocument 404 /_route.php

# Un peu de sécurité
<IfModule mod_alias.c>
	RedirectMatch 404 _inc\.php
</IfModule>




>
>
>
>
>
>
|



<
<
<
<
<
<
<
<





1
2
3
4
5
6
7
8
9
10
11
12
13
14








15
16
17
18
19
Options -MultiViews -Indexes
DirectoryIndex disabled
DirectoryIndex index.php

# Rediriger les adresses dynamiques vers le routeur
FallbackResource /_route.php

# Si FallbackResource ne fonctionne pas, utiliser ceci :
#ErrorDocument 404 /_route.php

# Explication : FallbackResource n'est dispo que depuis Apache 2.2.16, soit Debian Wheezy (2013)
# Mais bugue avant Apache 2.4.15, il faut donc bien désactiver le DirectoryIndex
# cf. https://bz.apache.org/bugzilla/show_bug.cgi?id=58292
# et https://serverfault.com/questions/559067/apache-hangs-for-five-seconds-with-fallbackresource-when-accessing









# Un peu de sécurité
<IfModule mod_alias.c>
	RedirectMatch 404 _inc\.php
</IfModule>