LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-18-2010, 12:26 PM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not incl


I am getting following error

"Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a
module not included in the server configuration"

Saw this thread

in /etc/apache2/mods-enabled/
I see
Code:
alias.conf       authz_default.load    autoindex.conf  deflate.conf
dump_io.load  mime.load         proxy.conf       proxy.load
setenvif.conf
alias.load       authz_groupfile.load  autoindex.load  deflate.load
env.load      negotiation.conf  proxy_html.conf  reqtimeout.conf
setenvif.load
auth_basic.load  authz_host.load       cgid.conf       dir.conf
jk.load       negotiation.load  proxy_html.load  reqtimeout.load
status.conf
authn_file.load  authz_user.load       cgid.load       dir.load
mime.conf     proxy_ajp.load    proxy_http.load  rewrite.load
status.load
and in /etc/apache2/apache2.conf
Code:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
If you see above output of directory it seems that proxy_html is on.

Vhost definition where I did this
Code:
<VirtualHost *:80>

       ServerAdmin webmaster@localhost
       ServerName site4
       ProxyRequests off
       <Proxy *>
       Order deny,allow
       Allow from all
       </Proxy>
       ProxyPreserveHost Off
 ProxyPass /site4   http://myinternal.server.in
       ProxyHTMLURLMap http://myinternal.server.in

 <Location /site4/>
       ProxyPassReverse http://myinternal.server.in
       ProxyHTMLEnable On
       ProxyHTMLURLMap / /site4/
       RequestHeader unset Accept-Encoding
       </Location>

</VirtualHost>
 
Old 07-18-2010, 12:44 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

ProxyHTMLEnable is used for mod_proxy_html version 3.1. If you have an older version of the module, you don't need this directive.

Regards
 
Old 07-18-2010, 01:00 PM   #3
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Oh thanks again for joining here but how do I check that.I mean version number.
 
Old 07-18-2010, 01:06 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use your package manager to find the version.
From this it looks like debian uses version 3.0
 
Old 07-18-2010, 01:16 PM   #5
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
I see thanks for the info.I just checked
its
3.0.1-1

Code:
~# dpkg -s libapache2-mod-proxy-html
Package: libapache2-mod-proxy-html
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 152
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Architecture: amd64
Source: mod-proxy-html
Version: 3.0.1-1
Depends: libc6 (>= 2.4), apache2, apache2.2-common, libxml2 (>> 2.5.10)
Conffiles:
 /etc/apache2/mods-available/proxy_html.load b80285b8d6386238da803d7c2f7d1a31
 /etc/apache2/mods-available/proxy_html.conf ffed547893f1120f841615d2ef990070
Description: Apache2 filter module for HTML links rewriting
 mod_proxy_html is an output filter to rewrite HTML links in a proxy
 situation, to ensure that links work for users outside the proxy. It
 serves the same purpose as Apache's ProxyPassReverse directive does for
 HTTP headers, and is an essential component of a reverse proxy.
Original-Maintainer: Emmanuel Lacour <elacour@home-dn.net>
Can you provide me a link to
Quote:
Originally Posted by bathory View Post
Hi,

ProxyHTMLEnable is used for mod_proxy_html version 3.1. If you have an older version of the module, you don't need this directive.

Regards
Can you provide me a link.
As you guessed right I am Using Ubuntu 10.04 which is Debian based.
 
Old 07-18-2010, 01:23 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Take a look at the paragraph in red here (line 8)

Regards
 
1 members found this post helpful.
Old 07-18-2010, 01:50 PM   #7
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Man you saved my day .Hatts of to you.

Last edited by tkmsr; 07-18-2010 at 01:54 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid command 'CustomLog', perhaps mis-spelled or defined by a module not included filch Linux - Software 2 05-01-2010 04:09 PM
rtl8187 driver module load error (Invalid module format) j_75080 Linux - Networking 3 07-06-2009 09:37 PM
error: -1 Invalid module format when using insmod with module cross-compiled for arm AndrewShanks Linux - Embedded & Single-board computer 4 10-15-2007 03:50 AM
module.ko: make, install & used many times. Suddenly modprobe=invalid module format?? GrapefruiTgirl Linux - General 16 08-04-2007 05:40 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration