[horde] horde and apache rewrite [ssl proxy]

Benoit St-André ben at benoitst-andre.net
Mon Oct 6 08:07:48 PDT 2003


Le 6 Octobre 2003 07:52, Lars Kirchhoff a écrit :
> hello,
>
>   I have a question concerning an ssl proxy configuration. I tried to
> configure
>   and setup horde on a subdomain, lets say at: xxx.abc.com. On this
> subdomain
>   horde and all installed application are running fine.
>   Now I tried to access this subdomain via a ssl proxy, because its not
> possible
>   to have a single ssl subdomain or domain on this machine. The idea is
> to access
>   horde via www.abc.com/xxx/. The problem which I'm facing now, is that
> the index.php
>   of horde always returns /login.php as default page for login purposes,
> which is
>   correct, but in the above configuration leads to www.abc.com/login.php
> instead of
>   www.abc.com/xxx/login.php.
>
>   My question is now, if my RewriteRules are incorrect or if there is a
> possibility
>   to change the default page or to change the generall uri generation of
> horde?
>
>   here my Apache Rewrite Rules:
>
>      RewriteMap      domaindb        txt:/etc/httpd/ssldomains
>      RewriteRule     ^/icons/(.+)  -                               [L]
>      RewriteRule     ^/w3c/(.+)      -                               [L]
>      RewriteRule     ^/([^/]+)/(.*)  /${lowercase:$1}/$2
> [S=1]
>      RewriteRule     ^/(.*)          /${lowercase:$1}
>      RewriteRule     ^/www\.([^/]+)/(.*)
> /${domaindb:$1|%{HTTP_HOST}/$1}/$2      [S=2]
>      RewriteRule     ^/([^/]+)/(.*)
> /${domaindb:$1|%{HTTP_HOST}/$1}/$2      [S=1]
>      RewriteRule     ^/(.+)                  /$1/
> [R,L]
>      RewriteRule     ^/(.*)                  http://$1
> [P,L]
>
>   thanks in advance
>
> /lars

It's not a question of rewriteRules, it's a question of registry...

in horde/config/registry.php

$this->applications['horde'] = array(
    'fileroot' => dirname(__FILE__) . '/..',
    'webroot' => '/horde',
    'initial_page' => 'login.php',
....

You just have to modify the webroot to whatever xxx is ... It's working 
perfectly for my, with MUCH simpler rules...

Actually, I use the ProxyPass rule instead

ProxyPass /xxx http://otherserver.abc.com/xxx/
ProxyPass /xxx/ http://otherserver.abc.com/xxx/

Doing the exact same ssl/proxy thing...

-- 

Benoit St-André
Conseiller pédagogique à la CS des Affluents
Connaissez-vous Linuxédu-Québec ? http://linuxeduquebec.org
ben at benoitst-andre.net




More information about the horde mailing list