par cyrille » 16 Avr 2002 17:46
Voilà la bête :
<BR>
<BR>### Main Configuration Section
<BR>### You really shouldn't change these settings unless you're a guru
<BR>###
<BR>NameVirtualHost 172.16.0.7
<BR>ServerName nunuxserver
<BR>Options ExecCgi
<BR>ServerType standalone
<BR>ServerRoot /etc/httpd
<BR>#ServerName localhost
<BR>#LockFile /etc/httpd/httpd.lock
<BR>PidFile /var/run/httpd.pid
<BR>ScoreBoardFile /etc/httpd/httpd.scoreboard
<BR>ErrorLog logs/error_log
<BR>LogLevel warn
<BR>ResourceConfig /dev/null
<BR>AccessConfig /dev/null
<BR>
<BR>
<BR>### Dynamic Shared Object (DSO) Support
<BR>###
<BR>###
<BR>#LoadModule mmap_static_module modules/mod_mmap_static.so
<BR>LoadModule env_module modules/mod_env.so
<BR>LoadModule config_log_module modules/mod_log_config.so
<BR>LoadModule agent_log_module modules/mod_log_agent.so
<BR>LoadModule referer_log_module modules/mod_log_referer.so
<BR>#LoadModule mime_magic_module modules/mod_mime_magic.so
<BR>LoadModule mime_module modules/mod_mime.so
<BR>LoadModule negotiation_module modules/mod_negotiation.so
<BR>LoadModule status_module modules/mod_status.so
<BR>LoadModule info_module modules/mod_info.so
<BR>LoadModule includes_module modules/mod_include.so
<BR>LoadModule autoindex_module modules/mod_autoindex.so
<BR>LoadModule dir_module modules/mod_dir.so
<BR>LoadModule cgi_module modules/mod_cgi.so
<BR>LoadModule asis_module modules/mod_asis.so
<BR>LoadModule imap_module modules/mod_imap.so
<BR>LoadModule action_module modules/mod_actions.so
<BR>#LoadModule speling_module modules/mod_speling.so
<BR>LoadModule userdir_module modules/mod_userdir.so
<BR>LoadModule proxy_module modules/libproxy.so
<BR>LoadModule alias_module modules/mod_alias.so
<BR>LoadModule rewrite_module modules/mod_rewrite.so
<BR>LoadModule access_module modules/mod_access.so
<BR>LoadModule auth_module modules/mod_auth.so
<BR>LoadModule anon_auth_module modules/mod_auth_anon.so
<BR>#LoadModule dbm_auth_module modules/mod_auth_dbm.so
<BR>#LoadModule db_auth_module modules/mod_auth_db.so
<BR>LoadModule digest_module modules/mod_digest.so
<BR>#LoadModule cern_meta_module modules/mod_cern_meta.so
<BR>LoadModule expires_module modules/mod_expires.so
<BR>LoadModule headers_module modules/mod_headers.so
<BR>LoadModule usertrack_module modules/mod_usertrack.so
<BR>#LoadModule example_module modules/mod_example.so
<BR>#LoadModule unique_id_module modules/mod_unique_id.so
<BR>LoadModule setenvif_module modules/mod_setenvif.so
<BR><IfDefine HAVE_PHP4>
<BR>LoadModule php4_module extramodules/libphp4.so
<BR></IfDefine>
<BR><IfDefine HAVE_SSL>
<BR>LoadModule ssl_module extramodules/libssl.so
<BR></IfDefine>
<BR>LoadModule vhost_alias_module modules/mod_vhost_alias.so
<BR>
<BR># Reconstruction of the complete module list from all available modules
<BR># (static and shared ones) to achieve correct module execution order.
<BR># [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
<BR>ClearModuleList
<BR>#AddModule mod_mmap_static.c
<BR>AddModule mod_env.c
<BR>AddModule mod_log_config.c
<BR>AddModule mod_log_agent.c
<BR>AddModule mod_log_referer.c
<BR>#AddModule mod_mime_magic.c
<BR>AddModule mod_mime.c
<BR>AddModule mod_negotiation.c
<BR>AddModule mod_status.c
<BR>AddModule mod_info.c
<BR>AddModule mod_include.c
<BR>AddModule mod_autoindex.c
<BR>AddModule mod_dir.c
<BR>AddModule mod_cgi.c
<BR>AddModule mod_asis.c
<BR>AddModule mod_imap.c
<BR>AddModule mod_actions.c
<BR>#AddModule mod_speling.c
<BR>AddModule mod_userdir.c
<BR>AddModule mod_proxy.c
<BR>AddModule mod_alias.c
<BR>AddModule mod_rewrite.c
<BR>AddModule mod_access.c
<BR>AddModule mod_auth.c
<BR>AddModule mod_auth_anon.c
<BR>#AddModule mod_auth_dbm.c
<BR>#AddModule mod_auth_db.c
<BR>AddModule mod_digest.c
<BR>#AddModule mod_cern_meta.c
<BR>AddModule mod_expires.c
<BR>AddModule mod_headers.c
<BR>AddModule mod_usertrack.c
<BR>#AddModule mod_example.c
<BR>#AddModule mod_unique_id.c
<BR>AddModule mod_so.c
<BR>AddModule mod_setenvif.c
<BR><IfDefine HAVE_PHP4>
<BR>AddModule mod_php4.c
<BR></IfDefine>
<BR><IfDefine HAVE_SSL>
<BR>AddModule mod_ssl.c
<BR></IfDefine>
<BR>AddModule mod_vhost_alias.c
<BR>
<BR>###
<BR>### Global Configuration
<BR>###
<BR># We now support multiple apache configurations on the same server. In
<BR># common.conf, we put all directives that are common to all implementations
<BR># (httpd, httpd-perl, etc.)
<BR>Include conf/commonhttpd.conf
<BR>
<BR>
<BR>###
<BR>### IP Address/Port and Proxied configuration section
<BR>###
<BR># The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you
<BR># are using a proxy or accelerator, like the Apache-SGI or khttpd, so that
<BR># the fast web server serves static content while Apache handles the
<BR># cgi or php files
<BR>
<BR>#BindAddress *
<BR><IfDefine !APACHEPROXIED>
<BR> Port 80
<BR> Listen 80
<BR></IfDefine>
<BR><IfDefine APACHEPROXIED>
<BR> Port 8080
<BR> Listen 8080
<BR></IfDefine>
<BR>
<BR># Likewise, we can set apache as the server by default and send perl
<BR># requests via ProxyPass to apache-mod_perl. It increases performance
<BR># since the perl interpreter is only used for perl and the standard apache
<BR># does all the html and image files, with a smaller footprint.
<BR>#
<BR># If you install apache and apache-mod_perl, this is the default config.
<BR># If you don't want two web servers to use perl, uninstall apache, and
<BR># apache-mod_perl will not be proxied.
<BR>
<BR><IfDefine PERLPROXIED>
<BR> RewriteEngine on
<BR> RewriteRule ^proxy:.* - [F]
<BR> RewriteRule ^(.*/perl/.*)$ <!-- BBCode auto-link start --><a href="http://%{HTTP_HOST}:8200$1" target="_blank">http://%{HTTP_HOST}:8200$1</a><!-- BBCode auto-link end --> [P]
<BR> RewriteRule ^(.*/cgi-perl/.*)$ <!-- BBCode auto-link start --><a href="http://%{HTTP_HOST}:8200$1" target="_blank">http://%{HTTP_HOST}:8200$1</a><!-- BBCode auto-link end --> [P]
<BR></IfDefine>
<BR>
<BR>###
<BR>### Log configuration Section
<BR>###
<BR>
<BR>#Single logfile with access, agent and referer information
<BR>#This is the default, if vlogs are not defined for the main server
<BR>CustomLog logs/access_log combined env=!VLOG
<BR>#If VLOG is defined in conf/vhosts/Vhost.conf, we use this entry
<BR>CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG
<BR>
<BR>
<BR>###
<BR>### Virtual Hosts
<BR>###
<BR># We include different templates for Virtual Hosting. Have a look in the
<BR># vhosts directory and modify to suit your needs.
<BR>#Include conf/vhosts/Vhosts.conf
<BR>#Include conf/vhosts/DynamicVhosts.conf
<BR>#Include conf/vhosts/VirtualHomePages.conf
<BR>
<BR>
<BR>###
<BR>### Performance settings Section
<BR>###
<BR>#
<BR># Timeout: The number of seconds before receives and sends time out.
<BR>#
<BR>Timeout 300
<BR>
<BR>#
<BR># KeepAlive: Whether or not to allow persistent connections (more than
<BR># one request per connection). Set to "Off" to deactivate.
<BR>#
<BR>KeepAlive On
<BR>
<BR>#
<BR># MaxKeepAliveRequests: The maximum number of requests to allow
<BR># during a persistent connection. Set to 0 to allow an unlimited amount.
<BR># We recommend you leave this number high, for maximum performance.
<BR>#
<BR>MaxKeepAliveRequests 100
<BR>
<BR>#
<BR># KeepAliveTimeout: Number of seconds to wait for the next request from the
<BR># same client on the same connection.
<BR>#
<BR>KeepAliveTimeout 15
<BR>
<BR>#
<BR># Server-pool size regulation. Rather than making you guess how many
<BR># server processes you need, Apache dynamically adapts to the load it
<BR># sees --- that is, it tries to maintain enough server processes to
<BR># handle the current load, plus a few spare servers to handle transient
<BR># load spikes (e.g., multiple simultaneous requests from a single
<BR># Netscape browser).
<BR>#
<BR># It does this by periodically checking how many servers are waiting
<BR># for a request. If there are fewer than MinSpareServers, it creates
<BR># a new spare. If there are more than MaxSpareServers, some of the
<BR># spares die off. The default values are probably OK for most sites.
<BR>#
<BR>MinSpareServers 4
<BR>MaxSpareServers 10
<BR>
<BR>#
<BR># Number of servers to start initially --- should be a reasonable ballpark
<BR># figure.
<BR>#
<BR>StartServers 4
<BR>
<BR>#
<BR># Limit on total number of servers running, i.e., limit on the number
<BR># of clients who can simultaneously connect --- if this limit is ever
<BR># reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
<BR># It is intended mainly as a brake to keep a runaway server from taking
<BR># the system with it as it spirals down...
<BR>#
<BR>MaxClients 150
<BR>
<BR>#
<BR># MaxRequestsPerChild: the number of requests each child process is
<BR># allowed to process before the child dies. The child will exit so
<BR># as to avoid problems after prolonged use when Apache (and maybe the
<BR># libraries it uses) leak memory or other resources. On most systems, this
<BR># isn't really needed, but a few (such as Solaris) do have notable leaks
<BR># in the libraries. For these platforms, set to something like 10000
<BR># or so; a setting of 0 means unlimited.
<BR>#
<BR># NOTE: This value does not include keepalive requests after the initial
<BR># request per connection. For example, if a child process handles
<BR># an initial request and 10 subsequent "keptalive" requests, it
<BR># would only count as 1 request towards this limit.
<BR>#
<BR>MaxRequestsPerChild 500
<BR>
<BR>Include conf/addon-modules/php.conf
<BR>Include conf/ssl/mod_ssl.conf
<BR>Include conf/ssl/ssl.default-vhost.conf
<BR>
<BR>#NameVirtualHost 172.16.0.7
<BR>
<BR><VirtualHost 172.16.0.7:12345>
<BR> ServerAdmin cyrille
<BR> ServerName nunuxsecu
<BR> DocumentRoot /home/mespages
<BR> <Directory /home/mespages>
<BR> Options Indexes Includes FollowSymLinks
<BR> </Directory>
<BR> DirectoryIndex index.htm index.html index.php index.shtml
<BR></VirtualHost>
<BR>
<BR>
<BR>
<BR><font size=-2></font><BR><BR><font size=-2></font>
"La vitesse de la lumière étant supérieure à celle du son, il n'est donc pas anormal que beaucoup de gens paraissent brillants jusqu'à ce qu'ils ouvrent leur $%#&! "