解决配置域名后访问页面404问题

This commit is contained in:
yoh0o
2024-06-23 06:56:08 +08:00
parent 4f00e0f43c
commit cb8dc15738
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ pyenv virtualenv 3.8.2 dnslog
~/.pyenv/versions/dnslog/bin/python manage.py collectstatic
~/.pyenv/versions/dnslog/bin/gunicorn --workers 5 --bind 127.0.0.1:8000 dnslog.wsgi:application --daemon
nohup ~/.pyenv/versions/3.8.2/envs/dnslog/bin/python3.8 ./zoneresolver.py &
cp dnslog_nginx.conf /etc/nginx/conf.d/
envsubst '$ADMIN_DOMAIN' < /dnslog/dnslog_nginx.conf > /etc/nginx/conf.d/default.conf
setsebool httpd_can_network_connect on
setenforce permissive
systemctl restart nginx