We help IT Professionals succeed at work.

Apache 1.3 Proxy Invalid command 'ProxyPreserveHost', perhaps mis-spelled or defined by a module not included in the server configuration

qlc
qlc asked
on
Hi,

I'm inherited Apache 1.3.39 on FreeBSD 6.2 Release that was installed from ports and it is runing a bunch a vhosts. Upgrading at this time is not an option. I need to add a vhost that is a proxy.

The following is in my httpd.conf:
LoadModule proxy_module       libexec/apache/libproxy.so
AddModule mod_proxy.c

Open in new window


I have the module in libexec directory:
-rwxr-xr-x  1 root  wheel  86285 Jan  9  2008 /usr/local/libexec/apache/libproxy.so

Open in new window


I add the folllowing to httpd.conf:
<VirtualHost *:*>
ServerName www.domain.com
ServerAlias domain.com
ProxyPass / http://192.168.0.247/
PoxyPassReverse / http://192.168.0.247/
ProxyPreserveHost On
</VirtualHost>

Open in new window


I get the following error message:
Syntax error on line 1677 of /usr/local/etc/apache/httpd.conf:
Invalid command 'ProxyPreserveHost', perhaps mis-spelled or defined by a module not included in the server configuration

Open in new window


Any help at all would be greatly appreciated since I'm under a very tight deadline.
Comment
Watch Question

Commented:
'ProxyPreserveHost' is not supported in Apache 1.3. It is an Apache 2.0 directive. Removing it made
everything work as required.