# Multi Web Apps

**URL:** <https://www.ruby-forum.com/t/multi-web-apps/95263>\
**Category:** Rails\
**Created:** [January 15, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/multi-web-apps/95263 "2006-01-15T21:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micpringle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@micpringle](https://www.ruby-forum.com/u/micpringle)\
**Post date:** [January 15, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/multi-web-apps/95263/1 "2006-01-15T21:04:45Z")

</div>

Hi,

I’ve just setup Ruby on Rails using the guide I found at

> **[,成人电影在线观看,少妇被三个黑人4P到惨叫,国产毛片精品一区二区色欲](http://www.fo64.com/articles/2005/10/20/rails-on-breezy)**
>
> ,成人电影在线观看,少妇被三个黑人4P到惨叫,国产毛片精品一区二区色欲,亚洲AV在线观看,久久久国产精品免费A片蜜芽广,国产精品毛片VA一区二区三区,免费观看又色又爽又黄的,麻豆国产AV超爽剧情系列,久久久亚洲精品无码麻豆,人妻熟女久久久久久久

And was just wondering if it’s possible to host PHP on the same box as  
well !?

I don’t seem to be able to find any info on this so any help would be  
greatly appreciated.

I’m running Apache2 on Ubuntu Linux 5.10 (PPC version)

Thanks

Mic

---

<div class="post-metadata">

**Author:** ![micpringle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@micpringle](https://www.ruby-forum.com/u/micpringle)\
**Post date:** [January 15, 2006, 9:50pm UTC](https://www.ruby-forum.com/t/multi-web-apps/95263/2 "2006-01-15T21:50:04Z")

</div>

It certainly is possible. Just try to install both, and change the  
webserver www/htdocs directory to yourapp/public.

I think that will work.

Jules

---

<div class="post-metadata">

**Author:** ![micpringle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@micpringle](https://www.ruby-forum.com/u/micpringle)\
**Post date:** [January 15, 2006, 10:35pm UTC](https://www.ruby-forum.com/t/multi-web-apps/95263/3 "2006-01-15T22:35:52Z")

</div>

Mic Pringle wrote:

> And was just wondering if it’s possible to host PHP on the same box as  
> well !?

You can host all manner of dynamic and static sites on the same box:  
ruby, php, java,  
perl, cgi, etc. The problem is that, unless you want to make your end  
users put port  
numbers in their urls (e.g. [http://myhost.com:3000/](http://myhost.com:3000/)), you need to have  
something  
responding on port 80 that will internally redirect the request to the  
right app/process.

You can do this using apache’s vhost abilities, mod\_rewrite, mod\_proxy,  
etc. I’m sure  
LigHTTPD has similar capabilities. There’s probably documentation on  
this in the ruby docs  
somewhere, but really, if you’re gonna use Apache, you should spend some  
quality time with  
the apache docs.

b
