Bug#758750: packages.debian.org: https://packages.debian.org/xul-ext-pdf.js rewrite rule
On Thu, Aug 21, 2014 at 01:54:15AM +0200, Stéphane Blondon wrote:
> Le 20 août 2014 15:03, "Simon Paillard" <spaillard@debian.org> a écrit :
> > Indeed in apache conf:
> > # we never want to rewrite those URLs
> > [..]
> > RewriteRule ^/[^/]+\.css - [L]
> > RewriteRule ^/[^/]+\.js - [L]
> > RewriteRule ^/favicon.ico$ - [L]
> > RewriteRule ^/robots.txt$ - [L]
> > [..]
> > RewriteRule ^/([^/]+)$ /search?keywords=$1 [R,L,NE]
> >
> > As :
> > * we want to keep the url http://pdo/$package working
> > * policy allows package name to end with .css .js or even be named
> favicon.ico
> >
> > --> What about moving static *css and *js to a static dir ?
>
> It's probably a good solution but using http://pdo/static/*.(css,js) will
> be confusing if there is a package named 'static'.
The regex allows to identify whether the is '/' or not, which is not allowed by
policy in package name.
https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Source
--
Simon Paillard
Reply to: