1

複数のドメインを管理する内部 Web サーバー (192.168.1.2) があります。ここで、リバース プロキシとして機能するもう 1 つのサーバーを DMZ に配置する必要があります (IP 192.168.1.3 の Apache 2.2.3 と静的インターネット IP を持つもう 1 つのインターフェイスです)。

この Apache サーバーは、1 つのドメイン (this.example.com) を除いて、インターネットからのドメインを内部 Web サーバーにプロキシする必要があります。

一種のスキーマ:

INTERNET->Apache Proxy->Internal Web server (default for any domain)
INTERNET->Apache Proxy->Differente Web Server (this.example.com)

この Apache Proxy ではどのような構成をセットアップする必要がありますか? Proxypass と同様の文字列について読みましたが、「デフォルト」を内部 Web サーバーにプロキシする方法がわかりませんでした...

ご協力ありがとうございました

4

1 に答える 1

0

これは「デフォルト」で機能していますが、ドメイン this.example.com は機能しません...

NameVirtualHost *:80
<VirtualHost *:80>
    RewriteEngine     On
    RewriteRule       ^(.*)$        http://192.168.1.2$1  [P]
</VirtualHost>

<VirtualHost *:80>
    LogLevel warn
        ServerName this.example.com
    DocumentRoot /var/www/html
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/html/>
        Options Indexes FollowSymLinks MultiViews
        #AllowOverride None
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>
于 2012-06-27T15:43:08.367 に答える