Proxy Problem

When I tried to use proxy, I got this error:

No protocol handler was valid for the URL /cgi-bin/tools/stats.cgi. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. [Mon May 19 23:48:07 2014] [warn] proxy:

Status: 
Active

Comments

Howdy -- it's possible one of the proxy modules isn't loaded in Apache. What is the output of this command:

grep proxy_ /etc/httpd/conf/httpd.conf

bislinks's picture
Submitted by bislinks on Tue, 05/20/2014 - 08:46 Pro Licensee

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

The usual cause for the problem you're describing is that one or more of the Proxy modules isn't installed.

However, in your case, I do see the required dependencies listed in Apache.

So I'm not entirely certain what might be causing that :-)

I'm curious if maybe Apache throws an error when it's restarted, maybe there's some kind of configuration issue that's preventing the modules from loading properly.

If you restart Apache with this command:

/etc/init.d/httpd restart

Do you see any errors on the command line, or in the main Apache error log? You can see the Apache error log in /var/log/httpd/error_log.

Also, what is the output of this command:

rpm -qa | grep httpd

bislinks's picture
Submitted by bislinks on Wed, 05/21/2014 - 11:19 Pro Licensee

No errors on the command line.

output of tail /var/log/httpd/error_log immediately after running command /etc/init.d/httpd restart PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 [Wed May 21 11:31:31 2014] [notice] caught SIGTERM, shutting down [Wed May 21 11:31:32 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed May 21 11:31:32 2014] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Wed May 21 11:31:32 2014] [notice] Digest: generating secret for digest authentication ... [Wed May 21 11:31:32 2014] [notice] Digest: done [Wed May 21 11:31:32 2014] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Wed May 21 11:31:32 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.7 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

rpm -qa | grep httpd httpd-2.2.15-29.el6.vm.1.x86_64

httpd-tools-2.2.15-29.el6.vm.1.x86_64