perl - Catalyst not redirecting urls for beta.domain.com -


i'm using catalyst web app i'm building, cannot redirect properly. can redirect fine domains http://www.domain.com/, if have subdomain http://beta.domain.com/, not redirect correctly. instance:

$c->res->redirect('http://beta.domain.com/account'); 

will redirect to:

http://beta.domain.com/.domain.com/account 

is i'm doing wrong, or there issue catalyst? strangest part not have behavior whenever use domains not subdomains. know issue or has run before? thanks!

update

i believe issue nginx. using nginx load balancer , passing requests catalyst app through it. whenever access catalyst app directly, there no issue. there must doing wrong in nginx configuration screwing redirects. here nginx configuration:

server {      listen 80;      server_name  beta.*;     location / {         proxy_set_header host $host;        proxy_pass       http://beta; #beta1        proxy_redirect   http://beta http://$host/; #change me        proxy_set_header x-forwarded-for $remote_addr;    }    }  

does see issue or have ideas?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -