添加 etc/nginx/sites-enabled/server

Signed-off-by: open_ww3_project <ww3masster@1win.eu.org>
This commit is contained in:
2025-03-26 14:16:16 +00:00
parent 9ce5583345
commit 2277fdb83d

View File

@@ -0,0 +1,21 @@
#配置参考
server {
listen 8088;
server_name php-web-8088;
root /var/www/html;
index index.php index.html;
location ~ \.php$ {
# include snippets/fastcgi-php.conf;
root /var/www/html;
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
try_files $uri $uri/ =404;
}
}