[Rails] rails + apache question

softwareengineer 99 softwareengineer99 at yahoo.com
Mon Feb 6 21:42:34 GMT 2006


Not that my post answers your question, but it may be useful:
  
  I have a mass hosting setup using mod_rewrite and the following lines  of code did the magic for me in routing requests to dispatch.fcgi (I  edited some rules for images and javascripts to keep it short):
  
  I placed them in a .conf for apache.
  
  AddHandler fastcgi-script .fcgi
  AddHandler cgi-script .cgi
  # .....
  RewriteCond  ${lowercase:%{SERVER_NAME}}  domain.com$
  RewriteRule  ^/(.*)$  /path/to/domain.com/docs/public/dispatch.fcgi [QSA,L]
  
  Just thought it *may* be helpful.
  Thanks
  Frank
  

"Berger, Daniel" <Daniel.Berger at qwest.com> wrote:  Hi all,

I've read the symlinks wiki and some other wiki pages relating to Apache
but I'm just not "getting it".

Mandrake Linux (kernel 2.6.8)
Apache 1.3.3

DocumentRoot is "/home/httpd/html"
Application is physically located in
"/home/httpd/applications/foo-1.0.0"
I would like the URL to be "http://host.domain.com/foo"

I've created a "/home/httpd/html/foo" directory.
I've created a link using "ln -s
/home/httpd/applications/foo-1.0.0/public /home/httpd/html/foo"
I added "RewriteBase /foo" to the .htaccess file in
/home/httpd/applications/foo-1.0.0/public

However, when I try to visit http://host.domain.com/foo I get a "cannot
find server" error.  The apache error log shows this:

File does not exist: /home/httpd/html/foo:3000

What am I doing wrong? And how do I get it to just use port 80? I'd
rather not create a separate Apache process, btw, if possible.

Regards,

Dan



_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails


			
---------------------------------
 Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/2235e197/attachment.html


More information about the Rails mailing list