Friday 15 February 2013

nginx - Rails app not accessible through subdomain -



nginx - Rails app not accessible through subdomain -

i have deployed rails 4 app onto digitalocean server. stack nginx-unicorn-ubuntu 14.04.

i have domain @ abc.com ( , domain has website hosted elsewhere ) created subdomain called support.abc.com, , pointed digitalocean server.

when head support.abc.com, result:

<!doctype html public "-//w3c//dtd html4.01//en""http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <title>support.abc.com</title> </head> <frameset rows="100%,*" border="0"> <frame src="http://<ip address of droplet>" frameborder="0" /> <frame frameborder="0" noresize /> </frameset> <!-- pageok --> <!-- 03 --> <!-- --> </html>

when access app through ip address of droplet, app works fine. when head support.abc.com above page, blank page.

how create work?

found solution. problem wasn't rails. client had "forwarded" subdomain ip instead of adding record.

ruby-on-rails nginx unicorn digital-ocean

No comments:

Post a Comment