添加 etc/nginx/sites-enabled/server
Signed-off-by: open_ww3_project <ww3masster@1win.eu.org>
This commit is contained in:
21
etc/nginx/sites-enabled/server
Normal file
21
etc/nginx/sites-enabled/server
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user