1:首先挂载
mount /dev/sr0 /mnt
2:安装python模块
dnf install python-mod_wsgi -y
3:切换到 /etc/var/www/cgin-bin目录下并且把haha.wsgi拉到目录中,也可以自己手动打,需要直接wsgi文件的私聊我
cd /etc/var/www/cgin-bin
4:配置/etc/httpd/conf.d./vhost.conf中的文件
vim /etc/httpd/conf.d/vhost.conf
<virtualhost 192.168.64.134:80>
WSGIScriptAlias / /var/www/cgi-bin/haha.wsgi
servername www.heihei.com
</virtualhost>
5:在/etc/hosts 中配置域名解析
6:创建网站目录并且输入信息到网站
mkdir /www/heihei
echo "I love hanjinlan" > /www/heihei/index.html
7:重启服务
systemctl restart httpd