Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


fortgeschrittene:apache

Dies ist eine alte Version des Dokuments!


Apache

Benötigte Pakete

Fedora:

httpd

SuSE:

apache2 apache2-prefork

Debian ab 3.1:

apache2 apache2-mpm-prefork

Konfiguration

Im einfachsten Fall

  • startet man den Webserver
  • hinterlegt eine Webseite
  • und greift darauf zu

/var/www/html/test.html: ( CentOS )

/srv/www/htdocs/test.html: ( SuSE 10.0 )

/var/www/index.html : ( Debian 5.0 )

<html>
  <head>
    <title>Hello World!</title>
  </head>
  <body>
    Hello World
  </body>
</html>

Testen

telnet localhost 80
GET http://localhost/test.html HTTP/1.1
Host: localhost

IPv6 abschalten

/etc/apache2/ports.conf : ( Debian 4.0 )

Listen 0.0.0.0:80

Dokumentation

fortgeschrittene/apache.1302161269.txt.gz · Zuletzt geändert: 2011/04/07 07:27 von iw