gpt4 book ai didi

django - Ubuntu 上的 Apache 错误 ERROR : Site (SiteName) does not exist

转载 作者:行者123 更新时间:2023-12-04 19:04:47 25 4
gpt4 key购买 nike

我在运行 sudo a2ensite test.watermaps-eg.com.conf 时遇到问题将新站点添加到 apache2 它给了我 ERROR: Site test.watermaps-eg.com does not exist! 我试图做的
添加文件test.watermaps-eg.com.conf里面 sites-enabled .
添加了apache2文件里面的配置。

<VirtualHost *:80>
ServerName https://test.watermaps-eg.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@innoventiq.com
ServerName test.watermaps-eg.com
DocumentRoot /home/ubuntu/test_water_maps_django
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/ubuntu/test_water_maps_django/static
<Directory /home/ubuntu/test_water_maps_django/static>
Require all granted
Order Allow,Deny
Allow from all
AllowOverride all
</Directory>
<Directory /home/ubuntu/test_water_maps_django/kml_files>
Require all granted
</Directory>
<Directory /home/ubuntu/test_water_maps_django/water_maps>
Require all granted
Order Allow,Deny
Allow from all
AllowOverride all
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess test_water_maps_django python-path=/home/ubuntu/test_water_maps_django python-home=/home/ubuntu/test_water_maps_django/venv
WSGIProcessGroup test_water_maps_django
WSGIScriptAlias / /home/ubuntu/test_water_maps_django/water_maps/wsgi.py
WSGIPassAuthorization On
</VirtualHost>
我运行了命令 sudo a2ensite test.watermaps-eg.com.conf它返回上述错误。

最佳答案

您可能想在/etc/apache2/ 中添加 conf (test.watermaps-eg.com.conf) 文件网站可用
在运行命令之前

sudo a2ensite test.watermaps-eg.com

关于django - Ubuntu 上的 Apache 错误 ERROR : Site (SiteName) does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72710775/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com