On 1 June 2010 14:26, Raghu Maddali <[email protected]> wrote:
> Hi,
>
> I'm following this guide https://help.ubuntu.com/community/RubyOnRails
> to install ror and configure this with apache..I'm facing a problem when
> restarting the apache2 web server following some steps.
> _____________________________________________________________________________
> Now you should point apache to the location of your Ruby app. Create
> something like this in /etc/apache2/sites-available/ror.myhost.com
>
> <VirtualHost *>
>    ServerName ror.myhost.com
>    DocumentRoot /home/myuser/www/mynewapp/public
>    RailsEnv development #It's optional string, but my rails app didn't
> work properly without it.
> </VirtualHost>
>
> Alternatively, you could run rails in a specific sub uri of your current
> host, e.g. localhost. First, make a symbolic link to your rails public
> folder from with var/www (or wherever you have the root of your apache
> www folder), e.g.:
>
> ln -s /home/myuser/www/mynewapp/public /var/www/mynewapp
>
> In case of localhost (which is the default host with a fresh
> ubuntu/apache install) edit default in /etc/apache2/sites-available and
> add:
>
> RailsBaseURI /mynewapp
>
> murb: I had to add RailsEnv development as well to get around the 'no
> route found to match "/rails/info/properties" with {:method=>:get}'
> warning... (can someone elaborate on why?) apparently this is because
> /info/properties is buggy and no longer supported:
> http://www.ruby-forum.com/topic/161924
>
> Save, and enable the rewrite module for apache, and register this
> site... and finally, restart apache.
>
> sudo a2enmod rewrite
> sudo a2ensite ror.myhost.com
> sudo /etc/init.d/apache2 restart
> ____________________________________________________________________________
>
>
> I created a document with ror.myhost.com and added the code as
> given.Also,I registered the site ror.myhost.com and restarted the web
> server...However,I get the following error...
>
> sudo /etc/init.d/apache2 restart
>  * Restarting web server apache2
> Syntax error on line 4 of /etc/apache2/sites-enabled/ror.myhost.com:
> RailsEnv takes one argument, The environment under which a Rails app
> must run.
>                                                                         [fail]

Only guessing, but have you tried removing the comment from your
RailsEnv line?  Perhaps it is not interpreting it as a comment and so
complaining about the number of parameters.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to