Pick a Free OS

User login

Navigation

Web server tutorial - Part 2

AddModule mod_php.c

AddModule mod_php3.c


ExtendedStatus: Controls

whether Apache will generate "full" status information (ExtendedStatus

On) or just basic information (ExtendedStatus Off) when the "server-status"

handler is called. The default is Off.

ExtendedStatus On


Section 2: 'Main' server configuration


The directives in this section set up the values used by the 'main' server,

which responds to any requests that aren't handled by a

definition. These values also provide defaults for any containers

you may define later in the file. All of these directives may appear inside

containers, in which case these default settings will be

overridden for the virtual host being defined.


If your ServerType directive (set earlier in the 'Global Environment' section)

is set to "inetd", the next few directives don't have any effect since

their settings are defined by the inetd configuration.

Skip ahead to the ServerAdmin directive.


Port: The port to which

the standalone server listens. For ports <1023, you will need httpd to be

run as root initially.

Port 80

If you wish httpd to run as a different user or group, you must run httpd as

root initially and it will switch.


User/Group: The name (or

number) of the user/group to run httpd as:

On SCO (ODT 3) use "User nouser" and "Group nogroup".

On HPUX you may not be able to use shared memory as anybody, and the suggested

workaround is to create a user www and use that user.


Note: Some kernels refuse

to setgid(Group) or semctl(IPC_SET) when the value of (unsigned)Group is above

60000; don't use Group nobody on these systems!

User nobody

Group nobody


ServerAdmin: Your address,

where problems with the server should be emailed. This address appears on some

server-generated pages, such as error documents.

ServerAdmin root@localhost


ServerName: Allows you to set a host name which is sent back to your server