cancel
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 http://ni-cr-dev-vm3.pharms-services.com:7782/SampleAnnotationOQ
ProxyPassReverse /SA http://ni-cr-dev-vm3.pharms-services.com:7782/SampleAnnotationOQ

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


3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Apache HTTP.conf Set up

Shalom,

Interesting documents come to mind.

http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/

http://community.thoughtworks.com/posts/1954e8961c/comments

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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.
Matti_Kurkela
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:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#access

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

MK
MK