Moving ROOT_RAILS?

People,

I have been going OK making my library app in:

/home/phil/src/ror/library

and using WeBrick to work on it. Now that I have got it into a
satisfactory state I want to move it to:

/var/www/html/library

and use Apache but there seem to be problems . .

I have this at the end of httpd.conf:

Alias /library/ “/var/www/html/library/public/”
Alias /library “/var/www/html/library/public/”
<Directory /library/>
Options ExecCGI
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all

My public/index.html file has in it:

  • Home page
  • Authors
  • Books

    In public/.htaccess I have:

    RewriteEngine On
    RewriteBase /library/

    but when I click on Authors I get:

    Not found
    The requested URL /authors/list was not found on this server.

    I am guessing there is simple fix . . but all my path permutations have
    failed . .

    Thanks,

    Phil.

    Philip R.

    Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
    GPO Box 3411
    Sydney NSW 2001
    Australia
    Mobile: +61:(0)411-185-652
    Fax: +61:(0)2-8221-9599
    E-mail: [email protected]

  • Philip R. wrote:

    and use Apache but there seem to be problems . .

    I have this at the end of httpd.conf:

    Alias /library/ “/var/www/html/library/public/”
    Alias /library “/var/www/html/library/public/”
    <Directory /library/>

    This line should be
    <Directory /var/www/html/library>

    etc.

    Once you’ve done that, try pointing your browser at
    http://your.servername.com/library/

    (assumes you have a route or index.html in /public)

    Ray