On 2/12/2010 1:48am, octopusgrabbus wrote:
Thank you. I've done made changes according to your suggestions, but
the css appears not to load. I am using apache, not the built-in web
server.

Here is my working vhost.conf for my Apache. See the aliases below which cause Apache to find the css file and make it available to your Django pages.

The AliasMatch entries which are commented out should have worked but I didn't have the patience so I used Alias entries instead.

Good luck

Mike


<VirtualHost *:80>

 ServerName http://xxx.xxx:80
 DocumentRoot /srv/www/xxx/htdocs/

 HostnameLookups Off
 UseCanonicalName Off

 ErrorLog /var/log/apache2/xxx_error_log
 CustomLog /var/log/apache2/xxx_access_log combined

 Alias /robots.txt /srv/www/xxx/htdocs/static/robots/robots.txt
 Alias /favicon.ico /srv/www/xxx/htdocs/static/img/favicon.ico

#AliasMatch /([^/]*\.css) /srv/xxx/ccm/htdocs/static/css/$1
#AliasMatch /([^/]*\.js) /srv/xxx/ccm/htdocs/static/js/$1
#AliasMatch (^/.+\.js) /srv/xxx/ccm/htdocs/static/js/$1

 Alias /media/ /srv/www/xxx/htdocs/static/
 Alias /static/ /srv/www/xxx/htdocs/static/
 Alias /tiny_mce/ /srv/www/xxx/htdocs/static/js/tiny_mce/
 Alias /jquery/ /srv/www/xxx/htdocs/static/js/jquery/

# now let the public access anything here
 <Directory /srv/www/xxx/htdocs/>
  AllowOverride None
  Order allow,deny
  Allow from all
 </Directory>

 WSGIScriptAlias / /srv/www/xxx/climate/wsgi-bin/xxx.wsgi
 <Directory /srv/www/xxx/climate/wsgi-bin>
  Order allow,deny
  Allow from all
 </Directory>

</VirtualHost>




<snip>

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to