hangar18/static_data/configs/nginx-internal/002-ldapadmin.conf

27 lines
594 B
Plaintext

#
# PhpLDAPadmin
#
server {
listen 80;
server_name ldapadmin;
root /opt/php/$server_name;
access_log /var/log/nginx/$server_name-access.log;
error_log /var/log/nginx/$server_name-error.log;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php;
}
# php config
location ~ \.php$ {
try_files $uri =404;
proxy_read_timeout 1200;
fastcgi_pass unix:/var/run/php-fpm/$server_name-php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}