I have Apache 2.2
running over CentOS 6.5
for first time. I faced no problem with Ubuntu with configurations below, but on CentOS always giving me 403
error. The example.com
domain is living under Ubuntu server right now. If I can be able to run it under CentOS, I'll redirect example.com to CentOS server. But now I'm trying to run it with test.example.com
domain. What am I doing wrong or missing?
Error that I faced:
[Mon Jun 23 15:30:40 2014] [error] [client ip] (13)Permission denied: access to / denied
Virtual Host conf:
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>
0 Answers