[nag] Problem with Nag - seems not to be installed properly
Louis-Philippe Allard
lp.allard.1 at gmail.com
Fri May 9 00:52:15 UTC 2014
On Thu, May 8, 2014 at 4:28 PM, Erling Preben Hansen <erling at eph.dk> wrote:
> Citat af Ralf Lang <lang at b1-systems.de>:
>
> Wow Ralf that was FAST!! ;)
>>>
>>> Can you give me an example of the required config? By vhost snippet,
>>>
>> do
>
>> you mean a vhost declaration in httpd.conf?
>>>
>>> Thanks!
>>>
>>
>> I don't have access to my config files right now
>>
>> 1) you need mod_rewrite active
>>
>> shell> a2enmod rewrite
>>
>> 2) in
>> <directory /srv/www/hordewebroot> (or similar)
>> add/modify a line
>>
>> AllowOverride All
>>
>> Reload the apache server afterwards
>>
>> --
>> Ralf Lang
>> Linux Consultant / Developer
>> Tel.: +49-170-6381563
>> Mail: lang at b1-systems.de
>> B1 Systems GmbH
>> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.deGF: Ralph
>> Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
>>
>
> Hey
>
> When you use:
>
> AllowOverride All
>
> and .htaccess files
>
> You are forcing your apache server to look for .htaccess files in every
> subfolder.
> Because this has to be done every time on filesystem you wil slow down your
> server.
>
> If you enable mod_rewrite you can use your VirtualHost config to do the
> same.
>
> Like this:
>
> Alias /horde /var/www/horde
> <Directory /var/www/horde>
> AllowOverride none
> DirectoryIndex index.php
> RewriteEngine on
> RewriteBase /horde
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ rampage.php [QSA]
> </Directory>
>
> Where Alias is your /urlpath and/path/to/horde/files
>
> My experience is. That this have to be in top of your VirtualHost file.
> If you have some Alias with rewrites.
> That is in subfolders under /horde it is wise to put them a top the basic
> rewrite.
> It is ( as I understand it) because of the way apache is reading the
> configfiles.
> From bottom up and the order Aliases is implementet.
>
> /erling
> --
> nag mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: nag-unsubscribe at lists.horde.org
I feel "stupid" but the reason why it was not working was a typo in the
directory directive of httpd.conf...
I still had the path of the old server and not the new one.
Fixed !
Thanks for the help guys!!!
More information about the nag
mailing list