apache-httpd:start
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| apache-httpd:start [2015-02-15 15:22] – "VHosts" mit "Liste der VHosts" eingefügt 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 ===== | ===== VHosts ===== | ||
| Zeile 9: | Zeile 43: | ||
| <code bash> | <code bash> | ||
| apachectl -S | 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 | ||
| + | </ | ||
| + | </ | ||
| </ | </ | ||
apache-httpd/start.1424010129.txt.gz · Zuletzt geändert: 2015-02-15 15:22 von a.kamola