Pylons redirect me on domain instead of subdomain
When I go to http:// sub.domain.com
where is my Pylons project, application should redirect me on http:// sub.domain.com/login?redirect=/
, but it's redirecting me on http:// domain.com/login?redirect=/
All redirections are to http:// domain.com/[rest of url]/ instead of http:// sub.domain.com/[rest of url]/ but project is under h开发者_C百科ttp:// sub.domain.com.
No-redirect requests works fine.
I use Pylons 1.0, mod_wsgi and Apache with virtual hosts.
Ok, solved. Just set map.sub_domains = False
精彩评论