[Ilugc] apache rewrite help

  • From: parth.technofreak@xxxxxxxxx (Parthan)
  • Date: Fri Feb 23 10:19:34 2007

balachandar muruganantham wrote:

Hi,

i have been trying something with rewrite which i couldnt get it at
all. need some of your help

my hosting has /home/bala/public_html/ as the document root.
here i have hosted a rails applications under a folder called alpha
which inturns have a folder called public. It does contain the
dispatch.fcgi which gets executed.

what i wanted is that, when i type my site name as www.bala.com it
should pick from this alpha folder. in the address, it should show
only www.bala.com like that. how can i do it?

ScriptAlias ?

A few things my tiny brain can think of..

example:

         ScriptAlias /alpha/ /home/bala/alpha/public/
         <Directory "/home/bala/alpha/public/">
                 AllowOverride None
                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Indexes
                 Order allow,deny
                 Allow from all
         </Directory>

Now modify your /etc/hosts/ to match 127.0.0.1 with bala.com, so 
http://bala.com/alpha/ will start your index.fcgi or whatever from the ;
~/alpha/public folder.


-- 
With Regards

Parthan (TechnoFreak)

.   A Proud GNU/Linux User and Ubuntero
.0.
..0 [Web] https://wiki.ubuntu.com/Parthan
000 [Blog]http://technofreakatchennai.wordpress.com

Other related posts: