2012-06-27 106 views
1

我有一個管理多個域的內部Web服務器(192.168.1.2)。 現在我需要在DMZ多一個服務器,充當反向代理(這是一個Apache 2.2.3,IP 192.168.1.3和一個更多的接口與靜態互聯網IP)Apache默認代理

我需要這個Apache服務器應該代理任何從域名互聯網來我的內部Web服務器,除了一個域(this.example.com)

A排序架構:

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

我一定要建立在這個Apache代理什麼樣的配置?我讀到PROXYPASS和類似的字符串,但我不明白

如何代理「默認的」我的內部Web服務器...謝謝你的幫助

回答

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>