All pastes #341084 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-05 07:56 UTC
rendered paste body
ServerRoot "/usr/local"

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
LockFile /var/log/accept.lock
</IfModule>
</IfModule>

<IfModule !mpm_netware.c>
<IfModule !perchild.c>
ScoreBoardFile /var/run/apache_runtime_status
</IfModule>
</IfModule>

<IfModule !mpm_netware.c>
PidFile /var/run/httpd.pid
</IfModule>

MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients         150
MaxRequestsPerChild  0
</IfModule>

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
</IfModule>

<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0
</IfModule>

<IfModule beos.c>
StartThreads               10
MaxClients                 50
MaxRequestsPerThread       10000
</IfModule>

<IfModule mpm_netware.c>
ThreadStackSize      65536
StartThreads           250
MinSpareThreads         25
MaxSpareThreads        250
MaxThreads            1000
MaxRequestsPerChild      0
MaxMemFree             100
</IfModule>

<IfModule mpmt_os2.c>
StartServers           2
MinSpareThreads        5
MaxSpareThreads       10
MaxRequestsPerChild    0
</IfModule>

Listen 80

LoadModule access_module libexec/apache2/mod_access.so
LoadModule auth_module libexec/apache2/mod_auth.so
LoadModule auth_anon_module libexec/apache2/mod_auth_anon.so
LoadModule auth_dbm_module libexec/apache2/mod_auth_dbm.so
LoadModule charset_lite_module libexec/apache2/mod_charset_lite.so
LoadModule include_module libexec/apache2/mod_include.so
LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule log_config_module libexec/apache2/mod_log_config.so
LoadModule logio_module libexec/apache2/mod_logio.so
LoadModule env_module libexec/apache2/mod_env.so
LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache2/mod_cern_meta.so
LoadModule expires_module libexec/apache2/mod_expires.so
LoadModule headers_module libexec/apache2/mod_headers.so
LoadModule usertrack_module libexec/apache2/mod_usertrack.so
LoadModule unique_id_module libexec/apache2/mod_unique_id.so
LoadModule setenvif_module libexec/apache2/mod_setenvif.so

<IfDefine SSL>
LoadModule ssl_module libexec/apache2/mod_ssl.so
</IfDefine>

LoadModule mime_module libexec/apache2/mod_mime.so
LoadModule status_module libexec/apache2/mod_status.so
LoadModule autoindex_module libexec/apache2/mod_autoindex.so
LoadModule asis_module libexec/apache2/mod_asis.so
LoadModule info_module libexec/apache2/mod_info.so
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache2/mod_negotiation.so
LoadModule dir_module libexec/apache2/mod_dir.so
LoadModule imap_module libexec/apache2/mod_imap.so
LoadModule actions_module libexec/apache2/mod_actions.so
LoadModule speling_module libexec/apache2/mod_speling.so
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule proxy_module libexec/apache2/mod_proxy.so

AddType application/x-httpd-php .php
AddHandler x-httpd-php .php

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>

User www
Group www
</IfModule>
</IfModule>

ServerAdmin webmaster@vinzland.net

ServerName revs.vinzland.net:80

UseCanonicalName On

DocumentRoot /usr/local/www/data-dist

<Directory />
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

DirectoryIndex index.html index.html.var
AccessFileName .htaccess

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

TypesConfig etc/apache2/mime.types
DefaultType text/plain

<IfModule mod_mime_magic.c>
    MIMEMagicFile etc/apache2/magic
</IfModule>

HostnameLookups Off

ErrorLog /var/log/httpd-error.log
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd-access.log combined
ServerTokens Full
ServerSignature On

<VirtualHost _default_:*>
    DocumentRoot /usr/local/www/data-dist

    <Directory />
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>

</VirtualHost>

NameVirtualHost 192.168.1.3

<VirtualHost 192.168.1.3>
    ServerAdmin vinz@vinzland.net
    DocumentRoot /usr/local/www/galerie.vinzland.net/data
    ServerName galerie.vinzland.net:80
    ErrorLog /var/log/galerie.vinzland.net-error_log
    CustomLog /var/log/galerie.vinzland.net-access_log common
    LogLevel debug
    DirectoryIndex index.html
    AccessFileName .htaccess
    TypesConfig etc/apache2/mime.types
    DefaultType text/plain
    HostNameLookups Off
    ServerSignature On
    ScriptAlias /cgi-bin/ /usr/local/www/galerie.vinzland.net/cgi-bin/
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    Action x-httpd-php /cgi-bin/fast-cgi
    Action php-fastcgi /cgi-bin/fast-cgi

    <IfModule mod_mime_magic.c>
        MIMEMagicFile etc/apache2/magic
    </IfModule>

    <Directory /usr/local/www/galerie.vinzland.net/data>
        Options Indexes ExecCGI Includes
        AllowOverride None
        Order Allow,Deny
        Allow from all
    </Directory>

    <Directory /usr/local/www/galerie.vinzland.net/cgi-bin>
        AllowOverride None
        Options +ExecCGI
        Order Allow,Deny
        Allow from all
    </Directory>

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


</VirtualHost>

<VirtualHost 192.168.1.3>
    ServerName revs.vinzland.net:80
    ProxyPass / http://192.168.1.4/
    ProxyPassReverse / http://192.168.1.4/
    ProxyPreserveHost On
</VirtualHost>