I created a sub domain (http://gs.operationgs.com) and assigned an application (Rails) to it, with the URL path pointed to /webapps/gs/hello_world/public, and other various combinations, and receive the error 'There is no application mounted at the root of this domain. ' I checked the nginx.conf file and it is pointed to the correct path root path (root /home/greyskullqs/webapps/gs/hello_world/public; ) and still get the no application mounted error. I am at a loss. What am I doing wrong? asked 12 Jan '11, 19:14 Matt Finch F... |
The URL path is the URL that the application will be available on. It is not related in any way to the application's path on the disk. By choosing "http://gs.operationgs.com" with a URL path of "/webapps/gs/hello_world/public", your application is now available at:
Which is probably not what was intended. Furthermore, the application will still be served from the root directory of the web application; that is to say, the document root is still "/webapps/gs". The URL Path only affects the URL. To host your "gs" Rails application at http://gs.operationgs.com/, simply use a URL Path of "/". As an aside, if you are not using Rails, but instead a static or PHP site, you can still do what you suggested specifically (making $HOME/webapps/gs/hello_world/public available on http://gs.operationgs.com/); you will want to:
answered 12 Jan '11, 20:11 ryans ♦♦ |
The path must be / not the full path to the rails app itself answered 12 Jan '11, 20:08 Matt Finch F... |