Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache AliasMatch recommendation from the book is still required/applies? #421

Open
jcrmatos opened this issue Apr 10, 2019 · 0 comments
Open

Comments

@jcrmatos
Copy link

Hello,

The book recommends changing (in my case adding) this

AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) "C:/web2py/applications/$1/static/$2"

to Apache conf when caching static files with

    response.static_version = '0.0.0'
    response.static_version_urls = True

However, I don't see any change and everything works with or without the AliasMatch.

The Apache access.log always (with and without the AliasMatch) shows

192.168.56.1 - - [09/Apr/2019:23:15:38 +0100] "GET /ajc/static/_0.0.0/css/web2py-bootstrap4.css HTTP/1.1" 200 8372
192.168.56.1 - - [09/Apr/2019:23:15:38 +0100] "GET /ajc/static/_0.0.0/css/bootstrap.min.css HTTP/1.1" 200 144877
192.168.56.1 - - [09/Apr/2019:23:15:38 +0100] "GET /ajc/static/_0.0.0/js/web2py-bootstrap4.js HTTP/1.1" 200 3029
192.168.56.1 - - [09/Apr/2019:23:15:38 +0100] "GET /ajc/static/_0.0.0/js/modernizr-2.8.3.min.js HTTP/1.1" 200 15514
192.168.56.1 - - [09/Apr/2019:23:15:38 +0100] "GET /ajc/static/_0.0.0/js/bootstrap.bundle.min.js HTTP/1.1" 200 67742

which means that web2py is doing what is supposed to be doing.

Is AliasMatch doing anything?
Is there a way to check if it is still required (or if it is being used) or not?

Thanks,

JM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant