Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| nginx [2025/09/07 06:24] – ranslite | nginx [2025/09/14 19:34] (aktuell) – ranslite | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== | + | ====== |
| - | + | ===== !!!nicht aktuell!!! ===== | |
| - | __ ==== Zugriff auf Ordner einschränken. | + | |
| | | ||
| In '' | In '' | ||
| + | <code nginx [enable_keyword_links=" | ||
| + | server { | ||
| + | server_name doku.zonenranslite.de; | ||
| + | root / | ||
| + | index install.php index.html index.html; | ||
| + | |||
| + | |||
| + | location / { | ||
| + | try_files $uri $uri/ @dokuwiki; | ||
| + | } | ||
| + | | ||
| + | location @dokuwiki { | ||
| + | rewrite ^/ | ||
| + | rewrite ^/ | ||
| + | rewrite ^/ | ||
| + | rewrite ^/(.*) / | ||
| + | } | ||
| + | | ||
| + | location ~ \.php$ { | ||
| + | include snippets/ | ||
| + | fastcgi_pass unix:/ | ||
| + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| + | include fastcgi_params; | ||
| + | } | ||
| + | | ||
| + | # Verweigert Zugriff auf die Ordner data, conf, bin, inc, vendor | ||
| + | location ^~ /data/ { | ||
| + | return 404; | ||
| + | } | ||
| + | |||
| + | location ^~ /conf/ { | ||
| + | return 404; | ||
| + | } | ||
| + | |||
| + | location ^~ /bin/ { | ||
| + | return 404; | ||
| + | } | ||
| + | |||
| + | location ^~ /inc/ { | ||
| + | return 404; | ||
| + | } | ||
| + | |||
| + | location ^~ /vendor/ { | ||
| + | return 404; | ||
| + | } | ||
| + | </ | ||