[horde] Recommended Apache config

Vilius Šumskas vilius at lnk.lt
Tue Apr 2 10:13:56 UTC 2013


> > Hello,
> >
> > stumbeled the hard way across the need for activated .htaccess and
> > rewrite stuff for Horde/Nag and maybe other parts of Horde. This
> > really makes me wonder if there is some resource which explains what
> > are the recommended/needed webserver features are. In the installation
> > docs i have not found anything about this and it looks like older
> > versions of Horde/IMP/Nag haven't need it also.
> > With something around this it is now working but with the below quote
> > from the Apache documentation i'm not sure if this is the preferred way:
> >
> > <Directory "/var/www/horde">
> >    Options -Indexes -ExecCGI -Includes -MultiViews
> >    AllowOverride FileInfo Limit
> >    Order allow,deny
> >    Allow from all
> > </Directory>
> >
> >
> > Quota from Apache docus regarding .htaccess:
> >
> > You should avoid using .htaccess files completely if you have access
> > to httpd main server config file. Using .htaccess files slows down
> > your Apache http server. Any directive that you can include in a
> > .htaccess file is better set in a Directory block, as it will have the
> > same effect with better performance.
> >
> > So should i try to merge the .htaccess in the main config?
> >
> > Is this documented somwhere?
> 
> The only thing which is not mentioned in INSTALL docs is that you need
> mod_rewrite module for the Apache.
> 
> Other settings are really out of scope of the install documentation  because
> there are too many different webserver configurations out there. You
> cannot prepare to them all. It's up to system administrators to know what
> they are doing.
> 
> Regarding .htacess vs httpd.conf file I suppose the documentation talks
> about administration global settings. When settings need to be adjusted per
> application level .htaccess files are the only option to have a good out-of-the-
> box experience. I suggest to *not* try to merge them because it is too much
> work. A) the performance difference is negligible, b) they will be recreated
> on next "pear update" anyway, c) you would need to follow .htaccess
> changes as Horde versions progresses and apply them to your configuration.

Oh, and this is what I usually do for my Horde installations in httpd.conf file:

<Directory "/var/www/html/horde">
    AllowOverride FileInfo Limit
</Directory>

Everything else is usually inherited from default webroot.

-- 
   Vilius



More information about the horde mailing list