28 lines
856 B
Plaintext
28 lines
856 B
Plaintext
server {
|
|
listen 192.168.0.115:8084 ssl;
|
|
server_name dnsui-local.two.secure.squirrelcube.xyz;
|
|
root /mnt/gluster01/web/dnsui2/public_html;
|
|
index init.php;
|
|
|
|
ssl_certificate /etc/ssl/tp/fullchain.pem;
|
|
ssl_certificate_key /etc/ssl/tp/private/privkey.pem;
|
|
|
|
location / {
|
|
try_files $uri $uri/ @php;
|
|
auth_basic "NS1 Intranet";
|
|
auth_basic_user_file /mnt/gluster01/web/auth/dnsui;
|
|
}
|
|
location @php {
|
|
rewrite ^/(.*)$ /init.php/$1 last;
|
|
auth_basic "NS1 Intranet";
|
|
auth_basic_user_file /mnt/gluster01/web/auth/dnsui;
|
|
}
|
|
location /init.php {
|
|
fastcgi_pass 172.168.100.2:9100;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
auth_basic "NS1 Intranet";
|
|
auth_basic_user_file /mnt/gluster01/web/auth/dnsui;
|
|
}
|
|
}
|