Advertisement
darkreeper

DokuWiki Nginx Conf

Jul 4th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.80 KB | None | 0 0
  1. # First complete the setup by appending install.php to URL.
  2. # Make sure that your dns has a cname set for dokuwiki
  3.  
  4. server {
  5.     listen 443 ssl;
  6.     listen [::]:443 ssl;
  7.  
  8.     server_name wiki.*;
  9.  
  10.     include /config/nginx/ssl.conf;
  11.  
  12.     client_max_body_size 0;
  13.  
  14.     #enable for ldap auth, fill in ldap details in ldap.conf
  15.     #include /config/nginx/ldap.conf;
  16.  
  17.     location / {
  18.         #enable the next two lines for http auth
  19.         #auth_basic "Restricted";
  20.         #auth_basic_user_file /config/nginx/.htpasswd;
  21.  
  22.         #enable the next two lines for ldap auth
  23.         #auth_request /auth;
  24.         #error_page 401 =200 /login;
  25.  
  26.         include /config/nginx/proxy.conf;
  27.         resolver 127.0.0.11 valid=30s;
  28.         set $upstream_dokuwiki dokuwiki;
  29.         proxy_pass http://$upstream_dokuwiki:8084;
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement