Nginx Installation & Konfiguration: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 5: | Zeile 5: | ||
[[Image:nginx.jpg]] | [[Image:nginx.jpg]] | ||
| + | |||
| + | =HTML Seite= | ||
| + | *Die Standard Seite befindet sich unter '''/var/www/html/''' | ||
| + | |||
| + | *Erstelle einen neuen Ordner unter '''www''' | ||
| + | root@poppe:/# mkdir /var/www/zuxerBsp | ||
| + | root@poppe:/# cd /var/www/zuxerBsp/ | ||
| + | root@poppe:/var/www/zuxerBsp# vi index.html | ||
| + | |||
| + | *Ein Standard Beispiel für eine html Seite wäre | ||
| + | <!doctype html> | ||
| + | <html> | ||
| + | <head> | ||
| + | <meta charset="utf-8"> | ||
| + | <title>Hallo, Welt!</title> | ||
| + | </head> | ||
| + | <body> | ||
| + | <h1>Hallo, Welt!</h1> | ||
| + | <p>Wir haben gerade erfolgreich unseren nginx Server aufgestellt!</p> | ||
| + | </body> | ||
| + | </html> | ||
Version vom 23. März 2020, 15:45 Uhr
Installation
- sudo apt-get install nginx
localhost
HTML Seite
- Die Standard Seite befindet sich unter /var/www/html/
- Erstelle einen neuen Ordner unter www
root@poppe:/# mkdir /var/www/zuxerBsp root@poppe:/# cd /var/www/zuxerBsp/ root@poppe:/var/www/zuxerBsp# vi index.html
- Ein Standard Beispiel für eine html Seite wäre
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Hallo, Welt!</title> </head> <body>
Hallo, Welt!
Wir haben gerade erfolgreich unseren nginx Server aufgestellt!
</body> </html>
