I assume so.  How would I confirm?

The configuration that is presented in the free manual chapters under
the deployments recipes section is what I followed to create my
config.  In that example configuration static files are supposed to be
handled entirely by apache and bypass WSGI altogether.  This has not
worked for me.

### for requests on port 80
NameVirtualHost *:80
<VirtualHost *:80>
### set the servername
ServerName example.com
### alias the location of applications (for static files)
Alias / /home/web2py/applications/
### setup WSGI
WSGIScriptAlias / /home/web2py/wsgihandler.py
WSGIDaemonProcess web2py user=www-data group=www-data \
                                               home=/home/web2py/ \
                                               processes=10 maximum-
requests=500
### static files do not need WSGI
<LocationMatch "ˆ(/[\w_]*/static/.*)">
      Order Allow,Deny
      Allow from all
</LocationMatch>
### everything else goes over WSGI
<Location "/">
      Order deny,allow
      Allow from all
      WSGIProcessGroup web2py
</Location>
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /var/log/apache2/access.log common
</VirtualHost>

I had to comment out the Alias directive for the WSGI parsing to even
work.  Once that was done I could easily serve images of the
flavors .png or .jpeg but .svg keeps displaying the source as I've
described.  Since these files are merely XML it would be nice to be
able to run them through the web2py framework and have dynamic
content.  But for now I'd be happy just to get the thing to work
without having to make a separate vhost purely for .svg files.

Any further input is indeed appreciated.


On Apr 6, 3:34 pm, bsnipes <snipes.br...@gmail.com> wrote:
> On Apr 6, 2:40 pm, zxynax <zxy...@gmail.com> wrote:
>
> > Thanks for your prompt attention.
>
> > OS is Ubuntu and the mime.types has the images/svg+xml definition and
> > it is uncommented.  I can even serve svg images if I use a vhost that
> > does not utilize WSGI.
>
> Haven't setup WSGI yet. I will ( I hope ) be putting web2y under
> Apache tomorrow so will try a served up svg file from it. Is web2py
> streaming the svg file to you (from the download function)?
>
> Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to