apache-httpd:start
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
apache-httpd:start [2015-01-10 17:42] – angelegt a.kamola | apache-httpd:start [2015-08-06 07:36] (aktuell) – [Vhosts] "VHost unter MacOS X einrichten" eingefügt a.kamola | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Apache HTTP Server ====== | ====== Apache HTTP Server ====== | ||
+ | |||
+ | ===== Steuerung ===== | ||
+ | |||
+ | ==== Starten ==== | ||
+ | |||
+ | Unter MacOS X: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apachectl start | ||
+ | </ | ||
+ | |||
+ | ==== Stoppen ==== | ||
+ | |||
+ | Unter MacOS X: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apachectl stop | ||
+ | </ | ||
+ | |||
+ | ==== Neustarten ==== | ||
+ | |||
+ | Unter MacOS X: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apachectl restart | ||
+ | </ | ||
+ | |||
+ | ===== Document Root ===== | ||
+ | |||
+ | Das Standard-Document-Root-Verzeichnis liegt unter MacOS X in: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ===== VHosts ===== | ||
+ | |||
+ | ==== Liste der VHosts ==== | ||
+ | |||
+ | Mit dem Programm //Apache HTTP Server Control Interface// lässt sich die Liste der aktiven VHosts ausgeben. Das Programm heißt, je nach Betriebssystem oder [[lexikon: | ||
+ | |||
+ | <code bash> | ||
+ | apachectl -S | ||
+ | </ | ||
+ | |||
+ | ==== VHost unter MacOS X einrichten ==== | ||
+ | |||
+ | === VHost hinzufügen === | ||
+ | |||
+ | Um einen VHost hinzuzufügen muss zunächst eine Domain in der Datei ''/ | ||
+ | |||
+ | <code bash> | ||
+ | sudo nano /etc/hosts | ||
+ | </ | ||
+ | |||
+ | Dort kann dann eine beliebige Domain, am besten mit einer nicht vergebenen [[lexikon: | ||
+ | |||
+ | < | ||
+ | 127.0.0.1 example.local | ||
+ | </ | ||
+ | |||
+ | Die Datei mit '' | ||
+ | |||
+ | Danach muss die VHost-Konfiguration des Apache, ebenfalls mit root-Rechten, | ||
+ | |||
+ | <code bash> | ||
+ | sudo nano / | ||
+ | </ | ||
+ | |||
+ | Dort muss ein neuer VHost-Block eingefügt werden: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ServerAdmin user@localhost | ||
+ | DocumentRoot "/ | ||
+ | ServerName www.example.local | ||
+ | ServerAlias example.local | ||
+ | ErrorLog "/ | ||
+ | CustomLog "/ | ||
+ | < | ||
+ | Options Indexes FollowSymLinks | ||
+ | AllowOverride All | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
===== Links ===== | ===== Links ===== |
apache-httpd/start.1420908144.txt.gz · Zuletzt geändert: 2015-01-10 17:42 von a.kamola