我想向我的apache服务器添加一个自定义虚拟主机(一个django项目)。我查询了其他答案,但没有任何帮助。我的apache服务器总是抛出错误。
这是我在httpd-vhosts.conf
中的虚拟主机:
<VirtualHost *:80>
ErrorLog "logs/error.log"
CustomLog "logs/custom.log"
ServerAdmin myproject@myproject.com
DocumentRoot "C:/Users/Myzel394/Documents/PROGRAMMIEREN/things/myproject"
<Directory /myproject/wsgi.py>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / myproject/wsgi.py
<Directory /lib/media>
Require all granted
</Directory>
Alias /media /lib/media
<Directory /lib/static>
Require all granted
</Directory>
Alias /static /lib/static
</VirtualHost>
这是我的Apache错误:
15:21:57 [Apache] Error: Apache shutdown unexpectedly.
15:21:57 [Apache] This may be due to a blocked port, missing dependencies,
15:21:57 [Apache] improper privileges, a crash, or a shutdown by another method.
15:21:57 [Apache] Press the Logs button to view error logs and check
15:21:57 [Apache] the Windows Event Viewer for more clues
15:21:57 [Apache] If you need more help, copy and post this
15:21:57 [Apache] entire log window on the forums