You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Benoit GEORGELIN (web4all)" <be...@web4all.fr> on 2012/12/27 12:42:39 UTC

[users@httpd] apache2 htaccess

Hi folks, 

I just migrated from mod_php to mod_fcgid on apache 2.2.23 and now I have a problem on all .htaccess files who contains apache2 configuration like Options, Adhandler etc.. 
If the .htaccess is use to set different apache2 option, the process crash. No error log, nothing at all. 
Exemple here: http://dev.b2s-immo.com/ 

Content of .htaccess 


Options FollowSymLinks 
Now, if I put 

Options +FollowSymLinks 
It's working.. 

Same thing for all Options (FollowSymLinks, Indexes etc..) 

I was thinking that it was possible to specify "Options FollowSymLinks", without + . 
Why by default it is not a + if there is nothing? 

Thanks for your help regarding this misunderstanding. 

Server Version: Apache/2.2.23 
mod_fcgid/2.3.7 

Vhost Config 
<Directory /xxx> 
..... 
Options ExecCGI -Indexes Includes FollowSymLinks MultiViews 
.... 
</Directory 

Cordialement, 

Benoît Georgelin 
Web 4 all Hébergeur associatif 

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité 


Re: [users@httpd] apache2 htaccess

Posted by Igor Cicimov <ic...@gmail.com>.
On 28/12/2012 12:59 AM, "Benoit GEORGELIN (web4all)" <
benoit.georgelin@web4all.fr> wrote:
>
> The documentation is helpful thanks, but it was working good with mod_php
and mode prefork
> Now any syntax error in .htaccess crash the process because of apache2
mode worker
> Do you know how can I log theses syntax error if possible?
>

There is -t switch to check for syntax errors in config files,for eg:
# /usr/sbin/httpd -t
And is not crashing, better say it will not start if you have errors.

> Thanks for your help
>
> ________________________________
> De: "Igor Cicimov" <ic...@gmail.com>
> À: "users" <us...@httpd.apache.org>
> Envoyé: Jeudi 27 Décembre 2012 12:57:41
> Objet: Re: [users@httpd] apache2 htaccess
>
>
>
> On 27/12/2012 10:43 PM, "Benoit GEORGELIN (web4all)" <
benoit.georgelin@web4all.fr> wrote:
> >
> > Hi folks,
> >
> > I just migrated from mod_php  to mod_fcgid on apache 2.2.23 and now I
have a problem on all .htaccess files who contains apache2 configuration
like Options, Adhandler etc..
> > If the .htaccess is use to set different apache2 option, the process
crash. No error log, nothing at all.
> > Exemple here:  http://dev.b2s-immo.com/
> >
> > Content of .htaccess
> >
> > Options FollowSymLinks
> >
> > Now, if I put
> >
> > Options +FollowSymLinks
> >
> > It's working..
> >
> > Same thing for all Options (FollowSymLinks, Indexes etc..)
> >
> > I was thinking that it was possible to specify "Options
FollowSymLinks", without + .
> > Why by default it is not a + if there is nothing?
> >
> > Thanks for your help regarding this misunderstanding.
> >
> > Server Version: Apache/2.2.23
> > mod_fcgid/2.3.7
> >
> > Vhost Config
> > <Directory /xxx>
> > .....
> > Options ExecCGI -Indexes Includes FollowSymLinks MultiViews
> > ....
> > </Directory
> >
>
> If you read the Options directive in the apache docs page you will find
Warning section which explains why your above setting is not working.
>
> > Cordialement,
> >
> > Benoît Georgelin
> > Web4all  Hébergeur associatif
> >
> > Afin de contribuer au respect de l'environnement, merci de n'imprimer
ce mail qu'en cas de nécessité
> >
>
>

Re: [users@httpd] apache2 htaccess

Posted by "Benoit GEORGELIN (web4all)" <be...@web4all.fr>.
The documentation is helpful thanks, but it was working good with mod_php and mode prefork 
Now any syntax error in .htaccess crash the process because of apache2 mode worker 
Do you know how can I log theses syntax error if possible? 

Thanks for your help 

----- Mail original -----

De: "Igor Cicimov" <ic...@gmail.com> 
À: "users" <us...@httpd.apache.org> 
Envoyé: Jeudi 27 Décembre 2012 12:57:41 
Objet: Re: [users@httpd] apache2 htaccess 




On 27/12/2012 10:43 PM, "Benoit GEORGELIN (web4all)" < benoit.georgelin@web4all.fr > wrote: 
> 
> Hi folks, 
> 
> I just migrated from mod_php to mod_fcgid on apache 2.2.23 and now I have a problem on all .htaccess files who contains apache2 configuration like Options, Adhandler etc.. 
> If the .htaccess is use to set different apache2 option, the process crash. No error log, nothing at all. 
> Exemple here: http://dev.b2s-immo.com/ 
> 
> Content of .htaccess 
> 
> Options FollowSymLinks 
> 
> Now, if I put 
> 
> Options +FollowSymLinks 
> 
> It's working.. 
> 
> Same thing for all Options (FollowSymLinks, Indexes etc..) 
> 
> I was thinking that it was possible to specify "Options FollowSymLinks", without + . 
> Why by default it is not a + if there is nothing? 
> 
> Thanks for your help regarding this misunderstanding. 
> 
> Server Version: Apache/2.2.23 
> mod_fcgid/2.3.7 
> 
> Vhost Config 
> <Directory /xxx> 
> ..... 
> Options ExecCGI -Indexes Includes FollowSymLinks MultiViews 
> .... 
> </Directory 
> 

If you read the Options directive in the apache docs page you will find Warning section which explains why your above setting is not working. 

> Cordialement, 
> 
> Benoît Georgelin 
> Web4all Hébergeur associatif 
> 
> Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité 
> 


Re: [users@httpd] apache2 htaccess

Posted by Igor Cicimov <ic...@gmail.com>.
On 27/12/2012 10:43 PM, "Benoit GEORGELIN (web4all)" <
benoit.georgelin@web4all.fr> wrote:
>
> Hi folks,
>
> I just migrated from mod_php  to mod_fcgid on apache 2.2.23 and now I
have a problem on all .htaccess files who contains apache2 configuration
like Options, Adhandler etc..
> If the .htaccess is use to set different apache2 option, the process
crash. No error log, nothing at all.
> Exemple here:  http://dev.b2s-immo.com/
>
> Content of .htaccess
>
> Options FollowSymLinks
>
> Now, if I put
>
> Options +FollowSymLinks
>
> It's working..
>
> Same thing for all Options (FollowSymLinks, Indexes etc..)
>
> I was thinking that it was possible to specify "Options FollowSymLinks",
without + .
> Why by default it is not a + if there is nothing?
>
> Thanks for your help regarding this misunderstanding.
>
> Server Version: Apache/2.2.23
> mod_fcgid/2.3.7
>
> Vhost Config
> <Directory /xxx>
> .....
> Options ExecCGI -Indexes Includes FollowSymLinks MultiViews
> ....
> </Directory
>

If you read the Options directive in the apache docs page you will find
Warning section which explains why your above setting is not working.

> Cordialement,
>
> Benoît Georgelin
> Web4all  Hébergeur associatif
>
> Afin de contribuer au respect de l'environnement, merci de n'imprimer ce
mail qu'en cas de nécessité
>