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 13:01:55 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=3&rev2=4

Comment:
Updated and added comments

  
  They are meant to be used as a starting point when one either wants to clean up an old instance
which segfaults or suffers from other recurring issues, or to achieve the minimum footprint
on a system with limited resources.
  
+ Configurations presume you have your Apache web server, including configuration, modules
and documents to serve, installed in /usr/httpd/. For common locations for these things in
many distributions look at this page http://wiki.apache.org/httpd/DistrosDefaultLayout. Configurations
also presume all possible modules are compiled as dynamically loadable as opposed to static.
+ 
- The following configuration is compatible with version 2.4 of the apache HTTP server with
the default MPM (event) compiled as a shared module. This configuration will need to be modified
slightly for windows installs.
+ The following configuration is compatible with version 2.4 of the Apache HTTP server with
the default MPM (event) compiled as a shared module. This configuration will need to be modified
slightly for windows installs.
  
  {{{
+ # Apache httpd v2.4 minimal configuration
- ServerRoot "/usr/pkg"
+ ServerRoot "/usr/httpd"
  
+ # Minimum modules needed
  LoadModule mpm_event_module lib/mod_mpm_event.so
  LoadModule mime_module lib/mod_mime.so
  LoadModule dir_module lib/mod_dir.so
  LoadModule authz_core_module lib/mod_authz_core.so
  LoadModule unixd_module lib/mod_unixd.so
  
- TypesConfig /usr/pkg/etc/httpd/mime.types
+ TypesConfig /usr/httpd/etc/mime.types
  
- PidFile /tmp/mini-httpd.pid
+ PidFile logs/httpd.pid
  
+ # Comment this out if running httpd as a non root user
  User nobody
  
+ # Port to Listen on
- Listen 0.0.0.0:8080
+ Listen *:8080
  
- DocumentRoot "/usr/local/htdocs"
+ DocumentRoot "/usr/httpd/htdocs"
  DirectoryIndex index.html
  ErrorLog syslog
  
+ # Never change this block
  <Directory />
    AllowOverride None
    Require all denied
  </Directory>
  
+ # Allow documents to be served from the DocumentRoot
- <Directory "/usr/local/htdocs">
+ <Directory "/usr/httpd/htdocs">
    Require all granted
  </Directory>
  }}}
  
- The following configuration is compatible with version 2.2 of the apache HTTP server.
+ The following configuration is compatible with version 2.2 of the Apache HTTP server.
  
  {{{
+ # Apache httpd v2.2 minimal configuration
- ServerRoot "/usr/pkg"
+ ServerRoot "/usr/httpd"
  
+ # Minimum modules needed
  LoadModule dir_module lib/httpd/mod_dir.so
  LoadModule mime_module lib/httpd/mod_mime.so
  LoadModule authz_host_module lib/httpd/mod_authz_host.so
  
- TypesConfig /usr/pkg/etc/httpd/mime.types
+ TypesConfig /usr/httpd/etc/mime.types
  
- PidFile /tmp/mini-httpd.pid
+ PidFile logs/httpd.pid
  
+ # Comment this out if running httpd as a non root user
  User nobody
  
+ # Port to Listen on
- Listen 0.0.0.0:8080
+ Listen *:8080
  
- DocumentRoot "/usr/local/htdocs"
+ DocumentRoot "/usr/httpd/htdocs"
  DirectoryIndex index.html
  ErrorLog syslog
  
+ # Never change this block
  <Directory />
    AllowOverride None
    Deny from all
  </Directory>
  
+ # Allow documents to be served from the DocumentRoot
- <Directory /usr/local/htdocs>
+ <Directory /usr/httpd/htdocs>
    Allow from all
  </Directory>
  }}}

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


Mime
View raw message