You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
524 B
20 lines
524 B
server {
|
|
listen 80;
|
|
root /var/www/public;
|
|
|
|
location / {
|
|
index index.php index.html;
|
|
if (!-e $request_filename) {
|
|
rewrite ^(.*)$ /index.php?s=/$1 last;
|
|
}
|
|
}
|
|
|
|
location ~ \.php(/|$) {
|
|
include fastcgi_params;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
|
fastcgi_index index.php;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
}
|
|
}
|