0

独立してアクセスできるようにする必要がある roundcubemail と owncloud を実行します。Owncloud は、URL $rcmail_config['owncloud_url'] = ' https://webmail.whitecube.com/owncloud ';のプラグを介して roundcubemail 内に表示されます。- この URL を変更できないか、プラグインが壊れています。cloud.example.com を指すことができないか、壊れています。サーバーが roundcubemail と owncloud の両方にアクセスできるように、rouncube の webroot を「/var/www/html/」に設定する必要がありました。

<VirtualHost 172.21.11.48:443>
    ServerAlias      "webmail.example.com"
    DocumentRoot    "/var/www/html/"
</VirtualHost>  

<VirtualHost 172.21.11.48:443>
   ServerAlias   "cloud.whitecube.com"
   DocumentRoot    "/var/www/html/owncloud"
 </VirtualHost>

セットアップは機能しますが、ユーザーは入力する必要があります

       http://webmail.example.com/rouncubemail, I'd like to make it available on 
       http://webmail.whitecube.com.

これを達成する最良の方法は何ですか?

/ を /roundcubemail にエイリアスできますか?

URL を書き換えて roundcubemail を追加する必要がありますか?

それともリダイレクトする必要がありますか?

私には 2 つの問題があります。1 つ目はどのアプローチを取るべきか、2 つ目はコマンドの構文です。Nginxを介してサイトを内部および外部で利用できるようにする必要があり、グーグルで検索しましたが、これをうまく処理することはできません。最も感謝して受け取ったヒントやヘルプ。

4

1 に答える 1

0

Apache仮想ホスト構成セクションを表示しているため、ここで何が問題なのかわかりません..


URL全体を入力せずにnginxを介してWebメールラウンドキューブにアクセスするには、nginx構成でインデックスフィールドを指定するだけです.nginxのサンプル構成は次のとおりです。

server {
    server_name webmail.example.com;
    root /var/www/html/;
    index index.html index.htm index.php;
    location  ~ [^/]\.php(/|$){
             try_files $uri $uri/ /index.php;
             fastcgi_split_path_info ^(.+?\.php)(/.*)$;
             if (!-f $document_root$fastcgi_script_name) {return 404;}
             fastcgi_pass unix:/var/run/php5-fpm.sock;
             fastcgi_index index.php;
             include fastcgi_params;
     }
}

ここの場所セクションは、任意の file.php を unix ソケットに渡すように構成されています:
unix:/var/run/php5-fpm.sock

于 2014-01-23T14:21:09.330 に答える