Hi, I am using Debian Wheezy and this is my configuration. This is the
content of /etc/apache2/sites-available/mysitedomain.com. I made this
file following the official django docs.
Keep in mind that this is a deployed for testing purposes site so both
static files and django files are served from the same server, against
django guidelines. I am posting it here just to give you an example.
I am using the wsgi.py file created by startproject and I don't know if
I can keep it when I go live. For that maybe we can get some experienced
advice.
Also I had to rename the /etc/apache2/sites-available/default.<whatever>
to default.bak so apache wouldn't default to that.
No need for httpd.conf file. I couldn't find any in my server anyway.
The project is named ssite and the projects folder is simply it's parent
folder.
Hope this helps
Alias /robots.txt /home/voger/projects/ssite/static/robots.txt
Alias /favicon.ico /home/voger/projects/ssite/static/favicon.ico
AliasMatch ^/([^/]*\.css) /home/voger/projects/ssite/static/styles/$1
Alias /media/ /home/voger/projects/ssite/media/
Alias /static/ /home/voger/projects/ssite/static/
<Directory /home/voger/projects/ssite/static>
Order deny,allow
Allow from All
</Directory>
<Directory /home/voger/projects/ssite/media>
Order deny,allow
Allow from All
</Directory>
WSGIDaemonProcess mysitedomain.com
python-path=/home/voger/projects/ssite:/home/voger/ssite_venv/lib/python2.7/site-packages
WSGIProcessGroup mysitedomain.com
WSGIScriptAlias / /home/voger/projects/ssite/ssite/wsgi.py
<Directory /home/voger/projects/ssite/ssite>
<Files wsgi.py>
Order allow,deny
Allow from All
</Files>
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/53163185.3090602%40yahoo.gr.
For more options, visit https://groups.google.com/groups/opt_out.