1>a2enmod proxy等。 2>在 httpd.conf 文件中,添加: ProxyPass /Test http://127.0.0.1:8080/ ProxyPassReverse /Test http://127.0.0.1:8080 <proxy http://127.0.0.1:8080> AllowOverride None Order Deny,Allow Allow from all </proxy> 步骤2的功能:访问 http://127.0.0.1/Test/ 时,会重新反向代理访至 http://127.0.0 .1:8080 3>重新启动Apache. 注意80或者需要的端口是否开启!