Files
DirectAdmin-1.62.4/update/data/templates/nginx_ips.conf
tuend-work 4478491d73 z
2025-11-13 07:41:56 +07:00

50 lines
1003 B
Plaintext

|?CACERT_LINE=|
|*if CACERT!=""|
|?CACERT_LINE=ssl_client_certificate `CACERT`;|
|*endif|
|?NGINX_USERDIR=include /etc/nginx/nginx-userdir.conf;|
|*if HAVE_USERDIR_ACCESS="0"|
|?NGINX_USERDIR=|
|*endif|
server {
listen |IP|:|PORT_80| default_server;
server_name _;
root |DOCROOT|;
index index.html index.htm index.php;
|NGINX_USERDIR|
|*if HAS_NGINX_PHP_CONF="yes"|
include /usr/local/directadmin/data/users/|USER|/nginx_php.conf;
|*endif|
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
include /etc/nginx/webapps.conf;
}
server {
listen |IP|:|PORT_443| ssl|SPACE_HTTP2| default_server;
server_name _;
ssl_certificate |CERT|;
ssl_certificate_key |KEY|;
root |DOCROOT|;
index index.html index.htm index.php;
|NGINX_USERDIR|
|*if HAS_NGINX_PHP_CONF="yes"|
include /usr/local/directadmin/data/users/|USER|/nginx_php.conf;
|*endif|
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
include /etc/nginx/webapps.ssl.conf;
}