Die WinTipps 2001 - Das deutsche Windows-Portal 
 Sie sind hier: Tipps - Artikel: Installation und Konfiguration des Apache 1.3.27 Es waren bisher 8434971 Besucher hier. 

Sehr geehrte User, Sie können hier für die WinTipps 2001 in verschiedenen Toplisten voten...
Insgesamt sind 6 Benutzer online: kein registrierter, kein versteckter und 6 Gäste
Der Artikel wird gelesen von: keinem registrierter User und keinem Gast
Die WinTipps 2001 Portal -> Tipps-Übersicht -> Apache Webserver
Installation und Konfiguration des Apache 1.3.27


Wir gehen in dieser Anleitung davon aus, das der Apache auf dem Laufwerk "H" installert wird.
Sollten Sie den Apache auf einem anderen Laufwerk installieren, so müssen Sie alle Pfadangaben in der httpd.conf anpassen.


Sie können die neueste Version des Apache hier herunterladen:

http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.27-win32-x86-src.msi

1. Installation:

  1. Führen Sie die Apache-Installationsdatei (apache_1.3.23-win32-x86-src.msi) aus.

  2. Geben Sie als Ziellaufwerk "H:\Apache" an.

  3. Geben Sie als "ServerName" localhost an.

  4. Geben Sie als "ServerAdmin" Ihre E-Mail Adresse an.

  5. Folgen Sie den weiteren Installations-Anweisungen.

  6. Starten Sie Ihren Rechner ggf. neu.

  7. Nun sollte der Apache-Server als Dienst laufen.

  8. Stoppen Sie den Apache für die weitere Konfiguration.


2. Konfiguration:

Wir stellen Ihnen im folgenden eine Beispiel-Konfiguration für den Apache-Server mit PHP 4 und Perl vor.

Die httpd.conf ist auf den Apache 1.3.27 angepasst.

Sie können den folgenden Code als "httpd.conf" im Verzeichnis "H:\Apache\conf" abspeichern.
Beachten Sie die Pfadangaben, Sie müssen sie ggf. anpassen.
Zeile:  Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
### Section 1: Global Environment
ServerType standalone

ServerRoot "/Apache"

PidFile logs/httpd.pid

#ScoreBoardFile logs/apache_runtime_status

#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf

Timeout 1000

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 25

MaxRequestsPerChild 0

ThreadsPerChild 50

Listen 80

#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule status_module modules/mod_status.so
#LoadModule info_module modules/mod_info.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule anon_auth_module modules/mod_auth_anon.so
#LoadModule dbm_auth_module modules/mod_auth_dbm.so
#LoadModule digest_auth_module modules/mod_auth_digest.so
#LoadModule digest_module modules/mod_digest.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module x:/PHP4/sapi/php4apache.dll

# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
#AddModule mod_status.c
#AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_isapi.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
#AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
#AddModule mod_auth_anon.c
#AddModule mod_auth_dbm.c
#AddModule mod_auth_digest.c
#AddModule mod_digest.c
#AddModule mod_proxy.c
#AddModule mod_cern_meta.c
#AddModule mod_expires.c
#AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_php4.c

#ExtendedStatus Off

### Section 2: 'Main' server configuration

ServerAdmin you@yourdomain.com

ServerName localhost

DocumentRoot "H:/Apache/htdocs"

#<IfModule mod_userdir.c>
#    UserDir "H:/Apache/users/"
#</IfModule>

#<Directory "H:/Apache/users">
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

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

AccessFileName .htaccess

<Files ~ "^.ht">
    Order allow,deny
    Deny from all
</Files>

CacheNegotiatedDocs

UseCanonicalName Off

<IfModule mod_mime.c>
    TypesConfig conf/mime.types
</IfModule>

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 %p" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

#CustomLog logs/access.log common
#CustomLog logs/referer.log referer
#CustomLog logs/agent.log agent
CustomLog logs/access.log combined

ServerSignature Off

   #!x:/perl/bin/perl

#ScriptInterpreterSource registry

### ALIAS

<IfModule mod_alias.c>

    Alias /icons/ "H:/Apache/icons/"

    <Directory "H:/Apache/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ "H:/Apache/cgi-bin/"
   
    # Wird nur genutzt, wenn PHP nicht als Modul eingebunden wird
    #ScriptAlias /php4/ "H:/php4/"

    <Directory "H:/Apache/cgi-bin">
        AllowOverride None
        Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>

    <Directory "H:/Apache/htdocs">
        AllowOverride None
        Options All
        Order allow,deny
        Allow from all
    </Directory>

</IfModule>

### End ALIAS

### INDEXING

<IfModule mod_autoindex.c>

    IndexOptions FancyIndexing

    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

    AddIconByType (TXT,/icons/text1.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
    AddIcon /icons/setup3.gif .exe .msi
    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
    AddIcon /icons/winzip.gif .zip
    AddIcon /icons/winrar.gif .rar
    AddIcon /icons/winace.gif .ace
    AddIcon /icons/impact.gif .ufo
    AddIcon /icons/cool3d.gif .c3d
    AddIcon /icons/photoshop.gif .psd
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/ie.gif .html .shtml .htm .php .php3 .phtml
    AddIcon /icons/pdf.gif  .pdf
    AddIcon /icons/poerpoint1.gif .ppt
    AddIcon /icons/word1.gif .doc
    AddIcon /icons/excel1.gif .xls
    AddIcon /icons/access1.gif .mdb
    AddIcon /icons/coreldraw.gif .cdr
    AddIcon /icons/corelpaint.gif .cpt
    AddIcon /icons/regedit1.gif .reg
    AddIcon /icons/text1.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/inf.gif .inf

    AddIcon /icons/back.gif ..
    AddIcon /icons/achtung.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^

    DefaultIcon /icons/unknown.gif

    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz
    AddDescription "WinZip-Archiv" .zip
    AddDescription "WinRar-Archiv" .rar
    AddDescription "WinAce-Archiv" .ace
    AddDescription "Word XP Dokument" .doc
    AddDescription "Excel XP Dokument" .xls
    AddDescription "Access XP Dokument" .mdb
    AddDescription "Powerpoint XP Dokument" .ppt
    AddDescription "Corel Draw 10.0 Dokument" .cdr
    AddDescription "Corel Photopaint 10.0 Dokument" .cpt
    AddDescription "Bild - Datei" .gif .jpg .jpeg .png .bmp
    AddDescription "Windows Registrierungs-Datei" .reg
    AddDescription "Ulead Photo Impact 6 Dokument" .ufo
    AddDescription "Ulead Cool 3D 3.0 Dokument" .c3d
    AddDescription "Adobe Photoshop 6.0 Dokument" .psd
    AddDescription "Windows-Installer-Paket" .msi
    AddDescription "Windows .inf-Datei" .inf
   

    ReadmeName README
    HeaderName HEADER

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

</IfModule>

### End of INDEXING

### DOCUMENT TYPES

<IfModule mod_mime.c>

    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage he .he
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .sv
    AddLanguage cz .cz
    AddLanguage ru .ru
    AddLanguage tw .tw
    AddLanguage zh-tw .tw
    AddCharset Big5         .Big5    .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866        .cp866
    AddCharset ISO-8859-5   .iso-ru
    AddCharset KOI8-R       .koi8-r
    AddCharset UCS-2        .ucs2
    AddCharset UCS-4        .ucs4
    AddCharset UTF-8        .utf8

    <IfModule mod_negotiation.c>
        LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>

    AddType application/x-tar .tgz
    AddType image/x-icon .ico
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php-source .phps

    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    AddType text/html .shtml
    #AddHandler server-parsed .shtml
    #AddHandler send-as-is asis
    #AddHandler imap-file map
    #AddHandler type-map var

</IfModule>

### End of DOCUMENT TYPES

### ACTIONS

    ##Nur wenn PHP nicht als Modul eingebunden wird
    #Action application/x-httpd-php "/php4/php.exe"

#### End of ACTIONS

### META

#MetaDir .web

#MetaSuffix .meta

### End of META

### ERROR DOCUMENTS

#ErrorDocument 500 "The server made a boo boo.

#ErrorDocument 404 /missing.html

#ErrorDocument 404 /cgi-bin/missing_handler.pl

ErrorDocument 400 /error/bad_request.html
ErrorDocument 401 /error/auth_required.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/not_found.html
ErrorDocument 405 /error/method_not_allowed.html
ErrorDocument 408 /error/request_timeout.html
ErrorDocument 410 /error/gone.html
ErrorDocument 411 /error/length_required.html
ErrorDocument 412 /error/precondition_failed.html
ErrorDocument 413 /error/entity_too_large.html
ErrorDocument 414 /error/uri_too_large.html
ErrorDocument 415 /error/unsupported_media_type.html
ErrorDocument 500 /error/internal_server_error.html
ErrorDocument 501 /error/not_implemented.html
ErrorDocument 502 /error/bad_gateway.html
ErrorDocument 503 /error/service_unavailable.html
ErrorDocument 506 /error/variant_also_varies.html

#ErrorDocument 402 http://some.other_server.com/subscription_info.html

### End of ERROR DOCUMENTS

# BROWSER BEHAVIOUR

<IfModule mod_setenvif.c>

    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

</IfModule>

# End of BROWSER BEHAVIOUR

### STATUS REPORTS

#<Location /Admin/server-status>
#    SetHandler server-status
#    Order allow,deny
#   
#</Location>

#<Location /Admin/server-info>
#    SetHandler server-info
#    Order allow,deny
#    Allow from all
#   
#</Location>

#<Location /cgi-bin/phf*>
#    Deny from all
#    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
#</Location>

# PROXY

# enable the proxy server:

#<IfModule mod_proxy.c>
#    ProxyRequests On

#    <Directory proxy:*>
#        Order deny,allow
#        Deny from all
#        Allow from http://www.yourdomain1.com
#    </Directory>
   
#    ProxyVia On

#    CacheRoot "H:/Apache/proxy"
#    CacheSize 5
#    CacheGcInterval 4
#    CacheMaxExpire 24
#    CacheLastModifiedFactor 0.1
#    CacheDefaultExpire 1
#    NoCache a_domain.com another_domain.edu joes.garage_sale.com

#</IfModule>

# End of PROXY

### Section 3: Virtual Hosts

# Use name-based virtual hosting.

#NameVirtualHost http://www.yourdomain1.com

#<VirtualHost http://www.yourdomain1.com>
#    ServerAdmin you@yourdomain1.com
#    DocumentRoot "H:/Apache/www/you"
#    ServerName http://www.yourdomain1.com
#    ErrorLog logs/you/error_log
#    CustomLog logs/you/access_log common
#</VirtualHost>
 kompletten Code anzeigen

Nachdem Sie PHP 4 und Perl installiert haben, starten Sie den Apache-Server wieder.
 
Einen anderen Artikel aus Apache Webserver lesen:
 
nach oben
Die WinTipps 2001 Portal -> Tipps-Übersicht -> Apache Webserver
Info's

Verfasst am: 26.01.2002, 18:25
Dieser Artikel wurde
bisher 9582 mal gelesen.
Druckversion des Beitrags Druckversion
Diesen Artikel als PDF-Dokument anzeigen PDF Version
Dieses Thema einem Freund schicken Dieses Thema einem Freund schicken


 

Bewertung
bisherige Bewertungen:

Durchschnitt: 2.88
Minimum: 1
Maximum: 5
Anzahl Bewertungen: 8

Wählen Sie die Bewertung:





Details anzeigen

Zu einer anderen Rubrik wechseln:
 
Seitenanfang


Voten Sie fur uns bei TopForen.de   Der PC-Hilfe-Webring ist ein Zusammenschluß deutschsprachiger Homepages, die kostenlose Hilfe/Anleitungen/FAQs rund um die Themen PC/Netze/Hardware/Software bieten

Aktion Deutschland hilft


Design and Modifications (additional scripting and bug fixes) by TL Networks
Template-Version 2.1.0 © 2001 - 2007 TL Networks

hosted by TL Networks
based on phpBB