AW: [horde] horde and apache rewrite [ssl proxy]

Lars Kirchhoff lkirchhoff at ieb.net
Tue Oct 7 01:30:29 PDT 2003


thank you Benoit, but unfortunately it didn't work, because I have
installed horde in the root directory of the subdomain

     -> file root /home/http/htdocs/xxx        -> horde home
                  /home/http/htdocs/xxx/imp    -> imp home

Document root for xxx.abc.com is: /home/http/htdocs/xxx

This means my horde configuration in the registry.php is like that:

     'fileroot' => dirname(__FILE__) . '/..',
     'webroot' => '',
     'initial_page' => 'login.php',

After some debugging with the Auth and URL lib files I tried to
set different server_names and and server_ports in the conf.php
where I set the server_name to www.abc.com/xxx/ and the server_port
to 443 and the ssl mode to 1. With this I got at least the login
screen and could login, but all links inside the apps where broken,
as the directory /xxx where missing in the link.

I tried to add this to the registry as webroot directory like this

     'webroot' => '/xxx'

but then some of the links were correct and some did have the directory
twice.

now I'm stuck again. Does anyone have an idea?

/lars


> -----Ursprüngliche Nachricht-----
> Von: Benoit St-André [mailto:ben at benoitst-andre.net]
> Gesendet: Montag, 6. Oktober 2003 17:08
> An: lkirchhoff at ieb.net; horde at lists.horde.org
> Betreff: Re: [horde] horde and apache rewrite [ssl proxy]
>
>
> 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