In rewrite log it shows..
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (2) init rewrite engine
with requested uri /
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (3) applying pattern
'^/mylenya/(.*)' to uri '/'
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (3) applying pattern
'^/modules/(.*)' to uri '/'
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (3) applying pattern
'^/default/modules/(.*)' to uri '/'
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (3) applying pattern
'^/(.*)' to uri '/'
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (4) RewriteCond:
input='' pattern='(.*)lenya\.usecase=ac\.login(.*)' => not-matched
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (3) applying pattern
'^/(.*)' to uri '/'
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (2) rewrite '/' ->
'http://example.com:7070/default/'
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (2) forcing
proxy-throughput with http://example.com:7070/default/
[07/May/2009:19:19:46 +051800]
[example.com/sid#81f30b0][rid#83708b0/initial] (1) go-ahead with proxy
request proxy:http://example.com:7070/default/ [OK]
Andreas Hartmann wrote:
Anish schrieb:
Hi All
I'm trying to rewrite URL on Apache Server for authoring area of
Lenya 2.0, I'm following the sample given on Lenya site but unable to
do. My rewriting file is as follows:
NameVirtualHost *:80
# This is the non-SSL host for the authoring environment.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.com
# Turn proxy requests off for security reasons
ProxyRequests Off
RewriteEngine On
RewriteLog /home/john/src/www/logs/example.com-rewrite_log
Is there something useful in this rewrite log? Or maybe in the error
logs?
-- Andreas
RewriteLogLevel 4
# First we match everything which is not mapped to
/default/{area}
RewriteRule ^/lenya/(.*) http://example.com:7070/lenya/$1 [P,L]
RewriteRule ^/modules/(.*)
http://example.com.com:7070/modules/$1 [P,L]
RewriteRule ^/default/modules/(.*)
http://example.com:7070/default/modules/$1 [P,L]
# Redirect the login usecase to https
RewriteCond %{QUERY_STRING} (.*)lenya\.usecase=ac\.login(.*)
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
# Forward the areas to the proxy
RewriteRule ^/(.*) http://example.com:7070/default/$1 [P,L]
ProxyPassReverse / http://example.com:7070/default/
ErrorLog /home/john/src/www/logs/example.com-error_log
CustomLog /home/john/src/www/logs/example.com-access_log common
</VirtualHost>
I'm using Lenya 2.0
Apache I don't want to use HTTPS/SSL after restarting Apache it shows
nothing (or 404 error).
Please suggest.
--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk
--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk