赛题拓扑:
题目:
WEB服务
- 安装nginx软件包。
- 创建ispweb.chinaskills.cn站点。
- 配置文件名为ispweb.conf,放置在/etc/nginx/conf.d/目录下。
- 网站根目录为/mut/crypt(目录不存在需创建)。
- 启用FastCGI功能,让nginx能够解析php请求。
- index.php内容使用Welcome to 2023 Computer Network Application contest!
root@ispsrv:~# apt-get install nginx php php-fpm -y
root@ispsrv:~# vim /etc/nginx/nginx.conf +62
#include /etc/nginx/sites-enabled/*;
root@ispsrv:~# vim /etc/nginx/conf.d/proxy.conf
server {
listen 80;
server_name ispweb.chinaskills.cn;
root /mut/crypt;
index inde