同じサーバーで 2 つのアプリケーションを実行していますが、1 つを URL のサブパスから提供したいと考えています (例):
- foo.com -> /var/www/foo
- foo.com/bar -> /var/www/bar
エイリアスを作成しようとしていますが、機能していません:
<VirtualHost *:80>
ServerAdmin webmaster@foo.com
ServerName foo.com
DocumentRoot /webapps/foo/current/public
<Directory /webapps/foo/current/public>
AllowOverride all
Options -MultiViews
</Directory>
RailsEnv staging
Alias /blog /webapps/blog/current
<Directory /webapps/blog/current>
allow from all
Options +Indexes
</Directory>
これが機能しない理由を知っていますか?
serverpath ディレクティブも試しましたが、成功しませんでした。
これを達成する方法を知っていますか?
前もって感謝します。