Guest User

Untitled

a guest
Oct 11th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name localhost;
  5.  
  6. # application: phpldapadmin
  7. location /phpldapadmin {
  8. alias /usr/share/phpldapadmin/htdocs;
  9. index index.php index.html index.htm;
  10.  
  11. location ~ ^/phpldapadmin/(.+\.php)$ {
  12. try_files $uri =404;
  13. root /usr/share/;
  14. if ($request_filename !~* htdocs) {
  15. rewrite ^/phpldapadmin(/.*)?$ /phpldapadmin/htdocs$1;
  16. }
  17. fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  18. fastcgi_index index.php;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include /etc/nginx/fastcgi_params;
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment