# RoR site structure on Apache

**URL:** <https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122>\
**Category:** Rails\
**Created:** [February 23, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122 "2006-02-23T17:42:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [February 23, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122/1 "2006-02-23T17:42:25Z")

</div>

I try a ‘hello world’ demo here,you can see all my codes and structure

[http://www.smtservers.com/demo/](http://www.smtservers.com/demo/)

I want to access the ruby app like this

[http://www.smtservers.com/demo/say/hello](http://www.smtservers.com/demo/say/hello)

but I get a 404 error.

Please let me know why.

I am not sure the site structure is ok or not.Please give me a help

Thanks

Mark

---

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [February 23, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122/2 "2006-02-23T18:33:48Z")

</div>

Your site structure looks okay, and the error you’re getting is not a  
Rails error, so I think Apache has simply not been configured to use  
Rails yet.

---

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [February 23, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122/3 "2006-02-23T18:34:04Z")

</div>

> I am not sure the site structure is ok or not.Please give me a help
> 
> Thanks
> 
> Mark

we’ve been here before…its not that i dont want to help you, its  
just…you seem to read some of the fundamentals.

Your apache structures is NOT ok, [http://www.smtservers.com/demo/](http://www.smtservers.com/demo/) should  
point to the ‘public’ folder in your app…

Mikkel B.

www.strongside.dk - Football Portal(DK)  
[nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
ting.minline.dk - Buy Old Stuff!(DK)

---

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [February 23, 2006, 8:34pm UTC](https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122/4 "2006-02-23T20:34:48Z")

</div>

But this demo folder is under public folder.  
like

public  
|  
demo

RoR have to install on web root?

Thanks

Mark

Mikkel B. wrote:

> > I am not sure the site structure is ok or not.Please give me a help
> > 
> > Thanks
> > 
> > Mark
> 
> we’ve been here before…its not that i dont want to help you, its  
> just…you seem to read some of the fundamentals.
> 
> Your apache structures is NOT ok, [http://www.smtservers.com/demo/](http://www.smtservers.com/demo/) should  
> point to the ‘public’ folder in your app…
> 
> Mikkel B.
> 
> www.strongside.dk - Football Portal(DK)  
> [nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
> ting.minline.dk - Buy Old Stuff!(DK)

---

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [February 23, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/ror-site-structure-on-apache/54122/5 "2006-02-23T20:36:55Z")

</div>

For this kind of site structure  
do you think if I can access it by  
[http://www.smtservers.com/demo/say/hello](http://www.smtservers.com/demo/say/hello)?

Thanks

Mark  
mark sheran wrote:

> But this demo folder is under public folder.  
> like
> 
> public  
> |  
> demo
> 
> RoR have to install on web root?
> 
> Thanks
> 
> Mark
> 
> Mikkel B. wrote:
> 
> > > I am not sure the site structure is ok or not.Please give me a help
> > > 
> > > Thanks
> > > 
> > > Mark
> > 
> > we’ve been here before…its not that i dont want to help you, its  
> > just…you seem to read some of the fundamentals.
> > 
> > Your apache structures is NOT ok, [http://www.smtservers.com/demo/](http://www.smtservers.com/demo/) should  
> > point to the ‘public’ folder in your app…
> > 
> > Mikkel B.
> > 
> > www.strongside.dk - Football Portal(DK)  
> > [nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
> > ting.minline.dk - Buy Old Stuff!(DK)
