Benabra
Benabra

Reputation: 309

Django not serve admin static files (Apache, mod_wsgi)

I have a problem with admin static file (css, javascript, image)... I can't show this right template...

OS : Ubuntu 12.10 / Apache2 / mod_wsgi / Django 1.4

My apache config gile :

<VirtualHost *:80>
WSGIScriptAlias / /var/www/myhost.com/apache/buzzbal.wsgi

ServerName www.myhost.com
Alias /static /var/www/myhost.com/static/

<Directory /var/www/myhost.com/>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Upvotes: 0

Views: 1117

Answers (1)

Graham Dumpleton
Graham Dumpleton

Reputation: 58523

Use:

Alias /static/ /var/www/myhost.com/static/

That is, trailing slash on both sub URL mount point as well as the target path.

Upvotes: 3

Related Questions