Skip to content

Instantly share code, notes, and snippets.

@alex700
Created October 11, 2018 21:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex700/83a93398e359dad729553522dca3288e to your computer and use it in GitHub Desktop.
Save alex700/83a93398e359dad729553522dca3288e to your computer and use it in GitHub Desktop.
Nginx Config for phpldapadmin
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;
}
}
}
@uranus829
Copy link

GET /phpldapadmin/index.php HTTP/1.1" 302 ,Unlimited occurrences of redirects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment