Created
October 11, 2018 21:33
-
-
Save alex700/83a93398e359dad729553522dca3288e to your computer and use it in GitHub Desktop.
Nginx Config for phpldapadmin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GET /phpldapadmin/index.php HTTP/1.1" 302 ,Unlimited occurrences of redirects