http.conf
去掉前面的#號
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
然後在vhosts.conf配置檔案里加入如下程式碼
<VirtualHost *:80> DocumentRoot "D:\webser\www" ServerName test.com ServerAlias ErrorLog "logs/test.com.error.log" CustomLog "logs/test.com.access.log" common <Directory "D:\webser\www"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> ProxyPass / http://123.123.123.123:565/ ProxyPassReverse / http://123.123.123.123:565/ </VirtualHost>