On Dec 18, 10:12 am, felix <crucialfe...@gmail.com> wrote:
> you can put it directly in your http-vhosts.conf file
>
> <VirtualHost *:80>
> ServerName crucial-systems.com
> DocumentRoot /home/crucial/crucial-stack/crucialwww
> ... etc...
>
> Alias /favicon.ico "/home/crucial/crucial-stack/crucialwww/favicon.ico"
>
> ...
>
> WSGIScriptAlias / /home/crucial/crucial-stack/crucial/crucial.wsgi
>
> note that even though the document root appears to be mapped to the
> crucialwww directory, in practice the WSGIScriptAlias / means that
> everything is directed to django.
>
> all image and css directories I also use Alias (before the WSGIScriptAlias)
> to map those to the correct directories.
>
> I used to do a lot of symlinks and juggling of my directories. I'm
> preferring this method now as its much easier to change and move things.
As documented for mod_wsgi in:
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#Hosting_Of_Static_Files
This is why I asked how Django instance was originally being hosted.
FWIW, if using mod_python you can from memory still use Alias, but
also need to specify a Location directive for that URL path and
SetHandler to None. If you don't have the latter bit the request still
gets sucked into mod_python rather than being served as a static file.
YMMV vary on getting this to work though because mod_python doesn't
interleave properly with file based resource directives such as Alias
where as mod_wsgi does.
Graham
> -fx
>
> On Wed, Dec 17, 2008 at 6:31 PM, 3lancer.eu <kilc...@gmail.com> wrote:
>
> > HI,
>
> > > I haven't bothered to try fixing it yet, but I wonder if a redirect
> > > from /favicon.ico to /media/images/favicon.ico might solve that issue.
> > > If I get a chance I'll test it today, see if works. Has anyone else
> > > experimented with this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---