2011-06-13 41 views

回答

1

如何:

<VirtualHost *:8081> 
    ServerName host.domain.com 
    RewriteEngine  On 
    RewriteRule  ^(.*)$  http://host.domain.com:8081/subdomain/$1 [P] 
</VirtualHost> 
+0

有時不需要國防部重寫,http://httpd.apache.org/docs/current/rewrite/avoid.html,對於simpel重定向重定向指令上這個VirtualHost會更簡單。 – regilero 2011-06-14 12:03:08