|
List Info
Thread: Help with httpd.conf for mod_wsgi and media directory
|
|
| Help with httpd.conf for mod_wsgi and
media directory |
  United States |
2007-09-28 13:18:35 |
Below is the httpd.conf virtual host directive I created
based on the
directions from the mod_wsgi website. Everything is working
fine with
mod_wsgi and Django. The problem I am having is with the
media
directory (I would like it to be /images/).
It appears that the line with Alias /images/ is being
overridden by
the line with WSGIScriptAlias /. Is this the expected
result? My
understanding from the mod_wsgi site was that if the Alias
/images/
line was placed first, it would take precedence. I also
tried moving
it to after the WSGIScriptAlias line, but it made no
difference. Any
ideas?
Thanks,
Steve
<VirtualHost 69.93.29.146>
ServerAlias www.missedventures.com
ServerAdmin webmaster missedventures.com
DocumentRoot /home/missed/public_html
ServerName missedventures.com
User missed
Group missed
BytesLog
/usr/local/apache/domlogs/missedventures.com-bytes_log
CustomLog /usr/local/apache/domlogs/missedventures.com
combined
ScriptAlias /cgi-bin/ /home/missed/public_html/cgi-bin/
Alias /images/ /home/missed/django/projectsmt/images/
<Directory /home/missed/django/projectsmt/images>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /home/missed/django/projectsmt/pjsmt.wsgi
<Directory /home/missed/django/projectsmt>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Help with httpd.conf for mod_wsgi
and media directory |
  United States |
2007-09-29 18:58:30 |
What version of Apache are you using? The ordering or rule
evaluation
in Apache 1.3 is actually based on order of
LoadModule/AddModule lines
in Apache configuration as at code level can't define the
ordering
dependencies between modules.
BTW, if you comment out the WSGIScriptAlias directive, can
you then
access the images, ie., can Apache actually read the
directory and see
the files?
Graham
On Sep 29, 4:18 am, Steve Potter <steven.pot... gmail.com> wrote:
> Below is the httpd.conf virtual host directive I
created based on the
> directions from themod_wsgiwebsite. Everything is
working fine withmod_wsgiand Django. The problem I am
having is with the media
> directory (I would like it to be /images/).
>
> It appears that the line with Alias /images/ is being
overridden by
> the line with WSGIScriptAlias /. Is this the expected
result? My
> understanding from themod_wsgisite was that if the
Alias /images/
> line was placed first, it would take precedence. I
also tried moving
> it to after the WSGIScriptAlias line, but it made no
difference. Any
> ideas?
>
> Thanks,
>
> Steve
>
> <VirtualHost 69.93.29.146>
> ServerAliaswww.missedventures.com
> ServerAdmin webmas... missedventures.com
> DocumentRoot /home/missed/public_html
> ServerName missedventures.com
>
> User missed
> Group missed
> BytesLog
/usr/local/apache/domlogs/missedventures.com-bytes_log
> CustomLog /usr/local/apache/domlogs/missedventures.com
combined
> ScriptAlias /cgi-bin/
/home/missed/public_html/cgi-bin/
>
> Alias /images/ /home/missed/django/projectsmt/images/
> <Directory
/home/missed/django/projectsmt/images>
> Order deny,allow
> Allow from all
> </Directory>
>
> WSGIScriptAlias /
/home/missed/django/projectsmt/pjsmt.wsgi
> <Directory /home/missed/django/projectsmt>
> Order deny,allow
> Allow from all
> </Directory>
>
> </VirtualHost>
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Help with httpd.conf for mod_wsgi
and media directory |
  United States |
2007-09-29 21:42:24 |
On Sep 29, 6:58 pm, Graham Dumpleton
<Graham.Dumple... gmail.com>
wrote:
> What version of Apache are you using? The ordering or
rule evaluation
> in Apache 1.3 is actually based on order of
LoadModule/AddModule lines
> in Apache configuration as at code level can't define
the ordering
> dependencies between modules.
>
> BTW, if you comment out the WSGIScriptAlias directive,
can you then
> access the images, ie., can Apache actually read the
directory and see
> the files?
>
> Graham
>
Graham,
Thank you very much. I was looking all over for that little
nugget of
information. I simply moved the AddModule mod_wsgi.c line
to before
the one for mod_alias.
BTW, this might be worth mentioning on the mod_wsgi site.
Thanks again,
Steve
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Help with httpd.conf for mod_wsgi
and media directory |
  United States |
2007-09-30 06:13:22 |
On Sep 30, 12:42 pm, Steve Potter <steven.pot... gmail.com> wrote:
> On Sep 29, 6:58 pm, Graham Dumpleton
<Graham.Dumple... gmail.com>
> wrote:
>
> > What version of Apache are you using? The ordering
or rule evaluation
> > in Apache 1.3 is actually based on order of
LoadModule/AddModule lines
> > in Apache configuration as at code level can't
define the ordering
> > dependencies between modules.
>
> > BTW, if you comment out the WSGIScriptAlias
directive, can you then
> > access the images, ie., can Apache actually read
the directory and see
> > the files?
>
> > Graham
>
> Graham,
>
> Thank you very much. I was looking all over for that
little nugget of
> information. I simply moved the AddModule mod_wsgi.c
line to before
> the one for mod_alias.
>
> BTW, this might be worth mentioning on the mod_wsgi
site.
Have fixed ConfigurationGuidelines document and added new
section to
InstallationIssues explaining it in more detail.
Graham
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|