|
164.
|
|
|
<Directory "/path/to/rails/application/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<Directory "/шлях/до/програми/rails/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1034(programlisting)
|
|
165.
|
|
|
You should also enable the <application>mod_rewrite</application> module for Apache. To enable <application>mod_rewrite</application> module, please enter the following command in a terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1044(para)
|
|
166.
|
|
|
sudo a2enmod rewrite
|
|
|
|
sudo a2enmod rewrite
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1050(command)
|
|
167.
|
|
|
Finally you will need to change the ownership of the <filename>/path/to/rails/application/public</filename> and <filename>/path/to/rails/application/tmp</filename> directories to the user used to run the <application>Apache</application> process:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1053(para)
|
|
168.
|
|
|
sudo chown -R www-data:www-data /path/to/rails/application/public
|
|
|
|
sudo chown -R www-data:www-data /шлях/до/програми/rails/public
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1059(command)
|
|
169.
|
|
|
sudo chown -R www-data:www-data /path/to/rails/application/tmp
|
|
|
|
sudo chown -R www-data:www-data /шлях/до/програми/rails/tmp
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1060(command)
|
|
170.
|
|
|
That's it! Now you have your Server ready for your <application>Ruby on Rails</application> applications.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1063(para)
|
|
171.
|
|
|
See the <ulink url="http://rubyonrails.org/">Ruby on Rails</ulink> website for more information.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1072(para)
|
|
172.
|
|
|
Also <ulink url="http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition">Agile Development with Rails</ulink> is a great resource.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1077(para)
|
|
173.
|
|
|
Another place for more information is the <ulink url="https://help.ubuntu.com/community/RubyOnRails">Ruby on Rails Ubuntu Wiki</ulink> page.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1083(para)
|