[imp] virtualhost
Ahmed
ashihab@alcahest.com
Tue, 3 Sep 2002 11:34:50 +0100
Lito,
I have this same setup. Here is my apache config (apache 1.3.22). Note I
don't use IP based virtual hosting but named virtual hosting.
----------------------- snip
<VirtualHost *:80>
ServerName webmail.alcahest.com
DocumentRoot /var/www/Intranet/horde
<Directory /var/www/Intranet/horde>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
---------------------- snip
my horde registery is somewhat different to standard as I allow my users to
access the system as either https://webmail.alcahest.com or
http://internal.url/horde
---------------------- snip
$horde_root = '/horde';
if (stristr($_SERVER['SERVER_NAME'], "webmail")) {
$horde_root = '';
}
$this->applications['horde'] = array(
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => $horde_root,
'initial_page' => 'login.php',
'icon' => $horde_root . '/graphics/home.gif',
'name' => _("Alcahest"),
'allow_guests' => false,
'show' => true,
'templates' => dirname(__FILE__) . '/../templates'
);
---------------------- snip
hope this helps
Ahmed...
Quoting lito lampitoc <ral@codewan.com.ph>:
> Is it possible for IMP 3.1 to be hosted on virtual host. I find long url
> unfriendly for my users so I plan to use it straight from a host like
> http://webmail.abc.com instead of a long one like
> http://www.abc.com/horde/imp or putting a link like
> http://www.abc.com/webmail. I've been skimming around the archive but
> none of the related thread works for me, there is one very close
> the "[imp] Apache/IMP httpd.conf help?" by Rick Compton, I tried his
> example but it didn't work for me either. Here is my own configuration:
>
> ---httpd.conf----
>
> ServerName xx.xx.xx.xx
>
> NameVirtualHost xx.xx.xx.xx
> <VirtualHost xx.xx.xx.xx>
> DocumentRoot /usr/local/apache/htdocs/horde/imp
> ServerName webmail.abc.com
> Alias /horde/ "/usr/local/apache/htdocs/horde"
> Alias /imp/ "/usr/local/apache/htdocs/horde/imp"
> DirectoryIndex index.php
> .
> .
> </VirtualHost>
>
> (I tried putting the Alias outside VirtualHost directive too for the
> main server to use, but no luck)
>
> --registry.php---
>
> 'webroot' => '/imp',
> 'icon' => '/horde/imp/graphics/imp.gif',
> 'name' => _("Mail"),
> 'allow_guests' => true,
> 'show' => true
>
> I copied this from Rick's example but it didn't work, so I switched back
> to my original configuration. The error says:
>
> The requested URL /imp/redirect.php was not found on this server.
> everytime I go to webmail.abc.com
>
> I've been on this for 2 days now, so if anyone is kind enough to lend a
> help, I would appreciate it.
>
> Thanks.
>
>
>
> --
> Lito A. Lampitoc
> Foundation for Communication Initiatives phone:+63(2)8941345
> CodeWAN Project http://www.codewan.com.ph
> --
> "Regardless of the legal speed limit, your Buick must be operated at
> speeds faster than 85 MPH (140kph)."
> -- 1987 Buick Grand National owners manual.
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org