Sorry, i´ve forgot the configuration:

!<VirtualHost lenya.example.com:80>
 ServerName lenya.example.com
 ServerAlias lenya
 ProxyRequests Off
 RewriteEngine On
 RewriteLog logs/lenya.example.com.rewrite.log
 RewriteLogLevel 9
 RewriteRule ^/([^/\.]+)$ $1/ [R]
 RewriteRule ^/([^/\.]+)/$
http://lenya.habenix.com/$1/authoring/index.html [R,L]
 RewriteCond %{QUERY_STRING} lenya\.usecase=login(.*)
 RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
 RewriteRule ^/(.*) http://lenya.example.com:8080/$1 [P,L]
 ProxyPassReverse / http://lenya.example.com:8080/
!</VirtualHost>



!<VirtualHost www.example.com:80>
 ServerName www.example.com
 ServerAlias www
 ProxyRequests Off
 RewriteEngine On
 RewriteLog logs/www.example.com.rewrite.log
 RewriteLogLevel 9
 # Rewrite fuer ROOT
 RewriteRule ^/$ index.html [R]
 RewriteRule ^/default/live/(.*)$ $1 [R,L]
 RewriteRule ^/(.*) http://www.example.com:8080/default/live/$1 [P]
 ProxyPassReverse / http://www.example.com:8080/

!</VirtualHost>

#########SSL PART##############
!<VirtualHosts *:443>
.
.
.
.

 ServerName lenya.example.com
 ProxyRequests Off
 RewriteEngine On
 RewriteLog logs/ssl.www.example.com.rewrite.log
 RewriteLogLevel 0
 RewriteRule ^/([^/\.]+)$ $1/ [R]
 RewriteRule ^/([^/\.]+)/$ 
http://www.example.com/$1/authoring/index.html [R,L]
 RewriteRule ^/(.*) http://www.example.com:8080/$1 [P,L]
 RewriteRule ^/(.*) http://%{SERVER_NAME}:8080/$1 [P,L]
 ProxyPassReverse / http://www.example.com:8080/
!</VirtualHost>

#############publication.xml###############
.
.
.
!<proxy url="https://www.example.com/default"; 
ssl="true" area="live"/>
<proxy url="http://www.example.com/default"; 
ssl="false" area="live"/>
<proxy url="https://lenya.example.com/default"; 
ssl="true" area="authoring"/>
<proxy url="http://lenya.example.com/default"; 
ssl="false" area="authoring"/>

###########################################


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to