Knowledge Base Nr: 00103 apache_erstkonfiguration.txt - http://www.swe-kaiser.de

Downloads:

apache1 quick konfiguration nach der erstinstallation

  
//es langt die folgenden items in http.conf umzusetzen:
ServerAdmin ankaiser@gmx.de
ServerName krserver
DocumentRoot "E:/projects/internet/my_home"
CustomLog logs/access.log common
Alias /kaiserreich/music/ "P:/musik/"
ScriptAlias /kaiserreich/cgi-bin/ "E:/projects/internet/my_home/kaiserreich/cgi-bin/"
<Directory "E:/projects/internet/my_home/kaiserreich/cgi-bin/">
Options ExecCGI Includes
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php3
Action application/x-httpd-php "/php/php.exe"

//für die proxy-funktionalität folgende zeilen wieder einkommentieren:
AddModule mod_so.c mod_mime.c mod_access.c mod_auth.c mod_negotiation.c
LoadModule proxy_module modules/ApacheModuleProxy.dll
ProxyRequests On

//SSI support:
AddModule mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_userdir.c
AddType text/html .shtml
AddHandler server-parsed .shtml


Die Änderungen nochmal in Kurzform:
===================================

AddModule mod_so.c mod_mime.c mod_access.c mod_auth.c mod_negotiation.c
AddModule mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_userdir.c
AddModule mod_alias.c mod_env.c mod_log_config.c mod_asis.c mod_imap.c
AddModule mod_actions.c mod_setenvif.c mod_isapi.c

LoadModule proxy_module modules/mod_proxy.so

DocumentRoot "E:/projects/internet/my_home"

<Directory "E:/projects/internet/my_home">

Options Indexes FollowSymLinks MultiViews Includes

#CustomLog logs/access.log common

Alias /kaiserreich/music/ "P:/musik/"

ScriptAlias /kaiserreich/cgi-bin/ "E:/projects/internet/my_home/kaiserreich/cgi-bin/"

<Directory "E:/projects/internet/my_home/kaiserreich/cgi-bin/">
Options ExecCGI Includes

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php3
Action application/x-httpd-php "/php/php.exe"

AddType text/html .shtml
AddHandler server-parsed .shtml

<IfModule mod_proxy.c>
ProxyRequests On

<Directory proxy:*>
Order deny,allow
Deny from all
Allow from all
</Directory>

ProxyVia On

</IfModule>