Add to it:

Im using:

Lenya 2.0
Apache2
Tomcat 5.5.17

Anish wrote:
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
    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



Reply via email to