WebFaction
Community site: login faq

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...
1125
accept rate: 0%


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:

http://gs.operationgs.com/webapps/gs/hello_world/public

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:

  1. Create a "Symbolic Link to Static/CGI/PHP" application pointing to /home/USERNAME/webapps/gs/hello_world/public (where USERNAME is your username)
  2. Edit your website record and choose a URL Path of "/", so that the Symbolic Link application is available at the the root of the domain.
permanent link

answered 12 Jan '11, 20:11

ryans ♦♦
5.0k103960
accept rate: 43%

The path must be / not the full path to the rails app itself

permanent link

answered 12 Jan '11, 20:08

Matt Finch F...
1125
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108

question asked: 12 Jan '11, 19:14

question was seen: 4,067 times

last updated: 13 Jan '11, 14:35

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM