server {
listen 80 default_server;
listen [::]:80 default_server;
server_name ui.hifipublic.com;
return 301 https://$server_name$request_uri;
root /var/www/html/front-end/dist;
index index.html index.php index.htm;
client_max_body_size 20M;
try_files $uri $uri/ /index.php?$query_string;
location ~ \.php$ {
try_files $uri $uri/ /index.html;
}
location ~ /\.ht {
deny all;
}
}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/self-signed.conf;
include snippets/ssl-params.conf;
root /var/www/html/front-end/dist;
index index.html index.php index.htm;
#server_name ui.hifipublic.com;
client_max_body_size 20M;
try_files $uri $uri/ /index.php?$query_string;
location ~ \.php$ {
try_files $uri $uri/ /index.html;
}
location ~ /\.ht {
deny all;
}
}
Selim Reza