Igor Cicimov | 1 Feb 2010 02:19
Picon

mod_proxy_html v3.1.2 fails to install on Solaris10

# /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a mod_proxy_html.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/usr/local/include/libxml2  -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c:66:25: mod_xml2enc.h: No such file or directory
mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:904: error: `ENCIO_OUTPUT' undeclared (first use in this function)
mod_proxy_html.c:904: error: (Each undeclared identifier is reported only once
mod_proxy_html.c:904: error: for each function it appears in.)
mod_proxy_html.c: In function `mod_proxy_html':
mod_proxy_html.c:1215: error: `apr_OFN_xml2enc_charset_t' undeclared (first use in this function)
mod_proxy_html.c:1215: error: syntax error before ')' token
mod_proxy_html.c:1216: error: `apr_OFN_xml2enc_filter_t' undeclared (first use in this function)
mod_proxy_html.c:1216: error: syntax error before ')' token
mod_proxy_html.c: In function `proxy_html_insert':
mod_proxy_html.c:1230: error: `ENCIO_INPUT_CHECKS' undeclared (first use in this function)
apxs:Error: Command failed with rc=65536

The apache is 2.2.13 and the apr is apache built in. Any suggestions?

Thanks,

Igor

Eric Covener | 1 Feb 2010 02:28
Picon
Gravatar

Re: mod_proxy_html v3.1.2 fails to install on Solaris10

On Sun, Jan 31, 2010 at 8:19 PM, Igor Cicimov <icicimov <at> gmail.com> wrote:
> # /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a
> mod_proxy_html.c

> mod_proxy_html.c:66:25: mod_xml2enc.h: No such file or directory

Try just adding -I.

--

-- 
Eric Covener
covener <at> gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Igor Cicimov | 1 Feb 2010 02:46
Picon

Re: mod_proxy_html v3.1.2 fails to install on Solaris10

Thanks for your reply Eric. Here is what I get now (if I understood your email correctly)

# /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a -l. mod_proxy_html.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/usr/local/include/libxml2  -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c:66:25: mod_xml2enc.h: No such file or directory
mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:904: error: `ENCIO_OUTPUT' undeclared (first use in this function)
mod_proxy_html.c:904: error: (Each undeclared identifier is reported only once
mod_proxy_html.c:904: error: for each function it appears in.)
mod_proxy_html.c: In function `mod_proxy_html':
mod_proxy_html.c:1215: error: `apr_OFN_xml2enc_charset_t' undeclared (first use in this function)
mod_proxy_html.c:1215: error: syntax error before ')' token
mod_proxy_html.c:1216: error: `apr_OFN_xml2enc_filter_t' undeclared (first use in this function)
mod_proxy_html.c:1216: error: syntax error before ')' token
mod_proxy_html.c: In function `proxy_html_insert':
mod_proxy_html.c:1230: error: `ENCIO_INPUT_CHECKS' undeclared (first use in this function)
apxs:Error: Command failed with rc=65536

Same without dot

# /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a mod_proxy_html.c -l
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -I/usr/local/include/libxml2  -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c:66:25: mod_xml2enc.h: No such file or directory
mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:904: error: `ENCIO_OUTPUT' undeclared (first use in this function)
mod_proxy_html.c:904: error: (Each undeclared identifier is reported only once
mod_proxy_html.c:904: error: for each function it appears in.)
mod_proxy_html.c: In function `mod_proxy_html':
mod_proxy_html.c:1215: error: `apr_OFN_xml2enc_charset_t' undeclared (first use in this function)
mod_proxy_html.c:1215: error: syntax error before ')' token
mod_proxy_html.c:1216: error: `apr_OFN_xml2enc_filter_t' undeclared (first use in this function)
mod_proxy_html.c:1216: error: syntax error before ')' token
mod_proxy_html.c: In function `proxy_html_insert':
mod_proxy_html.c:1230: error: `ENCIO_INPUT_CHECKS' undeclared (first use in this function)
apxs:Error: Command failed with rc=65536

Cheers,

Igor

On Mon, Feb 1, 2010 at 12:28 PM, Eric Covener <covener <at> gmail.com> wrote:
On Sun, Jan 31, 2010 at 8:19 PM, Igor Cicimov <icicimov <at> gmail.com> wrote:
> # /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a
> mod_proxy_html.c

> mod_proxy_html.c:66:25: mod_xml2enc.h: No such file or directory

Try just adding -I.

--
Eric Covener
covener <at> gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
  "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Eric Covener | 1 Feb 2010 03:06
Picon
Gravatar

Re: mod_proxy_html v3.1.2 fails to install on Solaris10

On Sun, Jan 31, 2010 at 8:46 PM, Igor Cicimov <icicimov <at> gmail.com> wrote:
> Thanks for your reply Eric. Here is what I get now (if I understood your
> email correctly)
>
> # /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a -l.

blame fonts!  Capital I as in Aye or eye.

>> Try just adding -I.

--

-- 
Eric Covener
covener <at> gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Sander Temme | 1 Feb 2010 06:34
Picon
Favicon

Re: mod_proxy_html v3.1.2 fails to install on Solaris10


On Jan 31, 2010, at 5:19 PM, Igor Cicimov wrote:

> # /usr/local/apache2/bin/apxs -c -I/usr/local/include/libxml2 -i -a mod_proxy_html.c
> /usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DSOLARIS2=10
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2
-I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include 
-I/usr/local/include/libxml2  -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo
> mod_proxy_html.c:66:25: mod_xml2enc.h: No such file or directory

Where on your system lives mod_xml2enc.h?  

S.

--

-- 
Sander Temme
sctemme <at> apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

Attachment (smime.p7s): application/pkcs7-signature, 2212 bytes
Emmanuel Bailleul | 1 Feb 2010 10:01
Picon
Favicon

RE: Apache reverse proxy / mod_rewrite behaviour

> -----Message d'origine-----
> De : Raymond Zeilstra [mailto:Raymond <at> wannahaves.nl]
> Envoyé : vendredi 29 janvier 2010 10:49
> À : users <at> httpd.apache.org
> Objet : [users <at> httpd] Apache reverse proxy / mod_rewrite behaviour
> 
> 
> 
> Hello,
> 
> I'm trying to redirect visitors from certain countries using GeoIP. I'm
> using Apache reverse proxy and pound as loadbalancer:
> 
> Ubuntu Server 9.01 64bits
> Apache 2.2.11 (mod_proxy, mod_proxy_http, mod_cache, mod_disk_cache,
> mod_rewrite, mod_geoip)
> 
> The problem I'm encountering is that the first time a request is being
> rewritten and redirected, but after a few times it's ignoring the
> rewrite rules.
> Here's the Apache config:
> 
> <Virtualhost 1.2.3.4:80>
> 
> GeoIPEnable On
> GeoIPScanProxyHeaders On
> GeoIPDBFile /www/GeoIP.dat
> 
> RewriteEngine On
> 
> RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(nl|be)$ [NC]
> RewriteCond %{HTTP_HOST} !^(nl|be)\.domain\.com$ [NC]
> RewriteRule ^(.*)$ http://www.domain.com/$1 [L]
> 
> LogFormat "%{X-Forwarded-For}i %{Host}i %l %u %t \"%r\" %>s %b
> \"%{Referer}i\" \"%{User-Agent}i\" %D"
> TransferLog /apache/logs/www.domain.com.access.log
> ErrorLog /apache/logs/www.domain.com.error.log
> 
> ProxyRequests Off
> 
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
> 
> ProxyPass / http://127.0.0.1:8080/
> ProxyPassReverse / http://127.0.0.1:8080/
> ProxyPreserveHost On
> 
> CacheRoot /cachedisk
> CacheEnable disk /
> CacheMaxFileSize 10000000
> CacheDirLevels 5
> CacheDirLength 1
> CacheDisable www.domain.com
> 
> </Virtualhost>
> 
> Now a wget gives me the following result with an empty disk cache:
> 
> # wget http://nl.domain.com/
> Resolving nl.domain.com... 1.2.3.4
> Connecting to nl.domain.com|1.2.3.4|:80... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: http://www.domain.com// [following]
> Resolving www.domain.com... 1.2.3.4
> ...
> 
> This is what I want, but after 2 or 3 times and I assume the request is
> being cached, then this happens:
> 
> # wget http://nl.domain.com/
> Resolving nl.domain.com... 1.2.3.4
> Connecting to nl.domain.com|1.2.3.4|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 36330 (35K) [text/html]
> Saving to: `index.html'
> 
> Also in the first case the request is being logged in the Apache access
> log, but the second one I can't even find in the access logs.
> So my question is why does the rewriting work with a clean cache disk,
> but doesn't if (at least I assume) data is returned from the disk cache
> and why isn't there a log entry in the access log in the latter case ?
> 
> I hope someone has any ideas where I'm going wrong!
> 
> Thanks,
> Raymond
> 

Maybe : http://httpd.apache.org/docs/2.2/caching.html#overview

(...)
This means that any other stages that might ordinarily happen in the process of serving a request -- for
example being handled by mod_proxy, or mod_rewrite -- won't happen. But then this is the point of caching
content in the first place.
(...)

Emmanuel

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Martin Barry | 1 Feb 2010 10:08
Gravatar

Re: proxy chaining to squid

$quoted_author = "David Cotter" ;
> 
> I have two virtual hosts and a squid proxy running. I want to be able to use
> the squid proxy on port 80 though it is running on 3128.

Why? If you describe a bit more exactly what you are trying to achieve it
would help us help you.

> This does not work I get an error when I set my browser to use
> 111.222.22.22:80 as proxy what I want is for apache to chain to squid.

You almost certainly don't want to configure your browser to use Apache as a
generic proxy.

 
> GET /urlrequested.html HTTP/1.1
> 
> Host: localhost:3128
> ...
> Invalid Request

Well, it's an invalid request. Port numbers don't belong in host headers.

cheers
Marty

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

David Cotter | 1 Feb 2010 11:29
Picon

Re: proxy chaining to squid

n Mon, Feb 1, 2010 at 9:08 AM, Martin Barry <marty <at> supine.com> wrote:
> $quoted_author = "David Cotter" ;
>>
>> I have two virtual hosts and a squid proxy running. I want to be able to use
>> the squid proxy on port 80 though it is running on 3128.
>
> Why? If you describe a bit more exactly what you are trying to achieve it
> would help us help you.
>
>
>> This does not work I get an error when I set my browser to use
>> 111.222.22.22:80 as proxy what I want is for apache to chain to squid.
>
> You almost certainly don't want to configure your browser to use Apache as a
> generic proxy.
>
>
>> GET /urlrequested.html HTTP/1.1
>>
>> Host: localhost:3128
>> ...
>> Invalid Request
>
> Well, it's an invalid request. Port numbers don't belong in host headers.
>

I have a server that runs a web site. I also want that server to host
a squid http proxy for a different project - but squid has to be
listening on port 80 and so does the web server. So What I am trying
do do is send the request appropriately based on domain name. If is is
xyz.com then send it to the web site otherwise  chain it to squid.
Thanks,
David

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Emmanuel Bailleul | 1 Feb 2010 11:33
Picon
Favicon

RE: proxy chaining to squid


> -----Message d'origine-----
> De : David Cotter [mailto:davidcotter <at> gmail.com]
> Envoyé : lundi 1 février 2010 11:30
> À : users <at> httpd.apache.org
> Objet : Re: [users <at> httpd] proxy chaining to squid
> 
> n Mon, Feb 1, 2010 at 9:08 AM, Martin Barry <marty <at> supine.com> wrote:
> > $quoted_author = "David Cotter" ;
> >>
> >> I have two virtual hosts and a squid proxy running. I want to be able
> to use
> >> the squid proxy on port 80 though it is running on 3128.
> >
> > Why? If you describe a bit more exactly what you are trying to achieve
> it
> > would help us help you.
> >
> >
> >> This does not work I get an error when I set my browser to use
> >> 111.222.22.22:80 as proxy what I want is for apache to chain to squid.
> >
> > You almost certainly don't want to configure your browser to use Apache
> as a
> > generic proxy.
> >
> >
> >> GET /urlrequested.html HTTP/1.1
> >>
> >> Host: localhost:3128
> >> ...
> >> Invalid Request
> >
> > Well, it's an invalid request. Port numbers don't belong in host
> headers.
> >
> 
> I have a server that runs a web site. I also want that server to host
> a squid http proxy for a different project - but squid has to be
> listening on port 80 and so does the web server. So What I am trying
> do do is send the request appropriately based on domain name. If is is
> xyz.com then send it to the web site otherwise  chain it to squid.
> Thanks,
> David
> 

Hi,

My previous replies have been rejected because tagged as spam ... hope this time it gets through ...

If you need your Apache reverse proxy as a frontend, you should have a look at
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote as a forward proxy would be more
effective than a reverse, the latter only forwards requests to configured origin servers.
Last, but it seems ok in your config, this "forward proxy" setup should be used in the default vhost (the
first one listed).

Regards

Emmanuel

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Brian Mearns | 1 Feb 2010 12:29
Picon

Re: proxy chaining to squid

On Mon, Feb 1, 2010 at 5:33 AM, Emmanuel Bailleul
<Emmanuel.Bailleul <at> telindus.fr> wrote:
>
>
>> -----Message d'origine-----
>> De : David Cotter [mailto:davidcotter <at> gmail.com]
>> Envoyé : lundi 1 février 2010 11:30
>> À : users <at> httpd.apache.org
>> Objet : Re: [users <at> httpd] proxy chaining to squid
>>
>> n Mon, Feb 1, 2010 at 9:08 AM, Martin Barry <marty <at> supine.com> wrote:
>> > $quoted_author = "David Cotter" ;
>> >>
>> >> I have two virtual hosts and a squid proxy running. I want to be able
>> to use
>> >> the squid proxy on port 80 though it is running on 3128.
>> >
>> > Why? If you describe a bit more exactly what you are trying to achieve
>> it
>> > would help us help you.
>> >
>> >
>> >> This does not work I get an error when I set my browser to use
>> >> 111.222.22.22:80 as proxy what I want is for apache to chain to squid.
>> >
>> > You almost certainly don't want to configure your browser to use Apache
>> as a
>> > generic proxy.
>> >
>> >
>> >> GET /urlrequested.html HTTP/1.1
>> >>
>> >> Host: localhost:3128
>> >> ...
>> >> Invalid Request
>> >
>> > Well, it's an invalid request. Port numbers don't belong in host
>> headers.
>> >
>>
>> I have a server that runs a web site. I also want that server to host
>> a squid http proxy for a different project - but squid has to be
>> listening on port 80 and so does the web server. So What I am trying
>> do do is send the request appropriately based on domain name. If is is
>> xyz.com then send it to the web site otherwise  chain it to squid.
>> Thanks,
>> David
>>
>
> Hi,
>
> My previous replies have been rejected because tagged as spam ... hope this time it gets through ...
>
> If you need your Apache reverse proxy as a frontend, you should have a look at
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote as a forward proxy would be more
effective than a reverse, the latter only forwards requests to configured origin servers.
> Last, but it seems ok in your config, this "forward proxy" setup should be used in the default vhost (the
first one listed).
>
> Regards
>
> Emmanuel
>

Do you want a forward proxy or reverse proxy? Based on your config, it
looks like you have it set up for reverse proxy. But if you're
configuring your browser to know about the proxy, then it's a forward
proxy. Not sure if this is the specific problem you're seeing, but I
think it will be eventually.

Hope that helps,
-Brian

--

-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Gmane