Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
htaccess_apache2.4

htaccess-Unterschiede Apache 2.4 und 2.2

Bespiel intranet.tema.de: Htaccess-Abfrage, wenn nicht von TEMA-IP aufgerufen
gefunden bei https://stackoverflow.com/questions/10419592/htaccess-htpasswd-bypass-if-at-a-certain-ip-address

Apache 2.2

(z.B. Cubos-Server)

AuthType Basic 
AuthName "TEMA Intranet" 
AuthUserFile /var/www/vhosts/intranet.tema.de/httpdocs/tema_intranet/.htpasswd 
Require valid-user 
Order deny,allow 
Deny from all 
Allow from 195.243.199.42 
Allow from 78.34.157.221 
Satisfy any 

Apache 2.4

(z.B. Futris-Server)

<If "%{REMOTE_ADDR} != '195.243.199.42'">  
AuthType Basic  
AuthName "restricted area"  
AuthUserFile /var/www/vhosts/intranet.tema.de/httpdocs/tema_intranet/.htpasswd  
Require valid-user
</If>

Bedingte Direktiven

Eine IP freischalten ohne zu wissen, welche Apache-Version verwendet wird:

# Apache 2.2
<IfModule !authz_core_module>
	Order Deny,Allow
	Deny from all
	Allow from 123.123.123.123
</IfModule>

# Apache 2.4+
<IfModule authz_core_module>
	<RequireAll>
		Require ip 123.123.123.123
	</RequireAll>
</IfModule>
htaccess_apache2.4.txt · Last modified: 2024/01/05 13:07 by 127.0.0.1