Apache

Aus Howtos und Gedankenstuetzen

Wechseln zu: Navigation, Suche

ThreadsPerChild 250

MaxRequestsPerChild  0

ServerRoot "/usr/local/apache"

Listen 80

Include conf/extra/loadmodule.conf

# 'Main' server configuration

ServerAdmin wiechert@chaosfield.org
ServerName chaosfield.org:80
DocumentRoot "/usr/local/apache/www/htdocs"

<Directory />
   Options FollowSymLinks
   AllowOverride None
   Order deny,allow
   Deny from all
</Directory>

<Directory "/usr/local/apache/www/htdocs">

   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Order allow,deny
   Allow from all
</Directory>

<IfModule dir_module>
   DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>

<FilesMatch "^\.ht">
   Order allow,deny
   Deny from all
</FilesMatch>

ErrorLog logs/error.log

LogLevel warn

<IfModule log_config_module>

   LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
   LogFormat "%h %l %u %t \"%r\" %>s %b" common

   <IfModule logio_module>
     # You need to enable mod_logio.c to use %I and %O
     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
   </IfModule>

   CustomLog logs/access.log common
</IfModule>

<IfModule alias_module>
   # Alias /webpath /full/filesystem/path
   ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
</IfModule>

<Directory "/usr/local/apache/cgi-bin">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
   TypesConfig conf/mime.types
   AddType application/x-compress .Z
   AddType application/x-gzip .gz .tgz
   AddHandler cgi-script .cgi
   AddType text/html .shtml
   AddOutputFilter INCLUDES .shtml
</IfModule>

EnableMMAP off
EnableSendfile off

Include conf/extra/httpd-xampp.conf
Include conf/extra/httpd-multilang-errordoc.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-userdir.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-manual.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

#Eigene Conf Dateien
Include conf/extra/vhosts.conf

vhosts.conf

#virtuelle Hosts
NameVirtualHost 192.168.0.1
<VirtualHost main>
ServerName server
ServerAlias server*
ServerAdmin root@server
DocumentRoot "/usr/local/apache/www/htdocs"
</VirtualHost>
<VirtualHost wiki>
ServerName wiki
ServerAlias wiki*
ServerAdmin root@wiki.doamin.xyz
DocumentRoot "/usr/local/apache/www/wiki"
</VirtualHost>
<VirtualHost board>
ServerName board
ServerAlias board*
ServerAdmin root@board.doamin.xyz
DocumentRoot "/usr/local/apache/www/board"
</VirtualHost>