File: //etc/nginx/sites-available/matrimony
server {
listen 80;
listen [::]:80;
server_name thepalanquinbearers.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/nginx/certs/mat-pubkey.pem;
ssl_certificate_key /etc/nginx/certs/mat-privkey.key;
root /var/www/matromony;
# Add index.php to the list if you are using PHP
index index.html index.php index.htm;
server_name thepalanquinbearers.com;
location / {
# try_files $uri $uri/ /index.php?$args;
try_files $uri $uri/ /index.php$is_args$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}