you should use another syntax to have static files served with 
static_version enabled.

https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-ubuntu.sh#L110

For the ones not really accustomed with regexes, all we're trying to do is 
the following
We have a file .... 
/appname/static/abc.css

we want to serve it as 
/appname/static/abc.css
AND as
/appname/static/_1.2.3/abc.css
OR
/appname/static/_2.3.1/abc.css
etc etc

so....

AliasMatch 
^/([^/]+)/static/*(?:_[\d]+.[\d]+.[\d]+/)?*(.*)/home/www-data/web2py/applications/
$1/static/$2

The *bold red *part is what has been "added" to web2py's scripts to make 
apache serve the same file if there is a _number.number.number "prefix" 
just right after "static".

On Wednesday, October 16, 2013 4:54:42 PM UTC+2, frasse wrote:
>
>
> Hi 
> here is how my config look lik. is it what you think it should be. it is 
> not working . But it works for older version. 
> Thanx
> /F
>
>   AliasMatch ^/([^/]+)/static/(.*) \
>            /var/web2py/applications/$1/static/$2
>   <Directory /var/web2py/applications/*/static/>
>     Order Allow,Deny
>     Allow from all
>   </Directory>
>
>
>
>
>
> Den onsdagen den 16:e oktober 2013 kl. 11:28:17 UTC+2 skrev Niphlod:
>>
>> did you configure your webserver to allow the static files to be served 
>> with folder versioning ?
>>
>> as a quick way to restore things as they were is to remove this line
>>
>>
>> https://github.com/web2py/web2py/blob/master/applications/admin/models/0.py#L84
>>
>> from the file.
>> But, you'll be missing quite an important feature.
>>
>> Il giorno mercoledì 16 ottobre 2013 11:21:50 UTC+2, frasse ha scritto:
>>>
>>> HI 
>>> I upgrade web2py to 2.7.4 from 2.7.3. admin page is not working any more 
>>> please see the attach file.
>>> do you have any idea ?
>>>
>>> Regards
>>> Frasse
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to