这个是设置Nginx的配置修改 还是设置在站点的配置文件中?路径是这样的 include wwwwwwrootwygzstopmdclub-102nginxconf; 写出来给我 写完整给我我看不懂MDClub 附带了一个 nginxconf 文件。你需要在 Nginx 的站点配置文件中添加以下内容以导入默认的重写规则:include MDClub路径nginxconf;其中server_na
在 Nginx 的站点配置文件中添加以下内容:
server { listen 80; server_name yourdomain.com; root /var/www/yourdomain.com; index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
include /www/wwwroot/wygzs.top/mdclub-1.0.2/.nginx.conf;
}
其中,yourdomain.com 为你的站点域名,/var/www/yourdomain.com 为你的站点根目录,/www/wwwroot/wygzs.top/mdclub-1.0.2 为你实际的 MDClub 路径。注意修改为你自己的路径和域名
原文地址: https://www.cveoy.top/t/topic/cgIy 著作权归作者所有。请勿转载和采集!