Differences between revisions 2 and 3
Revision 2 as of 2013-03-01 01:33:35
Size: 956
Editor: thumbs
Comment: Remove mod_rewrite
Revision 3 as of 2013-08-14 19:38:29
Size: 1767
Editor: SeanTimmins
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Here is a quick snippet of a minimal set of directive to launch an httpd instance. Here are two quick snippets of the minimal set of directives to launch an httpd instance for versions 2.4 and 2.2.
Line 3: Line 3:
It is 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 achieve the minimum footprint on a system limited on resources. 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.
Line 5: Line 5:
This is compatible with version 2.2 on the apache HTTP server. It could be adapted to work on 2.4 provided mod_access_compat is loaded. 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.

{{{
ServerRoot "/usr/pkg"

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

PidFile /tmp/mini-httpd.pid

User nobody

Listen 0.0.0.0:8080

DocumentRoot "/usr/local/htdocs"
DirectoryIndex index.html
ErrorLog syslog

<Directory />
  AllowOverride None
  Require all denied
</Directory>

<Directory "/usr/local/htdocs">
  Require all granted
</Directory>
}}}

The following configuration is compatible with version 2.2 of the apache HTTP server.

Here are two quick snippets of the minimal set of directives to launch an httpd instance for versions 2.4 and 2.2.

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.

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.

ServerRoot "/usr/pkg"

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

PidFile /tmp/mini-httpd.pid

User nobody

Listen 0.0.0.0:8080

DocumentRoot "/usr/local/htdocs"
DirectoryIndex index.html
ErrorLog syslog

<Directory />
  AllowOverride None
  Require all denied
</Directory>

<Directory "/usr/local/htdocs">
  Require all granted
</Directory>

The following configuration is compatible with version 2.2 of the apache HTTP server.

ServerRoot "/usr/pkg"

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

PidFile /tmp/mini-httpd.pid

User nobody

Listen 0.0.0.0:8080

DocumentRoot "/usr/local/htdocs"
DirectoryIndex index.html
ErrorLog syslog

<Directory />
  AllowOverride None
  Deny from all
</Directory>

<Directory /usr/local/htdocs>
  Allow from all
</Directory>

Minimal_Config (last edited 2013-08-14 19:38:29 by SeanTimmins)