bzr branch
http://darksoft.org/webbzr/adei/trunk
119
by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory |
1 |
RewriteEngine On |
2 |
RewriteOptions inherit
|
|
3 |
||
436
by Suren A. Chilingaryan
Remove hardcoded-security and replace it with one based on environmental variables |
4 |
RewriteCond %{QUERY_STRING} target=(set|send)
|
5 |
RewriteCond %{ENV:ADEI_SECURITY} .+
|
|
6 |
RewriteCond %{ENV:ADEI_CONTROL} ^$
|
|
7 |
RewriteCond %{ENV:ADEI_USERAUTH} ^$
|
|
8 |
RewriteRule control.php$ - [F]
|
|
9 |
||
119
by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory |
10 |
RewriteCond %{REQUEST_FILENAME} !service.php$
|
11 |
RewriteCond %{REQUEST_URI} ^(.*services/)[\w\d_]+(\.php)?$
|
|
436
by Suren A. Chilingaryan
Remove hardcoded-security and replace it with one based on environmental variables |
12 |
RewriteRule ^([\w\d_]+)(\.php)?$ %1service.php?service=$1 [QSA,E=ADEI_REDIRECT:1]
|
13 |
||
14 |
RewriteCond %{QUERY_STRING} service=control
|
|
15 |
RewriteCond %{QUERY_STRING} target=(set|send)
|
|
16 |
RewriteCond %{ENV:ADEI_REDIRECT} ^$
|
|
17 |
RewriteCond %{ENV:REDIRECT_STATUS} ^$
|
|
18 |
RewriteRule service.php$ - [F]
|
|
19 |
||
20 |
<Files "control.php"> |
|
21 |
Order deny,allow
|
|
22 |
Deny from all |
|
23 |
Allow from env=!ADEI_SECURITY
|
|
24 |
Allow from env=!ADEI_USERAUTH
|
|
25 |
Allow from env=ADEI_CONTROL
|
|
26 |
</Files>
|