[imp] Hiding URL.
Brad Dameron
bdameron@tscnet.com
Thu, 13 Jun 2002 12:23:12 -0700
Well here is what I had to do.
httpd.conf:
DocumentRoot /web/html/horde/imp
Alias /horde/ "/web/html/horde/"
Alias /imp/ "/web/html/horde/imp/"
Alias /turba/ "/web/html/horde/turba/"
Alias /kronolith/ "/web/html/horde/kronolith/"
Alias /mnemo/ "/web/html/horde/mnemo/"
I set my document root to imp so that it starts off directly in IMP. Then it
never shows /horde/imp or /horde/mnemo, etc in the URL.
Then in horde's registry.php I set the webroot for imp to ''.
For the others I changed the webroot to '/app'. Example for turba I set the
webroot to '/turba'. The only thing is that it will show /turba/search.php
in the url. Could not figure out a way to hide the app from the URL. Not
such a big issue. But it all works great.
---
Brad Dameron Network Account Executive
TSCNet Inc. www.tscnet.com
Silverdale, WA. 1-888-8TSCNET
> -----Original Message-----
> From: Eric Rostetter [mailto:eric.rostetter@physics.utexas.edu]
> Sent: Wednesday, June 12, 2002 3:01 PM
> To: bdameron@tscnet.com
> Cc: imp@lists.horde.org
> Subject: Re: [imp] Hiding URL.
>
>
> Quoting Brad Dameron <bdameron@tscnet.com>:
>
> > I checked the archives but only found solutions for older HORDE.
>
> How about the admin faq? I'm not sure if it is correct/working, but
> it is in there.
>
> > I want to hide the /horde/imp from the url so it only shows
> like /login.php.
>
> Cool.
>
> > I have tried several things. The first being to do the following to my
> > httpd.conf:
> >
> > DocumentRoot /web/html/horde/imp
> > Alias /horde/ "/web/html/horde/"
>
> The faq says to add to this:
>
> Alias /imp/ "/web/html/horde/imp"
>
> and you might want to add additional ones like that for the other
> modules (turba, etc).
>
> > Then in the registry.php for horde I changed:
> >
> > 'webroot' => $this->applications['horde']['webroot'] . '/imp',
> >
> > to
> >
> > 'webroot' => '',
>
> That's *Probably* correct, though I don't know for sure. But you also
> have to change the webroot for the other apps (imp, turba, etc). This
> assumes that the other modules are installed under /horde/ and not under
> /horde/imp/ of course, which they really should be.
>
> > Now this works initially. But not when you install additional
> modules like
> > turba, kronolith, etc. When you enter one of the other modules
> then click
> > the mail menu link at the top it then takes you to the login.php to
> > re-login.
>
> This is probably due to session setup. If you are using cookies, then
> you need to set the "cookie_path" variables in registry.php correctly
> for the new base path. By default the cookie_path is I think "/horde"
> and you probably want to set it to "/" instead.
>
> > Anyone done this with the latest Horde/IMP?
>
> Nope. But if you try out the above, let me know the results. If
> it helps/works
> I'll add the info to the FAQ, which is rather sketchy in this area.
>
> > Thanks.
> >
> > ---
> > Brad Dameron
>
> --
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
>
> "TAD (Technology Attachment Disorder) is an unshakable,
> impractical devotion
> to a brand, platform, product line, or programming language. It's
> relatively
> harmless among the rank and file, but when management is
> afflicted the damage
> can be measured in dollars. It's also contagious -- someone with
> sufficient
> political clout can infect an entire organization."
>
> --"Enterprise Strategies" columnist Tom Yager.
>