On Saturday 16 January 2010 01:32:21 Sam Walters wrote: > Hi, > The production server running centos was just upgraded and in apache > 1.3 the old httpd.conf file was moved to httpd.conf.bak. > I had to move my mod_wsgi + virtualhost entry over to the new > httpd.conf and recompiled mod_wsgi. > > > Everything works except that when i load my pages none of the .css .js > .png .gif etc files are being loaded. > > when presented with this problem I initially recompiled+installed > mod_wsgi, then installed python 2.5.4 in /opt/ and looked at paths: > > *The project files are in exactly the same place. > *The virtualhosts entry points to the same locations for these files > *The settings.py file points to the same template dirs > *Of course the urls file still points to the same static resources and > the templates html files still refer to the files form the same > relative url. > > in settings.py: > > TEMPLATE_DIRS = ("/home/aero00/aeroclub-beta/Aeroclub/templates", > "/home/aero00/aeroclub-beta/Aeroclub/templates/css", > > "/home/aero00/aeroclub-beta/Aeroclub/templates/css/admincss", # Put > strings here, like "/home/html/django_templates" or > "C:/www/django/templates". > # Always use forward slashes, even on Windows. > # Don't forget to use absolute paths, not relative paths. > ) > > in httpd.conf: > > AliasMatch /([^/]*\.css) > /home/aero00/aeroclub-beta/Aeroclub/templates/css/$1 AliasMatch > /([^/]*\.html) /home/aero00/aeroclub-beta/Aeroclub/templates/$1 AliasMatch > /([^/]*\.js) /home/aero00/aeroclub-beta/Aeroclub/scripts/$1 AliasMatch > /([^/]*\.gif) > /home/aero00/aeroclub-beta/Aeroclub/templates/images/$1 > AliasMatch /([^/]*\.png) > /home/aero00/aeroclub-beta/Aeroclub/templates/images/$1 > > DocumentRoot /home/aero00/aeroclub-beta > > <Directory /home/aero00/aeroclub-beta> > Order deny,allow > Allow from all > </Directory> > > Im not sure where this problem is, any pointers on where to look would > be greatly appreciated. > > Cheers > > Sam_w >
Apache error logs? -- Heaven, n.: A place where the wicked cease from troubling you with talk of their personal affairs, and the good listen with attention while you expound your own. -- Ambrose Bierce, "The Devil's Dictionary"
signature.asc
Description: This is a digitally signed message part.