|
261.
|
|
|
Modify the <filename>/etc/apache2/sites-available/default</filename> configuration file to setup your domains.
|
|
|
|
ドメインを設定するには、<filename>/etc/apache2/sites-available/default</filename> 設定ファイルを変更してください。
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:968(para)
|
|
262.
|
|
|
The first thing to change is the <emphasis>DocumentRoot</emphasis> directive:
|
|
|
|
初めに変更するのは、<emphasis>DocumentRoot</emphasis> ディレクティブです:
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:972(para)
|
|
263.
|
|
|
DocumentRoot /path/to/rails/application/public
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
DocumentRoot /path/to/rails/application/public
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:976(programlisting)
|
|
264.
|
|
|
Next, change the <Directory "/path/to/rails/application/public"> directive:
|
|
|
|
次に、<Directory "/path/to/rails/application/public"> ディレクティブを変更します:
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:979(para)
|
|
265.
|
|
|
<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 "/path/to/rails/application/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:983(programlisting)
|
|
266.
|
|
|
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:
|
|
|
|
Apache の <application>mod_rewrite</application> モジュールを使えるようにするべきです。<application>mod_rewrite</application> モジュールを使えるようにするためには、ターミナルプロンプトで以下のコマンドを入力してください。
|
|
Translated by
Takayuki YAMAGUCHI
|
|
Reviewed by
Fumihito YOSHIDA
|
|
|
|
Located in
serverguide/C/web-servers.xml:993(para)
|
|
267.
|
|
|
sudo a2enmod rewrite
|
|
|
|
sudo a2enmod rewrite
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:999(command)
|
|
268.
|
|
|
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:
|
|
|
|
最後に、 <filename>/path/to/rails/application/public</filename> と <filename>/path/to/rails/application/tmp</filename> ディレクトリのオーナシップを<application>Apache</application>プロセスを実行しているユーザに変更する必要があります:
|
|
Translated and reviewed by
greentea
|
|
|
|
Located in
serverguide/C/web-servers.xml:1002(para)
|
|
269.
|
|
|
sudo chown -R www-data:www-data /path/to/rails/application/public
|
|
|
|
sudo chown -R www-data:www-data /path/to/rails/application/public
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:1008(command)
|
|
270.
|
|
|
sudo chown -R www-data:www-data /path/to/rails/application/tmp
|
|
|
|
sudo chown -R www-data:www-data /path/to/rails/application/tmp
|
|
Translated and reviewed by
Shushi Kurose
|
|
|
|
Located in
serverguide/C/web-servers.xml:1009(command)
|