# Creating Application on base directory?

**URL:** <https://www.ruby-forum.com/t/creating-application-on-base-directory/71927>\
**Category:** Rails\
**Created:** [February 22, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/creating-application-on-base-directory/71927 "2006-02-22T18:25:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Blower](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/76d3ee/32.png) [@Jon\_Blower](https://www.ruby-forum.com/u/Jon_Blower)\
**Post date:** [February 22, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/creating-application-on-base-directory/71927/1 "2006-02-22T18:25:29Z")

</div>

Hi,

Just wondering if its possible to set up an application to run on a base  
domain? If so, how?

If you dont know what I mean so when I goto [http://localhost:3000/](http://localhost:3000/) I  
dont  
get the rails information page?

If you still dont get me (Im finding this hard to explain) then hope  
this  
structure helps:

[http://www.myapp.com/](http://www.myapp.com/) [http://www.myapp.com/controller/](http://www.myapp.com/controller/) \<— Would be  
Front page of website

[http://www.myapp.com/edit/](http://www.myapp.com/edit/) \<— Go here to edit posts

htpp://www.myapp.com/post/ \<---- go here to make a new post

etc…

Regards,

Jon

---

<div class="post-metadata">

**Author:** ![Jon\_Blower](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/76d3ee/32.png) [@Jon\_Blower](https://www.ruby-forum.com/u/Jon_Blower)\
**Post date:** [February 22, 2006, 6:35pm UTC](https://www.ruby-forum.com/t/creating-application-on-base-directory/71927/2 "2006-02-22T18:35:37Z")

</div>

that was meant to be ’ config/routes.rb ’ NOT .db! oops, mistype

---

<div class="post-metadata">

**Author:** ![Jon\_Blower](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/76d3ee/32.png) [@Jon\_Blower](https://www.ruby-forum.com/u/Jon_Blower)\
**Post date:** [February 22, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/creating-application-on-base-directory/71927/3 "2006-02-22T18:34:14Z")

</div>

have a look in

config/routes.db

this file controls the incoming requests, look through the comments and  
you should be fine, remember though that it’s first come first serve, by  
which I mean the first ‘match’ made will be routed so keep an eye on the  
order of your routes

hope this helps  
Chris

---

<div class="post-metadata">

**Author:** ![Jon\_Blower](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/76d3ee/32.png) [@Jon\_Blower](https://www.ruby-forum.com/u/Jon_Blower)\
**Post date:** [February 22, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/creating-application-on-base-directory/71927/4 "2006-02-22T18:44:10Z")

</div>

Cheers for the quick response. I’ll take a look now!

Regards

Jon

---

<div class="post-metadata">

**Author:** ![Jon\_Blower](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/76d3ee/32.png) [@Jon\_Blower](https://www.ruby-forum.com/u/Jon_Blower)\
**Post date:** [February 22, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/creating-application-on-base-directory/71927/5 "2006-02-22T18:56:21Z")

</div>

Jon Blower wrote:

> If you dont know what I mean so when I goto [http://localhost:3000/](http://localhost:3000/) I  
> dont get the rails information page?

If you’re just talking about showing a “home” page instead of the rails  
information page,  
there are instructions how to do that on that information page…  
Basically just delete  
or replace the index.html page out of /public and/or set what controller  
to call in routes.rb.

b
