2011-12-08 69 views
0

我已經放置了帶有和沒有尾部斜槓的別名,沒有解決方案。我們是否需要更改jboss xml中的任何屬性?Proxy雖然設置正確。無法爲Jboss應用服務器上的靜態內容設置Apache httpd.config

Alias /images/ "c:/images/" 
<Directory "c:/images"> 
    Options Indexes MultiViews 
    AllowOverride None 
    Order allow,deny 
    Allow from all 
</Directory> 


<VirtualHost *> 
ServerName localhost 
<IfModule proxy_module> 
<Proxy *> 
Order allow,deny 
Allow from * 
</Proxy> 
ProxyPass /HelloWeb http://localhost:8080/HelloWeb 
ProxyPassReverse /HelloWeb http://localhost:8080/HelloWeb 
<Location /HelloWeb> 
Order allow,deny 
Allow from all 
</Location> 
</IfModule> 
</VirtualHost> 

回答

1

好吧,我發現答案很久了,但忘了回答它。 (以防有人需要它)

我使用proxypass而不是別名。

ProxyPass /HelloWeb/css http://localhost/Hello/css 
ProxyPassReverse /HelloWeb/js http://localhost/Hello/css 
<Location /HelloWeb/css> 
Order allow,deny 
Allow from all 
</Location>