RE: [users@httpd] webservice clustering trouble

2011-01-17 Thread Lukas Sklenar
Hi Jeroen, actually I am using the latest versions. It just appears to
you that I am not because of the mod_jk-1.2.31-httpd-2.2.3.so filename.

My httpd is version 2.2.17. And as far as I can see on the Tomcat
Connectors download homepage, the latest version of those is 1.2.3.

But I guess the fact that the filename says -httpd-2.2.3 is weird. I
got it from here :
http://apache.mirror.anlx.net//tomcat/tomcat-connectors/jk/binaries/win3
2/jk-1.2.31/

In my conf file I keep all the defaults (except for updating the ips,
ports, and paths to doc root, log file locations, etc.). Since it works
when not running a load test, I assume it is ok.

Here is the bit where I load my module and add some extra properties for
the loadtest:

# Load module
 
LoadModule jk_module snip path/mod_jk-1.2.31-httpd-2.2.3.so
 
# Specify path to worker configuration file
JkWorkersFile snip path/workers.properties
 
# Configure logging and memory
JkLogFile logs/mod_jk.log 
JkLogLevel fine

# loadbalancer is the lb worker
JkMount / loadbalancer 
JkMount /* loadbalancer


# Configure monitoring
JkMount /jkmanager/* jkstatus
Location /jkmanager
Order deny,allow
Deny from all
Allow from localhost
/Location

# And some extra properties for the loadtests
MaxRequestsPerChild 10
ThreadsPerChild 1000
KeepAlive On



I mean it works when asking it to do stuff one by one slowly. But breaks
on the loadtest.

Could 

14-Jan-2011 15:18:45 org.apache.coyote.ajp.AjpMessage processHeader
SEVERE: Invalid message recieved with signature 28276

Mean some sort of network trouble? Headers being corrupted due to too
many of them or something?

Any ideas would be greatly appreciated.

Thanks,

Lukas


__

Lukas Sklenar
t +44 (0)1483 817132 | m +44 (0) 7786 374324 www.detica.com

p.s. The disclaimers get added on automatically ;-)




-Original Message-
From: Jeroen Geilman [mailto:jer...@adaptr.nl] 
Sent: 15 January 2011 23:20
To: users@httpd.apache.org
Subject: Re: [users@httpd] webservice clustering trouble

On 1/14/11 5:29 PM, Lukas Sklenar wrote:
 Hello,

 I have deployed 3 tomcat6.0.29 webapps, each of which exposes a
 webservice, and am using apache2.2 and mod_jk-1.2.31-httpd-2.2.3.so to
 cluster them - a performance exercise.

2.2.3 is quite old.

Also, mod_jk is deprectaed in favour of mod_proxy_ajp.

snipped non-httpd stuff

 I am ready to post my config if need be, but wanted to know if someone
 has come across this before?

You apache httpd config, if relevant to the issue, is welcome.

 I can find some reference in the archives which suggests I should
update
 tomcat/apache/java etc but I have the latest versions already.

No you don't. Apache httpd is at least 14 versions behind.

 This message should be regarded as confidential.

Not really.

 If you have received this email in error

You tell me.

   please notify the sender and destroy it immediately.

Will do!

Idiot disclaimers.

-- 
J.


-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Please consider the environment before printing this email.

This message should be regarded as confidential. If you have received this 
email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy by 
an authorised signatory.  The contents of this email may relate to dealings 
with other companies within the Detica Limited group of companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.


-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Changing apache default port 80 creates problem

2011-01-17 Thread William A. Rowe Jr.
On 1/16/2011 5:09 PM, Γιώργος Κατωποδης wrote:
 That is right. The expected behaviour from the browsers is to look (from 
 default) at port 80.
 I finally solved the problem by changing *nginx* configuration to listen to 
 port 81 and
 apache stayed on port 80.

Just as a footnote, you can always set up multiple IP addresses to the box
(multihomed) and configure each server to accept requests from only one of
the IP addresses.  Note when you do this, none will answer to http://localhost/
unless you configure one to that IP address, as well :)

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] RedirectMatch

2011-01-17 Thread Matus UHLAR - fantomas
On 13.01.11 11:07, Jørn wrote:
 I got a problem with using RedirectMatch.
 
 The following RedirectMatch line works well:
 RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. 
 http://www.dahl-stamnes.net/Foto/r_img.php?img=$1;
 
 But now I want to add another RedirectMatch:
 
 RedirectMatch 301 ^/Foto/show.*album\=(.*)$
 http://some.other.url/album.php?album=$1;

Tried to remove the backslash and quotes?

 But it does not match.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
You have the right to remain silent. Anything you say will be misquoted,
then used against you. 

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] RedirectMatch

2011-01-17 Thread Matus UHLAR - fantomas
 On Thu, Jan 13, 2011 at 5:07 AM, Jørn apache.u...@dahl-stamnes.net wrote:

  The following RedirectMatch line works well:
  RedirectMatch 301 /Foto/Album.*img_([0-9]*)\.
  http://www.dahl-stamnes.net/Foto/r_img.php?img=$1;
 
  But now I want to add another RedirectMatch:
 
  RedirectMatch 301 ^/Foto/show.*album\=(.*)$
  http://some.other.url/album.php?album=$1;

On 13.01.11 07:39, Eric Covener wrote:
 I don't think you can match against the query string 

It's documented in RedirectMatch docs. If it didn't, the first line wouldn't
work even.

 -- you'll need mod_rewrite.

...please, don't use mod_rewrite for something it's not needed for, and don't
advise people to do so.


-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I wonder how much deeper the ocean would be without sponges. 

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] RedirectMatch

2011-01-17 Thread Jørn
On Monday 17 January 2011 11:27, Matus UHLAR - fantomas wrote:
 On 13.01.11 11:07, Jørn wrote:
  I got a problem with using RedirectMatch.
 
  The following RedirectMatch line works well:
  RedirectMatch 301 /Foto/Album.*img_([0-9]*)\.
  http://www.dahl-stamnes.net/Foto/r_img.php?img=$1;
 
  But now I want to add another RedirectMatch:
 
  RedirectMatch 301 ^/Foto/show.*album\=(.*)$
  http://some.other.url/album.php?album=$1;

 Tried to remove the backslash and quotes?

Yes, but the probem is that RedirectMatch only check the string to the left of 
the ?-sign.
I must fix this by chaning the scripts.

-- 
Jørn Dahl-Stamnes
homepage: http://www.dahl-stamnes.net/dahls/

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] RedirectMatch

2011-01-17 Thread Matus UHLAR - fantomas
 On Monday 17 January 2011 11:27, Matus UHLAR - fantomas wrote:
  On 13.01.11 11:07, Jørn wrote:
   I got a problem with using RedirectMatch.
  
   The following RedirectMatch line works well:
   RedirectMatch 301 /Foto/Album.*img_([0-9]*)\.
   http://www.dahl-stamnes.net/Foto/r_img.php?img=$1;
  
   But now I want to add another RedirectMatch:
  
   RedirectMatch 301 ^/Foto/show.*album\=(.*)$
   http://some.other.url/album.php?album=$1;
 
  Tried to remove the backslash and quotes?

On 17.01.11 11:31, Jørn wrote:
 Yes, but the probem is that RedirectMatch only check the string to the left 
 of 
 the ?-sign.
 I must fix this by chaning the scripts.

aha!
So, in this case, you will have to use mod_rewrite...

My apologies to Eric Coverner...
-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Honk if you love peace and quiet. 

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] RedirectMatch

2011-01-17 Thread Jørn
On Monday 17 January 2011 11:35, Matus UHLAR - fantomas wrote:
 On 17.01.11 11:31, Jørn wrote:
  Yes, but the probem is that RedirectMatch only check the string to the
  left of the ?-sign.
  I must fix this by chaning the scripts.

 aha!
 So, in this case, you will have to use mod_rewrite...

Or just rewrite the original scripts so that they do a redirect. I don't want 
to use mod_rewrite in this case :)

-- 
Jørn Dahl-Stamnes
homepage: http://www.dahl-stamnes.net/dahls/

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Log entries

2011-01-17 Thread Rich Bowen


On Jan 14, 2011, at 3:31 AM, Jørn wrote:


Hello,

This may be a bit off-topic but...

During the last months I have noticed this kind of entries in the  
apache log

file:

84.48.198.105 - - [09/Jan/2011:12:41:24 +0100]
GET /dahls/Vin/url(res://C:/Programfiler/Google/Google%20Toolbar/ 
Component/GoogleToolbarDynamic_mui_en_E11712C84EA7E12B.dll/

findy_buttons.png) HTTP/1.1 404 333

217.144.240.150 - - [14/Jan/2011:09:24:39 +0100]
GET /dahls/Nofaq/Trening/url(data:image/ 
png;base64,iVBORw0KGgoNSUhEUgAAADgOCAYAAAB6pd 
%2buAXNSR0IArs4c6QZiS0dEAP8A%2fwD 
%2foL2nkwlwSFlzAAALEwAACxMBAJqcGAd0SU1FB9oGAhENK17O5ogZdEV 
YdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAD6UlEQVRIx82WXWxTdRjGf6fnd 
O3adbZ0VLoP9gFMXZQFNgSWDEkEYtSQkNVg4o2JH9NGJTMk6k01vTIhXshFzTCKE5NFORo 
XXDBs4nTMZHMzSETHDKyQyb7Xbu36dc7p8aaQZm5GNzd8rk7evOf%2fz%2fM%2bz 
%2f99X4E1htcn68v5742mffVRJd19uucqH539lSq3yKuHtlDmkPj99aPYe39kfRoMOqgCJ 
HSdJNRL3AEE%2fB7h3xZFgO6JuRQdl6PE8zfRPzlF71CEojoXFc%2b9SPy3KxjCc 
%2bgCpIE0IilB65YWHFQBfAbUZEIDQGPA7xngDsNgMpFUY0Q0ESHHhKbkM3A9yoFqDceGQ 
pTijWjhXxCAtC6gCWk0BAwLzqkAQsC6TJVDGcKrZdeDXp 
%2fcvki8zeuTH8uO6ehYzRJumxEUBUkyMa 
%2baUDWBVDLNnJJgNE9ixGZiOlckaQAVAWmBdTqBzqxQJ%2fD2KgrTCDzq9clywO 
%2fxZMi1AgcBBbhNPhyJ47TlsGuzjaHRSRRdoKq8AF3XOdvZw1BMQneUMl9iZN4eo3AmRWVwFulvqusAngBOryLBY0AcaPD65LeAFPAk0BLwe57OTnz3i4sc3ruFx2s24MwzoWgaW4tNnPn0JLt37KJ2zwGMgk5X3zd8ONJOX7mGvcK5OEGvT94HNGcs2rjSzrhUUwn4PV1AV4bcm5nwkYDfc3xhbs%2bVWQZH%2btlekc%2fDtRupKrub1uYT7NhWw9bde%2fl2REUSRR56pJT0lxofhM8xaheXVPA1oDPg9zT%2bExmsDqF8hUqmlvi%2bDUs6RWhW5Ov%2bKaxmK5XFLkIzIe7f%2fiBtwypPVZqIRWJ8Ny6x09OEJJs5rrTxn4yJY00NwRU0mtaMLY9kyL3n9clVAb%2fnley8wnyBkkIHrgILm925JGPTJONRDHqaHDQmx2a4Ph4hpFkpcZqZmBhHtbI4wYDfs3%2bNhn5bpqG03LKl1ydXAS97fXJ%2b9jv0Hq6lyK5C%2fBJ6PEjyj2nW2VQGLw5gLKqn92YSxWgjbrRy89ogVosFoyT%2bZUzcurjD65M71oDjCeDzbCIZ5VqAk9mJm9w5zAdPkRx%2bB3H6Y3Kj7TxQMkzLqfe5V71GvttFiduOa3aQc58E6JseJJXSEVhjeH2yvpxN5qVnygj%2fdJQCWxjBAOm0gVRC5MLPdoZnt2F3rsdisTAV7MBlusT3oVK6TOriCv4fIZnsSDlu1IQRNWVGV83kYKFuZzX7PQ1MFOg0j53nh%2bg8qpLg2eogeyJ53JFddDkLtyiZ6%2b%2b674Vu5cZXiIkJdAEMjnvIqzjEjVCS7rmrhOwC0Vwn58fqkIIXeL72Mn8CJn6UfKGeNt4ASUVORK5CYII%3d)

HTTP/1.1 404 1801

I wonder what is causing this? Seem to be some kind of badly  
configured

google feature on the client side, or?


If you look at the data itself, you'll see that it's a png image. It  
looks to me as though you have a file upload form that is getting  
submitted by GET rather than POST. This may be a site problem, or it  
may be a browser bug. Either way, it doesn't appear to matter much,  
since it's resulting in a 404, and Apache is rejecting the request.


--
Rich Bowen
rbo...@rcbowen.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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Number of connections and load

2011-01-17 Thread Tom Jones
Thank you. So, I have read over the docs and while this does provide the 
answers in a strange format, is there any other hacks or cgi etc so that I can 
use to just show the requests currently being processed?

Thanks,
tom

On Jan 8, 2011, at 10:59 AM, Rainer Jung wrote:

 On 08.01.2011 19:30, Tom Jones wrote:
 I would like to query the httpd process to see how many current connections 
 are occurring and what the load level is like. Is this possible?
 
 http://httpd.apache.org/docs/2.2/mod/mod_status.html
 
 Regards,
 
 Rainer
 
 -
 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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org
 


-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Log entries

2011-01-17 Thread Jørn
On Monday 17 January 2011 16:24, Rich Bowen wrote:
 On Jan 14, 2011, at 3:31 AM, Jørn wrote:
 If you look at the data itself, you'll see that it's a png image. It
 looks to me as though you have a file upload form that is getting
 submitted by GET rather than POST. This may be a site problem, or it
 may be a browser bug. Either way, it doesn't appear to matter much,
 since it's resulting in a 404, and Apache is rejecting the request.

There is no upload form in the /dahls/Nofaq path.

I thing it it must be some kind of brower bug. And as you say, it doesn't 
mather much. I'm just curious :)

-- 
Jørn Dahl-Stamnes
homepage: http://www.dahl-stamnes.net/dahls/

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Number of connections and load

2011-01-17 Thread Igor Galić

- Tom Jones tjo...@acworld.com wrote:

 Thank you. So, I have read over the docs and while this does provide

You must've missed the ?auto parameter in your reading then.

 the answers in a strange format, is there any other hacks or cgi etc
 so that I can use to just show the requests currently being
 processed?

See: http://apache.org/server-status?auto

For easily processable output.

 Thanks,
 tom
 
 On Jan 8, 2011, at 10:59 AM, Rainer Jung wrote:
 
  On 08.01.2011 19:30, Tom Jones wrote:
  I would like to query the httpd process to see how many current
 connections are occurring and what the load level is like. Is this
 possible?
  
  http://httpd.apache.org/docs/2.2/mod/mod_status.html
  
  Regards,
  
  Rainer

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Number of connections and load

2011-01-17 Thread Tom Jones
Thanks!


On Jan 17, 2011, at 11:45 AM, Igor Galić wrote:

 
 - Tom Jones tjo...@acworld.com wrote:
 
 Thank you. So, I have read over the docs and while this does provide
 
 You must've missed the ?auto parameter in your reading then.
 
 the answers in a strange format, is there any other hacks or cgi etc
 so that I can use to just show the requests currently being
 processed?
 
 See: http://apache.org/server-status?auto
 
 For easily processable output.
 
 Thanks,
 tom
 
 On Jan 8, 2011, at 10:59 AM, Rainer Jung wrote:
 
 On 08.01.2011 19:30, Tom Jones wrote:
 I would like to query the httpd process to see how many current
 connections are occurring and what the load level is like. Is this
 possible?
 
 http://httpd.apache.org/docs/2.2/mod/mod_status.html
 
 Regards,
 
 Rainer
 
 i
 
 -- 
 Igor Galić
 
 Tel: +43 (0) 664 886 22 883
 Mail: i.ga...@brainsware.org
 URL: http://brainsware.org/
 
 -
 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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org
 


-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] mod_proxy_balancer question

2011-01-17 Thread Tom Jones
Hello,
I have a couple of apps running on Tomcat servers and I would like to use 
mod_proxy_balancer for load balancing and failover. My question has to do with 
performance. I see that there is a mod_proxy_ajp and mod_proxy_http modules; 
are there any performance gains by using ajp vs. http?

Thanks,
tom
-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] headers precedence 1.3 vs 2.2

2011-01-17 Thread Uxio Faria

I have a problem. I have a large set of servers with apache 1.3 and 
php. I set the cache-control
header by default on some directories with this form:

 Directory /xxx/yyy/
Header Set Cache-Control max-age=200
/Directory


All the files below this directory sets the default cache-control and 
the dinamic php files below this
directory too, but if i want to change the cache-control header of some 
dinamic page, i can set it
directly:

?
header(Cache-Control: max-age=400);

echo pI can change the header value only for this 
page/p;
?

Ok, everything is fine with this. But with apache 2.2 i can't do that, 
headers setted with Header directive
in apache conf, can't be overwrited by php.

After reading lots of documentation and blogs, code, etc, it seems that 
apache 1.3 doen't work well with
this functionality and apache 2.2 do, but i need to work in this way 
because i can't rewrite all my confs.

I need to solve this problem.  ¿any idea?

Thanks a lot.




-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] headers precedence 1.3 vs 2.2

2011-01-17 Thread Igor Cicimov
Have you tried mod_expire?

Sent from my phone

On Jan 18, 2011 1:25 PM, Uxio Faria ufa...@prisacom.com wrote:


   I have a problem. I have a large set of servers with apache 1.3 and
php. I set the cache-control
   header by default on some directories with this form:

Directory /xxx/yyy/
   Header Set Cache-Control max-age=200
   /Directory


   All the files below this directory sets the default cache-control and
the dinamic php files below this
   directory too, but if i want to change the cache-control header of
some dinamic page, i can set it
   directly:

   ?
   header(Cache-Control: max-age=400);

   echo pI can change the header value only for this
page/p;
   ?

   Ok, everything is fine with this. But with apache 2.2 i can't do
that, headers setted with Header directive
   in apache conf, can't be overwrited by php.

   After reading lots of documentation and blogs, code, etc, it seems
that apache 1.3 doen't work well with
   this functionality and apache 2.2 do, but i need to work in this way
because i can't rewrite all my confs.

   I need to solve this problem.  ¿any idea?

   Thanks a lot.




-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


Re: [users@httpd] headers precedence 1.3 vs 2.2

2011-01-17 Thread Nick Kew
On 18 Jan 2011, at 02:24, Uxio Faria wrote:

   Ok, everything is fine with this. But with apache 2.2 i can't do that, 
 headers setted with Header directive
   in apache conf, can't be overwrited by php.

Is it now returning two headers, one from the config and the other from your 
PHP?

I think the most sensible workaround to use would be to adjust your
configuration to avoid setting the header from there for your PHP files.
Use Files (or Filesmatch) to limit the scope of your config.

-- 
Nick Kew

Available for work, contract or permanent
http://www.webthing.com/~nick/cv.html
-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org