我第一次Apache 2.2
运行它。使用下面的配置,我在 Ubuntu 上没有遇到任何问题,但在 CentOS 上总是出现错误。该域名现在位于 Ubuntu 服务器下。如果我能够在 CentOS 下运行它,我会将 example.com 重定向到 CentOS 服务器。但现在我正尝试使用域名运行它。我做错了什么或遗漏了什么?CentOS 6.5
403
example.com
test.example.com
我遇到的错误:
[Mon Jun 23 15:30:40 2014] [error] [client ip] (13)Permission denied: access to / denied
虚拟主机配置:
NameVirtualHost ip:80
<VirtualHost ip:80>
ServerName example.com
ServerAlias test.example.com
<Directory /home/user/example>
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess example user=user group=user python-path=/home/user/example:/home/user/example/venv/lib/python2.7/site-packages processes=2 threads=25 inactivity-timeout=60 maximum-requests=100
WSGIProcessGroup example
WSGIScriptAlias / /home/user/example/project/wsgi.py
ErrorLog /home/user/example/logs/error_log
CustomLog /home/user/example/logs/access_log combined
Alias /media/ /home/user/example/media/
Alias /static/ /home/user/example/static/
</VirtualHost>