Um – forget everything I wrote. You don't really own the domain example.com, do you? :)

I own the domain which I'm using in my application... :-)

It'll be helpful if you could provide me an authoring area rewriting sample (without HTTPS/SSL)...


Andreas Hartmann wrote:
Anish schrieb:
What kind of error does the HTTPD send back? 404, 503, …?

It's 404...

Um – forget everything I wrote. You don't really own the domain example.com, do you? :)

-- Andreas




Andreas Hartmann wrote:
Anish schrieb:
This looks good – and what does the server return for this request? Did you check the Lenya logs?

-- Andreas

Yes. I've checked Lenya logs but log doesn't show any error.
I think it's unable to hit the login page of CMS.

What kind of error does the HTTPD send back? 404, 503, …?

-- Andreas


Andreas Hartmann wrote:
Anish schrieb:
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]

This looks good – and what does the server return for this request? Did you check the Lenya logs?

-- Andreas




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 webmas...@example.com
    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














--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org
For additional commands, e-mail: user-h...@lenya.apache.org

Reply via email to