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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 197
198 Chapter 15. Apache
Note that you will need to change the name of the module and the name of your shared object file as
appropriate.
At the end of the AddModule list in httpd.conf, add a line for the source code file for your module
like the following:
AddModule mod_foo.c
Note that you will need to change the name of the source code file as appropriate.
Once you have completed the previous steps, stop and start your Web server as outlined in Section
15.2. If you have done everything correctly and your module is correctly coded, the Web server should
find your module and load it in as it starts.
15.4.1. The mod_ssl Security Module
The mod_ssl security portion of the Web server is provided as a Dynamic Shared Object (DSO).
This means that if you recompile the Apache Web server the EAPI extension patch from mod_ssl
must be applied. Follow the instructions for building mod_ssl into Apache included with the mod_ssl
documentation, but add the following flag:
./configure [userflags] --with-eapi-only
Then build and install Apache.
Note
Red Hat cannot support re-compiled versions of the Apache Web server. Installation of the shipped
version is supported, but if you re-compile Apache, you are on your own.
15.5. Using Virtual Hosts
You can use Apache’s virtual hosts capability to run different servers for different IP addresses, dif-
ferent host names, or different ports on the same server. If you are interested in using virtual hosts,
complete information is provided in the Apache documentation on your machine or on the Web at
http://httpd.apache.org/docs/vhosts/.
Note
You cannot use name-based virtual hosts with your Red Hat Linux Advanced Server, because the
SSL handshake occurs before the HTTP request which identifies the appropriate name-based virtual
host. If you want to use name-based virtual hosts, they will only work with your non-secure Web
server.
Virtual hosts are configured within the httpd.conf file, as described in Section 15.3. Please review
that section before you start to change the virtual hosts configuration on your machine.
Vedere la pagina 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 281 282

Commenti su questo manuale

Nessun commento