definitely they're being served by apache right now.
I don't know how Opera can still receive files with the header, it's plain
impossible (if the same url is requested by it)
I don't know why the aliasmatch doesn't work for static version (nothing
seems wrong glancing at it)...I don't have an apache right now to test it:
if you spot the error report it back so we can correct the docs about it.
Il giorno venerdì 31 maggio 2013 16:10:11 UTC+2, Andriy ha scritto:
>
> Thank you, I did this and I think its Apache serving static files now,
> because all headers are OK. But if I make request for static file in Opera
> it has *X-Powered-By: web2py *header...
>
> Also I had response.static_version set in model file and now I have
> problem with it. I`m reading in web2py manual now, that I need to use this
> line with AliasMatch and response.static_version:
> *AliasMatch ^/([^/]+)/static/(?:/_[\d]+.[\d]+.[\d]+)?(.*)
> /home/www-data/web2py/applications/$1/static/$2*
> but it still does not work. Half of the .css files have version string -
> "_0.0.6" and return "not found" error. Other half for some reason does not
> have version string, I`m attaching the screenshot.
> So I had to remove response.static_version from model.
>
> Here is my httpd.conf:
> NameVirtualHost *:80
> <VirtualHost *:80>
> DocumentRoot "d:/web2py/applications"
> ServerName autosim.ru
>
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^www\.autosim\.ru [NC]
> RewriteCond %{HTTP_HOST} !^$
> RewriteRule ^/?(.*) http://www.autosim.ru/$1 [L,R,NE]
>
> <Directory "d:/web2py">
> AllowOverride None
> Order allow,deny
> Deny from all
> </Directory>
>
> AliasMatch ^/([^/]+)/static/(?:/_[\d]+.[\d]+.[\d]+)?(.*)
> d:/web2py/applications/$1/static/$2
> <Directory d:/web2py/applications/*/static/>
> Options -Indexes
> Order Allow,Deny
> Allow from all
> </Directory>
>
> <Location "/">
> Order deny,allow
> Allow from all
> </Location>
>
> WSGIScriptAlias / "d:/web2py/wsgihandler.py"
>
> </VirtualHost>
>
>
> <https://lh4.googleusercontent.com/-2rY7cs9-MBQ/UaiuyWbmMFI/AAAAAAAAAA8/8ol73yGYUv8/s1600/static.jpg>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.