All pastes #244385 Raw Edit

Something

public text v1 · immutable
#244385 ·published 2006-11-09 19:01 UTC
rendered paste body
ServerRoot "/usr/local/apache2"

Listen 80

LoadModule php5_module        modules/libphp5.so


<IfModule !mpm_netware_module>
User apache
Group apache
</IfModule>

ServerAdmin admin@localhost

ServerName server.localhost

DocumentRoot "/usr/local/apache2/htdocs"

AddType application/x-httpd-php .php .phtml .html .htm
AddType application/x-httpd-php-source .phps

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

<Directory "/usr/local/apache2/htdocs">
    Options Indexes FollowSymLinks

    AllowOverride None

    Order allow,deny
    Allow from all

</Directory>

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>

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

ErrorLog logs/main/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>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog logs/main/access_log combined
</IfModule>

<IfModule alias_module>
     Alias /webmail /usr/share/webmail
     <Directory "/usr/share/webmail">
         Order allow,deny
         Allow from all
     </Directory>
</IfModule>

<IfModule cgid_module>
</IfModule>


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
</IfModule>

Alias /error.php "/usr/local/apache2/htdocs/error.php"

ErrorDocument 500 "/error.php"
ErrorDocument 404 "/error.php"
ErrorDocument 403 "/error.php"
ErrorDocument 401 "/error.php"
Include conf/extra/httpd-autoindex.conf

Include conf/extra/httpd-userdir.conf

Include conf/extra/httpd-vhosts.conf

Include conf/extra/httpd-dav.conf

Include conf/extra/httpd-default.conf

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