* [gentoo-user] How can I disable some apache modules?
@ 2011-05-21 12:34 Jarry
2011-05-21 12:46 ` Stéphane Guedon
2011-05-21 12:46 ` Alan McKinnon
0 siblings, 2 replies; 5+ messages in thread
From: Jarry @ 2011-05-21 12:34 UTC (permalink / raw
To: gentoo-user
Hi,
I'd like to disable some apache modules (mod_autoindex and
mod_userdir). I checked /etc/apache2/httpd.conf, but it says
# GENTOO: Automatically defined based on APACHE2_MODULES
# USE_EXPAND variable.
# Do not change manually, it will be overwritten on upgrade.
OK, when this is not recommended way, I tried to set it up
in /etc/make.conf:
APACHE2_MODULES="${APACHE2_MODULES} -autoindex -userdir"
But when I try re-emerge apache, I get a lot of errors like this:
Invalid '-' operator in non-incremental variable 'APACHE2_MODULES':
'-autoindex'
So how can I control which apache modules are build and loaded?
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How can I disable some apache modules?
2011-05-21 12:34 [gentoo-user] How can I disable some apache modules? Jarry
@ 2011-05-21 12:46 ` Stéphane Guedon
2011-05-21 12:46 ` Alan McKinnon
1 sibling, 0 replies; 5+ messages in thread
From: Stéphane Guedon @ 2011-05-21 12:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1059 bytes --]
On Saturday 21 May 2011 14:34:51 Jarry wrote:
> Hi,
> I'd like to disable some apache modules (mod_autoindex and
> mod_userdir). I checked /etc/apache2/httpd.conf, but it says
>
> # GENTOO: Automatically defined based on APACHE2_MODULES
> # USE_EXPAND variable.
> # Do not change manually, it will be overwritten on upgrade.
>
> OK, when this is not recommended way, I tried to set it up
> in /etc/make.conf:
>
> APACHE2_MODULES="${APACHE2_MODULES} -autoindex -userdir"
>
> But when I try re-emerge apache, I get a lot of errors like this:
>
> Invalid '-' operator in non-incremental variable 'APACHE2_MODULES':
> '-autoindex'
>
> So how can I control which apache modules are build and loaded?
>
> Jarry
APACHE2_MODULES aren't incremental. All you put in is built, all you don't put
in isn't built ! That's it.
--
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How can I disable some apache modules?
2011-05-21 12:34 [gentoo-user] How can I disable some apache modules? Jarry
2011-05-21 12:46 ` Stéphane Guedon
@ 2011-05-21 12:46 ` Alan McKinnon
2011-05-21 13:18 ` Jarry
1 sibling, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2011-05-21 12:46 UTC (permalink / raw
To: gentoo-user
Apparently, though unproven, at 14:34 on Saturday 21 May 2011, Jarry did opine
thusly:
> Hi,
> I'd like to disable some apache modules (mod_autoindex and
> mod_userdir). I checked /etc/apache2/httpd.conf, but it says
>
> # GENTOO: Automatically defined based on APACHE2_MODULES
> # USE_EXPAND variable.
> # Do not change manually, it will be overwritten on upgrade.
>
> OK, when this is not recommended way, I tried to set it up
> in /etc/make.conf:
>
> APACHE2_MODULES="${APACHE2_MODULES} -autoindex -userdir"
>
> But when I try re-emerge apache, I get a lot of errors like this:
>
> Invalid '-' operator in non-incremental variable 'APACHE2_MODULES':
> '-autoindex'
>
> So how can I control which apache modules are build and loaded?
>
> Jarry
APACHE2_MODULES is non-incremental (the output message says so right there)
which means you can't take stuff out. You can only prevent it ever going in:
Remove the things you don't want from APACHE2_MODULES in /etc/make.conf
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How can I disable some apache modules?
2011-05-21 12:46 ` Alan McKinnon
@ 2011-05-21 13:18 ` Jarry
2011-05-21 13:44 ` Alan McKinnon
0 siblings, 1 reply; 5+ messages in thread
From: Jarry @ 2011-05-21 13:18 UTC (permalink / raw
To: gentoo-user
On 21. 5. 2011 14:46, Alan McKinnon wrote:
> APACHE2_MODULES is non-incremental (the output message says so right there)
> which means you can't take stuff out. You can only prevent it ever going in:
>
> Remove the things you don't want from APACHE2_MODULES in /etc/make.conf
But I did not have any APACHE2_MODULES in /etc/make.conf
so there is nothing I could remove, and I do not know what
I should put in it. I do not want to change anything else,
except for those two modules. Where can I find default value
of APACHE2_MODULES?
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How can I disable some apache modules?
2011-05-21 13:18 ` Jarry
@ 2011-05-21 13:44 ` Alan McKinnon
0 siblings, 0 replies; 5+ messages in thread
From: Alan McKinnon @ 2011-05-21 13:44 UTC (permalink / raw
To: gentoo-user
Apparently, though unproven, at 15:18 on Saturday 21 May 2011, Jarry did opine
thusly:
> On 21. 5. 2011 14:46, Alan McKinnon wrote:
> > APACHE2_MODULES is non-incremental (the output message says so right
> > there) which means you can't take stuff out. You can only prevent it
> > ever going in:
> >
> > Remove the things you don't want from APACHE2_MODULES in /etc/make.conf
>
> But I did not have any APACHE2_MODULES in /etc/make.conf
> so there is nothing I could remove, and I do not know what
> I should put in it. I do not want to change anything else,
> except for those two modules. Where can I find default value
> of APACHE2_MODULES?
emerge --info | grep APACHE2_MODULES
copy|paste|edit
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-21 13:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-21 12:34 [gentoo-user] How can I disable some apache modules? Jarry
2011-05-21 12:46 ` Stéphane Guedon
2011-05-21 12:46 ` Alan McKinnon
2011-05-21 13:18 ` Jarry
2011-05-21 13:44 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox