httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "Minimal_Config" by SeanTimmins
Date Thu, 26 May 2016 14:27:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The "Minimal_Config" page has been changed by SeanTimmins:
https://wiki.apache.org/httpd/Minimal_Config?action=diff&rev1=4&rev2=5

Comment:
mime.type to conf directory and use modules instead of lib. Also added access log

  
  {{{
  # Apache httpd v2.4 minimal configuration
+ # This can be reduced further if you remove the accees log and mod_log_config
  ServerRoot "/usr/httpd"
  
  # Minimum modules needed
- LoadModule mpm_event_module lib/mod_mpm_event.so
+ LoadModule mpm_event_module modules/mod_mpm_event.so
+ LoadModule log_config_module modules/mod_log_config.so
- LoadModule mime_module lib/mod_mime.so
+ LoadModule mime_module modules/mod_mime.so
- LoadModule dir_module lib/mod_dir.so
+ LoadModule dir_module modules/mod_dir.so
- LoadModule authz_core_module lib/mod_authz_core.so
+ LoadModule authz_core_module modules/mod_authz_core.so
- LoadModule unixd_module lib/mod_unixd.so
+ LoadModule unixd_module modules/mod_unixd.so
  
- TypesConfig /usr/httpd/etc/mime.types
+ TypesConfig conf/mime.types
  
  PidFile logs/httpd.pid
  
@@ -29, +31 @@

  # Port to Listen on
  Listen *:8080
  
+ # In a basic setup httpd can only serve files from its document root
  DocumentRoot "/usr/httpd/htdocs"
+ 
+ # Default file to serve
  DirectoryIndex index.html
- ErrorLog syslog
+ 
+ # Errors go to their own log
+ ErrorLog logs/error_log
+ 
+ # Access log
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
+ CustomLog logs/access_log common
  
  # Never change this block
  <Directory />
@@ -49, +60 @@

  
  {{{
  # Apache httpd v2.2 minimal configuration
+ # This can be reduced further if you remove the access log and mod_log_config
  ServerRoot "/usr/httpd"
  
  # Minimum modules needed
+ LoadModule log_config_module modules/mod_log_config.so
- LoadModule dir_module lib/httpd/mod_dir.so
+ LoadModule dir_module modules/mod_dir.so
- LoadModule mime_module lib/httpd/mod_mime.so
+ LoadModule mime_module modules/mod_mime.so
- LoadModule authz_host_module lib/httpd/mod_authz_host.so
+ LoadModule authz_host_module modules/mod_authz_host.so
  
- TypesConfig /usr/httpd/etc/mime.types
+ TypesConfig conf/mime.types
  
  PidFile logs/httpd.pid
  
@@ -66, +79 @@

  # Port to Listen on
  Listen *:8080
  
+ # In a basic setup httpd can only serve files from its document root
  DocumentRoot "/usr/httpd/htdocs"
+ 
+ # Default file to serve
  DirectoryIndex index.html
- ErrorLog syslog
+ 
+ # Errors go to their own log
+ ErrorLog logs/error_log
+ 
+ # Access log
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
+ CustomLog logs/access_log common
  
  # Never change this block
  <Directory />

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message