Skip to content

Commit 4293603

Browse files
committed
move the ldap added configs to conf.d.example/
1 parent b4ccdd9 commit 4293603

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
#charset koi8-r;
6+
#access_log /var/log/nginx/host.access.log main;
7+
8+
location / {
9+
auth_ldap "Closed content";
10+
auth_ldap_servers ldap1;
11+
root /usr/share/nginx/html;
12+
index index.html index.htm;
13+
}
14+
15+
#error_page 404 /404.html;
16+
17+
# redirect server error pages to the static page /50x.html
18+
#
19+
error_page 500 502 503 504 /50x.html;
20+
location = /50x.html {
21+
root /usr/share/nginx/html;
22+
}
23+
24+
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
25+
#
26+
#location ~ \.php$ {
27+
# proxy_pass http://127.0.0.1;
28+
#}
29+
30+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
31+
#
32+
#location ~ \.php$ {
33+
# root html;
34+
# fastcgi_pass 127.0.0.1:9000;
35+
# fastcgi_index index.php;
36+
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
37+
# include fastcgi_params;
38+
#}
39+
40+
# deny access to .htaccess files, if Apache's document root
41+
# concurs with nginx's one
42+
#
43+
#location ~ /\.ht {
44+
# deny all;
45+
#}
46+
}
47+

0 commit comments

Comments
 (0)