User directive

This directive is only applicable if you are using a ServerType of standalone.


The User directive sets which user id the server will answer requests as.

In order to use this directive, the standalone server must be initially run as root.

This directive does not mean that the original daemon process will run as the given user, it means that the children which answer requests run as the given user.


User id

id is one of:

Only one User directive is allowed in the configuration file.


If you do not specify a User, httpd assumes:

User #-1


User nobody

This will cause the server to run as user nobody.

User #-2

This will cause the server to run as user number -2.

Return to Server Configuration File Overview