File: /var/lib/letsencrypt/backups/1696341075.1712356/ridesyreland_12
server {
server_name ridesyreland.foach.site;
root /var/www/ridesyre-land/public;
index index.html index.php;
client_max_body_size 20M;
charset utf-8;
location / {
rewrite ^/lp/([^.]*[^/])$ /lp/$1/ redirect;
root /var/www/ridesyre-land/frontend/dist;
try_files $uri $uri.html $uri/index.html index.html;
}
location /admin {
root /var/www/ridesyre-land/public/;
rewrite ^/admin/(.*)$ /$1 break;
try_files $uri $uri/ /index.php?$args;
}
location /api {
root /var/www/ridesyre-land/public/;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param APPLICATION_ENV dev;
fastcgi_read_timeout 240;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /404.html;
location ~ /\.(?!well-known).* {
deny all;
}
listen 80; # managed by Certbot
}