Forum: Ruby on Rails Moving ROOT_RAILS ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
55f28e9c77b35b1539af6be60986b0e4?d=identicon&s=25 Philip Rhoades (Guest)
on 2006-01-09 14:54
(Received via mailing list)
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
 </Directory>

My public/index.html file has in it:

  <li><a href="/index.html">Home page</a>
  <li><a href="/authors/list">Authors</a>
  <li><a href="/books/list">Books</a>

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 Rhoades

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:  phil@pricom.com.au
E28c35323f624b8b9ed8712e25105454?d=identicon&s=25 Ray Baxter (Guest)
on 2006-01-10 06:00
(Received via mailing list)
Philip Rhoades 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
This topic is locked and can not be replied to.