-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathphpldapadmin.conf
More file actions
28 lines (23 loc) · 781 Bytes
/
phpldapadmin.conf
File metadata and controls
28 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
server {
server_name example.com www.example.com;
listen 80;
listen 443;
# canonical domain
include /srv/example.com/nginx/conf/canonical_domain.conf;
# force HTTPS protocol
include /srv/example.com/nginx/conf/force_https_protocol.conf;
# document root
root /usr/share/phpldapadmin/htdocs;
index index.php index.html index.htm;
# default php handler
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
fastcgi_param HTTPS on;
}
# logging
error_log /srv/example.com/nginx/log/error.log;
access_log /srv/example.com/nginx/log/access.log;
}