Red Hat NETWORK PROXY SERVER 3.7 - Manual de usuario Pagina 46

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 101
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 45
36 Configuring Your Secure Web Server
outside the Apache source tree, without needing to tweak any compiler
and/or linkerflags. If you needmore information onAPXS, pleasesee the
Apachedocumentationathttp://www.apache.org/docs/dso.html.
Once you’ve compiled your module using APXS, put your module into
/usr/lib/apache. Then your module needs both a LoadModule line
and an AddModule line in the httpd.conf file, just as described previ-
ously for Apache’s own modules.
Afterthe LoadModule section, atthe endof theAdditional modules:
section in httpd.conf (after the mod php and mod perl modules), add
a line for the shared object file for your module like the following:
LoadModule foo_module lib/apache/mod_foo.so
Note that you’ll need to change the name of the module and the name of
your shared object file as appropriate.
At the end of the Additional Modules: section after the AddModule
section in httpd.conf (after the lines for the mod php and mod perl
modules), add a line for the source code file for your module like the fol-
lowing:
AddModule mod_foo.c
Note that you’ll need to change the name of the source code file as appro-
priate.
Once you’vecompleted the previoussteps, stop andstart yourweb server
as outlined in section 2.7 on page 40. If you’ve done everything correctly,
and your module is correctly coded, your web server should find your
module and load it in as it starts.
2.6 Using Virtual Hosts
You can use Apache’s virtual hosts capability to run different servers for
differentIP addresses, different host names or different ports on the same
Vista de pagina 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 100 101

Comentarios a estos manuales

Sin comentarios