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 thumbs
Date Fri, 26 Aug 2016 14:31:14 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 thumbs:
https://wiki.apache.org/httpd/Minimal_Config?action=diff&rev1=5&rev2=6

Comment:
Added the windows section (2.4). Thanks Akee!

  
  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.
  
  {{{
  # Apache httpd v2.4 minimal configuration
@@ -104, +104 @@

  </Directory>
  }}}
  
+ The following configuration is compatible with version 2.4 of the Apache HTTP server on
Microsoft windows.
+ 
+ {{{
+ ServerRoot "C:/Program Files/Apache httpd 2.4"
+ 
+ # Minimum modules needed
+ LoadModule log_config_module modules/mod_log_config.so
+ LoadModule mime_module modules/mod_mime.so
+ LoadModule dir_module modules/mod_dir.so
+ LoadModule authz_core_module modules/mod_authz_core.so
+ 
+ TypesConfig conf/mime.types
+ 
+ PidFile logs/httpd.pid
+ 
+ # Port to Listen on
+ Listen *:8080
+ 
+ # In a basic setup httpd can only serve files from its document root
+ DocumentRoot "C:/Program Files/Apache httpd 2.4"
+ 
+ # Default file to serve
+ DirectoryIndex index.html
+ 
+ # 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 />
+   AllowOverride None
+   Require all denied
+ </Directory>
+ 
+ # Allow documents to be served from the DocumentRoot
+ <Directory "C:/Program Files/Apache httpd 2.4/htdocs">
+   Options Indexes FollowSymLinks
+   AllowOverride None
+   Require all granted
+ <Directory>
+ }}}
+ 

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


Mime
View raw message