UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > Ruby on Rails

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-04-2008, 15:28
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default Rails application without port number in URL?

Hi.

I've got a Rails app up and running via Mongrel on port 3000 (shared hosting on a Linux box). Normally, a rewrite directive is placed in a .htaccess file to hide the port number, but this requires mod_proxy which apparently isn't supported on my Dedicated Server "for security reasons" (I was told this by someone over eukhost's online support chat).

Has anyone managed to run a rails app without showing the port in the URL?

Does anyone know if it's really not possible to have mod_proxy enabled? (I've been told inaccurate information over support chat before).

Many thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 14-04-2008, 19:14
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default

Replying to my own post...

If you use mongrel, there is no way to hide the port number unless you can get eukhost to install mod_proxy (in which case, use rewrite rules similar to those given here: http://snippets.dzone.com/posts/show/4086 ).

Note: if you do use mongrel, start it using a different port than the default 3000 because I'm told - by NickJ - that this'll conflict with an existing process. Specify -p [number] when you start it.

You can run Rails through FastCGI. This will not show the port number. See Create Ruby on Rails application under your account
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 19-10-2008, 07:58
Member
 
Join Date: Mar 2008
Posts: 36
Default

Brighter

I have a Semi-Dedicated account and I have been struggling with my pea sized brain and ofcourse with more/less no knowledge on apache.

Do i have to install FastCGI separately. I recently rebuilt my apache to 2.2 selecting fastcgi options. Is there anyway, i can see if fast cgi is already built into apache or is it a separate thing that needs separate installation?.
__________________
Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 19-10-2008, 14:32
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default

You'll have to install mod_fastcgi or mod_fcgid.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 19-10-2008, 14:55
Member
 
Join Date: Mar 2008
Posts: 36
Default

Thank you. I did select mod_fcgi during apache build. So now I am clear that it is already built into apache.

Do I have to put in directives ( such as LoadModule ) in httpd.conf?. if so, what exactly do i have to include?. Do I need to make any additional changes to httpd.conf to make my rails app work?.

By the way, when I created default rails app in my box, it did not create a .htaccess file. Is it mandatory?. if so, what should the contents of it?
__________________
Tutorials
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 19-10-2008, 15:33
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default

You'll have to install the module, add apache config and edit public/.htaccess to use it.

See here: fastcgi in Ruby on Rails
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 19:31.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service