We help IT Professionals succeed at work.
Get Started

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
6,079 Views
Last Modified: 2012-06-21
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:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE