Re: [users@httpd] http.con configuration settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

cabral32@xxxxxxxxxxx wrote:
> Hi all,
> 
> Within httpd.con file I have seen these duplicate directives (#1 and #2):

Perhaps it might make more sense, as well as making the answer
self-evident, to provide a translation:

> <IfModule !mpm_winnt.c>
If I'm not running Windows ...

> <IfModule !mpm_netware.c>
And if I'm not running netware ...

Do this
> LockFile logs/accept.lock

End of inner "if" statement
> </IfModule>

End of outer "if" statement
> </IfModule>

The various "if" directives (IfModule, IfDefine, IfVersion) are in the
default configuration file so that the default file will work no matter
what environment you're in. However, since you know what environment
you're in, those If* blocks can all be removed - that is, get rid of the
ones that don't apply to you, and leave the ones that do, but without
the "If" qualifier.

I've seen a lot of people lately using <IfModule> blocks, for example,
as though they are somehow required to make stuff work. They aren't, and
they add an additional layer of troubleshooting.

- --
Rich Bowen
rbowen@xxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDbOVTXP03+sx4yJMRAiOlAJ4pBHaYnsVXGOecCyO+W7FEUICF/QCg0/HU
iV5D6BmqNts5Rc5XP91nhkM=
=jyD0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux