# vi /usr/local/etc/apache22/Includes/virtual.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com
ServerAdmin webmaster@example.com
DocumentRoot /usr/local/www/apache22/data
ErrorLog /var/log/httpd-example.com-error.log
CustomLog /var/log/httpd-example.com-access.log combined
ProxyPass / http://192.168.0.200/
ProxyPassreverse / http://192.168.0.200/
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com
ServerAdmin webmaster@example.com
DocumentRoot /usr/local/www/apache22/data
ErrorLog /var/log/httpd-example.com-error.log
CustomLog /var/log/httpd-example.com-access.log combined
ProxyPass / http://192.168.0.200/
ProxyPassreverse / http://192.168.0.200/
</VirtualHost>
下記追加
# vi /usr/local/etc/apache22/httpd.conf
LoadModule proxy_module libexec/apache22/mod_proxy.so
LoadModule proxy_http_module libexec/apache22/mod_proxy_http.so
LoadModule proxy_module libexec/apache22/mod_proxy.so
LoadModule proxy_http_module libexec/apache22/mod_proxy_http.so
# cd /usr/ports/www/apache22/
# make deinstall
# make clean
# make WITH_PROXY_MODULES=yes
# make install
# /usr/local/etc/rc.d/apache22.sh start
# make deinstall
# make clean
# make WITH_PROXY_MODULES=yes
# make install
# /usr/local/etc/rc.d/apache22.sh start
参考
http://mimori.org/~h/tdiary/20041014.html