On 16/07/2013 12:25pm, carlos wrote:
where is the error ??
On Mon, Jul 15, 2013 at 5:11 PM, maiquel <maiquelknech...@gmail.com
<mailto:maiquelknech...@gmail.com>> wrote:
How to set up django on Apache
I'm using django 1.4
and apache 2.4
and Python 2.7
My configuration is well
in httpd.conf
There are spaces everywhere on the next 2 lines and I don't know what
Apache might think of them. Check below for a working config.
WSGIScriptAlias / C :/ xampp / htdocs / My_blog / My_blog / wsgi.py
WSGIPythonPath / C :/ xampp / htdocs / My_blog /
<Directory C:/xampp/htdocs/meu_blog/meu_blog>
<Files wsgi.py>
Order deny, allow
Allow from all
</ Files>
</ Directory>
Does anyone know what is wrong?
<VirtualHost *:80>
DocumentRoot /var/www/xxx/htdocs/
ServerName xxx.xxx.com.au
ServerAdmin webmas...@xxx.com.au
HostnameLookups Off
UseCanonicalName Off
ErrorLog ${APACHE_LOG_DIR}/xxx-error.log
CustomLog ${APACHE_LOG_DIR}/xxx-access.log combined
Alias /robots.txt /var/www/static/xxx/robots/robots.txt
Alias /favicon.ico /var/www/static/xxx/img/xxx.ico
# lock the public out
<Directory /var/www/xxx/>
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# serve uploaded media from here
<Directory /var/www/media/xxx/>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
# serve static stuff from here
<Directory /var/www/static/xxx/>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<IfModule mod_alias.c>
Alias /media/ /var/www/media/xxx/
Alias /static/ /var/www/static/xxx/
#Alias /tiny_mce/ /var/www/static/xxx/js/tiny_mce/
Alias /jquery/ /var/www/static/xxx/js/jquery/
</IfModule>
# now let the public access anything here because it holds nothing
<Directory /var/www/xxx/htdocs/>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<IfModule mod_wsgi.c>
WSGIScriptAlias / /var/www/xxx/xxx/xxx.wsgi
<Directory /var/www/xxx/xxx/>
Order deny,allow
Allow from all
</Directory>
</IfModule>
--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.