Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- # application: phpldapadmin
- location /phpldapadmin {
- alias /usr/share/phpldapadmin/htdocs;
- index index.php index.html index.htm;
- location ~ ^/phpldapadmin/(.+\.php)$ {
- try_files $uri =404;
- root /usr/share/;
- if ($request_filename !~* htdocs) {
- rewrite ^/phpldapadmin(/.*)?$ /phpldapadmin/htdocs$1;
- }
- fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- }
- }
Add Comment
Please, Sign In to add comment