You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "@lbutlr" <kr...@kreme.com> on 2016/05/22 12:24:16 UTC

[users@httpd] Re: Cannot run CGI scripts in user directory

On Sat May 21 2016 21:05:45 Alessandro Re	<al...@ale-re.net> said:
> 
> <IfModule mod_userdir.c>

That seems odd.

All of my ifmodule tests had the form

<IfModule dir_module>

(without a .c or .so or anything)

-- 
W is for WINNIE embedded in ice
X is for XERXES devoured by mice


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Cannot run CGI scripts in user directory

Posted by Nick Kew <ni...@webthing.com>.
On Sun, 2016-05-22 at 13:27 +0100, Alessandro Re wrote:

> Looks odd, but it's not: IfModule is allowed to use the module
> identifier as well as the module file:

For any user/sysop, <IfModule> is almost always a Bad Idea.
It serves no useful purpose, and can make it harder to
diagnose problems (by suppressing helpful error messages
that tell you what's wrong if you need to load a module).

When you want it is if you're packaging httpd (or a product
that includes it) for a range of different users and purposes.

-- 
Nick Kew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Cannot run CGI scripts in user directory

Posted by Alessandro Re <al...@ale-re.net>.
On Sun, May 22, 2016 at 1:24 PM, @lbutlr <kr...@kreme.com> wrote:
> On Sat May 21 2016 21:05:45 Alessandro Re       <al...@ale-re.net> said:
>>
>> <IfModule mod_userdir.c>
>
> That seems odd.
>
> All of my ifmodule tests had the form
>
> <IfModule dir_module>
>
> (without a .c or .so or anything)

Looks odd, but it's not: IfModule is allowed to use the module
identifier as well as the module file:

<IfModule [!]module-file|module-identifier> ... </IfModule>

(from https://httpd.apache.org/docs/2.4/mod/core.html#ifmodule)

Cheers
~Ale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org