Frank Schönmann: Suche lokalen WebServer

Beitrag lesen

hi!

Könnte mir evtl. irgendjemand eine funktionierende httpd.conf zuschicken? Ich wäre sehr
dankbar.

Ich weiß nicht, was daran so schwierig sein soll, CGI zum laufen zu bringen. In der Konfigurationsdatei ist genau beschrieben, was man auskommentieren muss bzw. nicht auskommentieren darf, um CGI bzw. SSI zu aktivieren.

Hier ist meine httpd.conf. Läuft hier ohne Probleme mit CGI, SSI und PHP3. Die meisten Werte sind noch auf Standard gesetzt.

=== cut ===
ServerType standalone

ServerRoot "C:/Programme/Internet/Apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status

Timeout 120
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 0

ThreadsPerChild 50

Port 80
ServerAdmin fs@tower.de
ServerName localhost
DocumentRoot "C:/Server"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Options ExecCGI
</Directory>

<Directory "C:/Server">
    Options ExecCGI Includes
    Order allow,deny
    Allow from all
</Directory>

<Directory "C:/Server/cgi-bin">
    Options ExecCGI
    AllowOverride None
</Directory>

<Directory "C:/Server/stg/">
  Options ExecCGI Includes
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

UserDir "D:/home/"
DirectoryIndex index.php3 index.phtml index.shtml index.pl index.html index.htm
AccessFileName .htaccess

<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>

UseCanonicalName On

TypesConfig conf/mime.types
DefaultType text/plain

<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

ErrorLog logs/error.log
LogLevel warn
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 logs/access.log common

ServerSignature EMail

Alias /icons/ "C:/Programme/Internet/Apache/icons/"
ScriptAlias /php3/ "C:/php3/"

IndexOptions FancyIndexing

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif

ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz
AddLanguage de .de
AddLanguage en .en
AddLanguage fr .fr

LanguagePriority de en fr

AddType application/x-httpd-php3 .phtml .php3
AddType application/x-httpd-php3-source .phps

AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler cgi-script .pm
AddHandler cgi-script .exe

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

ErrorDocument 500 "The server made a boo boo.

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0
BrowserMatch "Java/1.0" force-response-1.0
BrowserMatch "JDK/1.0" force-response-1.0

=== cut ===

bye, Frank!