Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 183

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 182
Chapter 15. Apache 183
15.3.20. ClearModuleList
The ClearModuleList directive is located immediately before the long list of AddModule direc-
tives. ClearModuleList erases the server’s built-in list of active modules. Then the list of AddMod-
ule directives re-creates the list, immediately after ClearModuleList.
15.3.21. AddModule
AddModule is the directive used to create a complete list of all available modules. You will use
the AddModule directive if you add your own module in as a DSO. For more information on how
AddModule is used for DSO support, see Section 15.4.
15.3.22. ExtendedStatus
The ExtendedStatus directives controls whether Apache generates basic (off) or detailed server
status information (on), when the server-status handler is called. Server-status is called using
Location tags. More information on calling server-status is included in Section 15.3.71.
15.3.23. Port
Normally, Port defines the port that your server is listening to. Your Web server, however, is listening
to more than one port by default, since the Listen directive is also being used. When Listen direc-
tives are in effect, your server listens at all of those ports. See the description of the Listen directive
for more information about Listen.
The Port command is also used to specify the port number used to construct a canonical name for
your server. See Section 15.3.39 for more information about the server’s canonical name.
15.3.24. User
The User directive sets the userid used by the server to answer requests. Users setting determines the
server’s access. Any files inaccessible to this user will also be inaccessible to your website’s visitors.
The default for User is apache.
The User should only have privileges so that it can access files which are supposed to be visible to
the outside world. The User is also the owner of any CGI processes spawned by the server. The User
should not be allowed to execute any code which is not intended to be in response to HTTP requests.
Note
For security reasons, Apache will refuse to run as User root. Using root as the User will create large
security holes for your Web server.
The parent httpd process first runs as root during normal operations but is then immediately handed
off to the apache user. The server must start as root because it needs to bind to a port below 1024
(the default port for secure Web communications is port 443; the default port for non-secure Web
communications is port 80). Ports below 1024 are reserved for system use, so they can not be used by
anyone but root. Once the server has attached itself to its port, however, it hands the process off to the
User before it accepts any connection requests.
Vedere la pagina 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 281 282

Commenti su questo manuale

Nessun commento