All pastes #184743 Raw Edit

Unnamed

public text v1 · immutable
#184743 ·published 2006-09-28 06:47 UTC
rendered paste body
/etc/apache2/httpd.conf:
==========================================================
ServerRoot "/usr/local/apache2"
Listen 80
LoadModule php5_module        modules/libphp5.so

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

ServerAdmin info@kakumeinet.de
DocumentRoot "/var/www"

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

<Directory "/var/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

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

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

ErrorLog /var/log/apache2/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 /var/log/apache2/access.log common
</IfModule>

<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/share/cgi-bin/"
</IfModule>

<IfModule cgid_module>
    #
</IfModule>

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

DefaultType text/plain
<IfModule mime_module>
    TypesConfig /etc/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>

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

## CONFIXX

Include /etc/confixx_mhost.conf

# Dieser Eintrag sollte unbedingt am Ende der Datei bleiben

## /CONFIXX
==========================================================

/etc/confixx_mhost.conf
==========================================================
Listen 443
php_admin_value open_basedir /usr/share/htdocs
php_admin_value include_path .

<Directory "/var/www/confixx/html">
  AllowOverride all

  <IfModule mod_access.c>
    Order allow,deny
    Allow from all
  </IfModule>

  <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^reseller/res[0-9]+/(.*)$ reseller/$1 [L]
    RewriteRule ^user/[a-zA-Z][-a-zA-Z0-9_]{0,4}[0-9]+/(.*)$ user/$1 [L]
    RewriteRule ^ftplogin/[a-zA-Z][-a-zA-Z0-9_]{0,4}[0-9]+/(.*)$ ftplogin/$1 [L]
    RewriteRule ^ftplogin/[a-zA-Z][-a-zA-Z0-9_]{0,4}[0-9]+f[0-9]+/(.*)$ ftplogin/$1 [L]
    RewriteRule ^poplogin/[a-zA-Z][-a-zA-Z0-9_]{0,4}[0-9]+p[0-9]+/(.*)$ poplogin/$1 [L]
  </IfModule>

  AddDefaultCharset off
  php_admin_flag engine on

</Directory>


NameVirtualHost 88.80.200.79:80

<VirtualHost 88.80.200.79:80>
  ServerName 88.80.200.79
  DocumentRoot /var/www/confixx/html/gesperrt
  Options FollowSymLinks
  php_admin_flag safe_mode Off
  php_admin_flag file_uploads On
  php_admin_flag track_vars On
  php_admin_flag magic_quotes_runtime Off
  php_admin_flag magic_quotes_gpc Off
  php_admin_flag allow_url_fopen Off

  php_admin_value include_path ".:/var/www/confixx/html/include:/var/www/confixx/html:/var/www/confixx/html/PEAR"
  php_admin_value default_charset none
  php_admin_value open_basedir /var/www/confixx

  <IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.htm index.shtml index.cgi
  </IfModule>

</VirtualHost>

<VirtualHost 88.80.200.79:80>
  ServerName kakumeinet.de
  #User confixx
  #Group confixx
  DocumentRoot /var/www/confixx/html
  Options FollowSymLinks

  php_admin_flag safe_mode Off
  php_admin_flag file_uploads On
  php_admin_flag track_vars On
  php_admin_flag magic_quotes_runtime Off
  php_admin_flag magic_quotes_gpc Off
  php_admin_value upload_tmp_dir /var/www/confixx/tmp
  php_admin_value include_path ".:/var/www/confixx/html/include:/var/www/confixx/html:/var/www/confixx/html/PEAR"
  php_admin_value default_charset none
  php_admin_value open_basedir /var/www/confixx
  php_admin_flag allow_url_fopen Off

  php_admin_value session.cookie_path /
  php_admin_value session.auto_start 0
  php_admin_value session.gc_maxlifetime 1800
  php_admin_value session.use_cookies 1
  php_admin_value session.cookie_lifetime 0
  php_admin_value session.cookie_secure Off
  php_admin_value session.use_trans_sid 0

  ScriptAlias /cgi-bin/ /var/www/confixx/html/cgi-bin/

  <IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php
  </IfModule>

  CustomLog /var/log/apache2/kakumeinet.de_access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
  ErrorLog /var/log/apache2/kakumeinet.de_error.log
</VirtualHost>

NameVirtualHost 88.80.200.79:443
<VirtualHost 88.80.200.79:443>
  ServerName 88.80.200.79
  DocumentRoot /var/www/confixx/html/gesperrt

  Options FollowSymLinks
  php_admin_flag safe_mode Off
  php_admin_flag file_uploads On
  php_admin_flag track_vars On
  php_admin_flag magic_quotes_runtime Off
  php_admin_flag magic_quotes_gpc Off
  php_admin_flag allow_url_fopen Off

  php_admin_value include_path ".:/var/www/confixx/html/include:/var/www/confixx/html:/var/www/confixx/html/PEAR"
  php_admin_value default_charset none
  php_admin_value open_basedir /var/www/confixx

  <IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.htm index.shtml index.cgi
  </IfModule>

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLCertificateKeyFile /etc/ssl.key/kakumeinet.de.key
    SSLCertificateFile /etc/ssl.crt/kakumeinet.de.crt

    SetEnvIf User-Agent ".*MSIE.*" \
      nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0

    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
      SSLOptions +StdEnvVars
    </Files>

    <Directory "/var/www/confixx/html/cgi-bin">
      SSLOptions +StdEnvVars
    </Directory>

  </IfModule>
</VirtualHost>

<VirtualHost 88.80.200.79:443>
  ServerName kakumeinet.de

  #User confixx
  #Group confixx
  DocumentRoot /var/www/confixx/html
  Options FollowSymLinks

  php_admin_flag safe_mode Off
  php_admin_flag file_uploads On
  php_admin_flag track_vars On
  php_admin_flag magic_quotes_runtime Off
  php_admin_flag magic_quotes_gpc Off
  php_admin_value upload_tmp_dir /var/www/confixx/tmp
  php_admin_value include_path ".:/var/www/confixx/html/include:/var/www/confixx/html:/var/www/confixx/html/PEAR"
  php_admin_value default_charset none
  php_admin_value open_basedir /var/www/confixx
  php_admin_flag allow_url_fopen Off

  php_admin_value session.cookie_path /
  php_admin_value session.auto_start 0
  php_admin_value session.gc_maxlifetime 1800
  php_admin_value session.use_cookies 1
  php_admin_value session.cookie_lifetime 0
  php_admin_value session.cookie_secure Off
  php_admin_value session.use_trans_sid 0

  ScriptAlias /cgi-bin/ /var/www/confixx/html/cgi-bin/

  <IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php
  </IfModule>

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLCertificateKeyFile /etc/ssl.key/kakumeinet.de.key
    SSLCertificateFile /etc/ssl.crt/kakumeinet.de.crt

    SetEnvIf User-Agent ".*MSIE.*" \
      nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
      SSLOptions +StdEnvVars
    </Files>

    <Directory "/var/www/confixx/html/cgi-bin">
      SSLOptions +StdEnvVars
    </Directory>

  </IfModule>

  CustomLog /var/log/apache2/kakumeinet.de_access.ssl.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
  ErrorLog /var/log/apache2/kakumeinet.de_error.ssl.log

</VirtualHost>

Include /etc/apache2/confixx_vhost.conf
# ^- Dieser Eintrag sollte unbedingt am Ende der Datei bleiben
## /CONFIXX
==========================================================

/etc/apache2/confixx_vhost.conf
==========================================================
empty
==========================================================