
02-23-2013, 09:33 AM
|
|
New Member
|
|
Join Date: Feb 2013
Posts: 3
|
|
v4.2.2, native litespeed server and vhost config.
seems like the same problem i get.
first of all the rewrite rules (joomla default rewrite rules):
Code:
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
RewriteBase /base/
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
now to the interesting parts. if i use .htaccess the rewrite rules work. if i use litespeed nativ rewrite settings under virtual hosts -> rewrite the rules result in 404s.
Quote:
|
Originally Posted by htaccess
==> /srv/http/test/logs/error.log <==
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] strip base: '/base/' from URI: '/base/features'
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Rule: Match 'features' with pattern '.*', result: 1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Cond: Match '' with pattern 'base64_encode[^(]*\([^)]*\)', result: -1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Cond: Match '' with pattern '(<|%3C)([^s]*s)+cript.*(>|%3E)', result: -1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Cond: Match '' with pattern 'GLOBALS(=|\[|\%[0-9A-Z]{0,2})', result: -1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Cond: Match '' with pattern '_REQUEST(=|\[|\%[0-9A-Z]{0,2})', result: -1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Rule: Match 'features' with pattern '.*', result: 1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] add ENV: 'HTTP_AUTHORIZATION:'
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] No substition
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Rule: Match 'features' with pattern '.*', result: 1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Cond: Match '/base/features' with pattern '^/index\.php', result: -1
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Cond: Match '/base/features' with pattern '/component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$', result: 2
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] stat( /srv/http/test/www/base/features ) failed
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] stat( /srv/http/test/www/base/features ) failed
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Source URI: 'features' => Result URI: 'index.php'
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] Last Rule, stop!
2013-02-23 18:11:57.439 [INFO] [12.34.56.78:52161-0#test] [REWRITE] prepend rewrite base: '/base/', final URI: '/base/index.php'
==> /srv/http/test/logs/access.log <==
12.34.56.78 - - [23/Feb/2013:18:11:57 +0100] "GET /base/features HTTP/1.1" 200 4578
|
Quote:
|
Originally Posted by litespeed setting
==> /srv/http/test/logs/error.log <==
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Rule: Match '/base/features' with pattern '.*', result: 1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Cond: Match '' with pattern 'base64_encode[^(]*\([^)]*\)', result: -1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Cond: Match '' with pattern '(<|%3C)([^s]*s)+cript.*(>|%3E)', result: -1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Cond: Match '' with pattern 'GLOBALS(=|\[|\%[0-9A-Z]{0,2})', result: -1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Cond: Match '' with pattern '_REQUEST(=|\[|\%[0-9A-Z]{0,2})', result: -1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Rule: Match '/base/features' with pattern '.*', result: 1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] add ENV: 'HTTP_AUTHORIZATION:'
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] No substition
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Rule: Match '/base/features' with pattern '.*', result: 1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Cond: Match '/base/features' with pattern '^/index\.php', result: -1
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Cond: Match '/base/features' with pattern '/component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$', result: 2
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] stat( /srv/http/test/www/base/features ) failed
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] stat( /srv/http/test/www/base/features ) failed
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Source URI: '/base/features' => Result URI: 'index.php'
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] [REWRITE] Last Rule, stop!
2013-02-23 18:23:51.277 [INFO] [12.34.56.78:52283-0#test] File not found [/srv/http/test/www/index.php]
==> /srv/http/test/logs/access.log <==
12.34.56.78 - - [23/Feb/2013:18:23:51 +0100] "GET /base/features HTTP/1.1" 404 389
|
the only difference i can spot are the lines with "strip base" and "prepend write base" in the htaccess log.
Any ideas what i'm doing wrong?
Last edited by danse; 02-23-2013 at 09:55 AM..
|