Showing results for 
Search instead for 
Did you mean: 

Apache HTTP.conf Set up

Jason Shannon
Occasional Advisor

Apache HTTP.conf Set up

I have just installed Apache 2.0.61 on my Red Hat 4.0 server.

I have edited my httpd.conf in an attempt to allow a ProxyPass:

ProxyRequests On

Order deny,allow
Allow from all

ProxyPass /SA
ProxyPassReverse /SA

When I attempt to start apache I get the following:

[root@ni-cr-svc-rp2 bin]# ./apachectl start
Syntax error on line 1043 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'ProxyPass', perhaps mis-spelled or defined by a module not included in the server configuration

Steven E. Protter
Exalted Contributor

Re: Apache HTTP.conf Set up


Interesting documents come to mind.

Steven E Protter
Owner of ISN Corporation
Jason Shannon
Occasional Advisor

Re: Apache HTTP.conf Set up

Thanks for the articles - but it appears that I have set it up correctly (or at least the same as in the links). It just appears that it does not recognise the ProxyPass command.
Honored Contributor

Re: Apache HTTP.conf Set up

You have ProxyRequests set to On and access control set to allow everything. This would make your server an "open proxy", which is a dangerous configuration if exposed to the public Internet.

Because the proxy module has security implications, it is usually disabled by default in all modern Linux distributions. Misconfigured proxies can be harmful for both you and other people on the Internet.

Please read:

Have you enabled the proxy module earlier in the configuration (i.e. uncommented "LoadModule" line(s) referring to the proxy module)?