neither for: (r'.*?:https?://subdomain.domain.com:[\w\.]+ /$anything', r'style'),
output: First URL is working ok, second not: 1. http://subdomain.domain.com/profile/albert<http://localhost/profile/albert> Works 2. http://subdomain.domain.com/profile/albert.abril<http://localhost/profile/albert.abril> Invalid request On 25 October 2013 17:28, Albert Abril <albert.ab...@gmail.com> wrote: > I think I need to include here: > > (r'.*?:https?://subdomain.domain.com:\w* /$anything', r'myapp'), > > It should be appended after the 'w', I tried with this options, but no > success: > > 1. (r'.*?:https?://subdomain.domain.com:\w.* /$anything', r'myapp'), > > 2. (r'.*?:https?://subdomain.domain.com:\w\.* /$anything', r'myapp'), > > 3. (r'.*?:https?://subdomain.domain.com:\w\\.* /$anything', r'myapp'), > > > > > On 24 October 2013 17:44, Albert Abril <albert.ab...@gmail.com> wrote: > >> Mm.. nginx with uwgsi looks like is receiving it allright: >> >> [pid: 924|app: 0|req: 1542/3269] 95.21.110.xxx () {46 vars in 1179 bytes} >> [Thu Oct 24 15:35:01 2013] GET /profile/albert.abril => generated 50 bytes >> in 0 msecs (HTTP/1.1 400)3 headers in 116 bytes (1 switches on core 0) >> >> So I guess I should hack into the routes.py. >> >> And I guess I should make a regexp to $profile to the next line in >> routes.py:('/profile/$profile', '/app/profile/index/$profile'), >> >> >> >> >> >> On 24 October 2013 17:07, Albert Abril <albert.ab...@gmail.com> wrote: >> >>> Hi everyone, >>> >>> I'm missing some concepts with URLs, so, I don't know exactly the way I >>> need to resolve this problem. >>> >>> I have this scenario: >>> - nginx >>> - web2py >>> >>> On my web2py application, I have two users: albert and albert.abril >>> >>> First URL is working ok, second not: >>> 1. http://localhost/profile/albert >>> 2. http://localhost/profile/albert.abril >>> >>> My questions are: >>> - Is it permitted to use dots on the URL in last segments? Or should I >>> rewrite to a underscore character or something? >>> - If it's permitted: should I manage it on nginx conf, or in web2py >>> routes.py? >>> >>> Thanks in advance. >>> >>> >>> >>> >> > -- 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.