[users@httpd] mod_session

2011-11-23 Thread Sascha Kersken
Hi @all,

the mod_session documentation at 
http://httpd.apache.org/docs/trunk/en/mod/mod_session.html states that the 
session directives are valid in .htaccess context, but they do not contain 
information about the AllowOverride value necessary to actually use them in 
this context. Does anyone know anything about this?


Thanks
Sascha
-
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] Apache 2.2.20 and mod_proxy_balancer with ajp

2011-11-23 Thread Igor Galić


- Original Message -
 On 22.11.2011 17:08, Igor Galić wrote:
  - Original Message -
 

 [snipp]

   Will a back port for 2.2.x be available?
 
  Doesn't look like anybody has raised that particular issue yet:
  http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/STATUS
 
  I'll propose it for 2.2.x
 
  meh. This looks like actual work.
  Can someone with some fifteen free minutes time try to make
  the patch in
  https://issues.apache.org/bugzilla/show_bug.cgi?id=50945
  apply cleanly on 2.2.x and attach it?
 
  I'll add a proposal to 2.2.x when I come back home tonight.
 
   Aleks

 I have adopted the patch for current head.

Proposed in http://svn.apache.org/viewvc?view=revisionrevision=1205215

 Aleks

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

-
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] Consequences of https to https rewrites?

2011-11-23 Thread Matus UHLAR - fantomas

On November 10, 2011 14:41 , Nick Tkach ntk...@gmail.com wrote:

RewriteRule ^https://mycom.com/specialsale
https://mycom.com/content/some/url/page.html


On 10.11.11 15:23, Mark Montague wrote:
You're complicating things too much.  In your HTTPS virtual host 
stanza in your web server configuration file, just put


RewriteRule ^/specialsale$ /content/some/url/page.html


You're complicating things much. Simple RedirectMatch should be ok 
instead of RewriteRule ;)

--
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.
It's now safe to throw off your computer.

-
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] expires review

2011-11-23 Thread Matus UHLAR - fantomas

On 12.11.11 16:10, Brent Clark wrote:

Please could someone peer review the following for me.
If this correct / acceptable?


correct - yes, acceptable - not ;-)
Why do you need such agressive expire?


IfModule mod_expires.c
ExpiresActive On
ExpiresDefault access
ExpiresByType text/javascript   access plus 1 day
ExpiresByType text/xml  access plus 1 day
ExpiresByType text/html access plus 1 day
ExpiresByType text/css  access plus 1 day
ExpiresByType application/javascriptaccess plus 1 day
ExpiresByType application/x-javascript  access plus 1 day
ExpiresByType application/shockwave-flash   access plus 1 day
ExpiresByType application/x-shockwave-flash access plus 1 day
ExpiresByType application/pdf   access plus 1 day
ExpiresByType image/gif access plus 1 month
ExpiresByType image/jpegaccess plus 1 month
ExpiresByType image/jpg access plus 1 month
ExpiresByType image/png access plus 1 month
ExpiresByType image/x-icon  access plus 1 month
/IfModule

--
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.
Saving Private Ryan...
Private Ryan exists. Overwrite? (Y/N)

-
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] mod_session

2011-11-23 Thread Igor Galić


- Original Message -
 Hi @all,

 the mod_session documentation at
 http://httpd.apache.org/docs/trunk/en/mod/mod_session.html states
 that the session directives are valid in .htaccess context, but they
 do not contain information about the AllowOverride value necessary
 to actually use them in this context. Does anyone know anything
 about this?

http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session.c?view=markup#l594
It seems it needs: AuthConfig

Fixed in http://svn.apache.org/viewvc?view=revisionrevision=1205379
Should be online by now.


 Thanks
 Sascha

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

-
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] Consequences of https to https rewrites?

2011-11-23 Thread Igor Galić


- Original Message -
 I've been looking at a particular problem and it's one of those ones
 that's just really hard to describe in unique terms for a search
 (maybe no one else has hit it before :).  Been Googling all over
 trying to find details on any consequences/side-effects of using
 mod_rewrite to redirect secure urls to other secure urls on the same
 site.  Something like

 RewriteRule ^https://mycom.com/specialsale
 https://mycom.com/content/some/url/page.html


http://httpd.apache.org/docs/trunk/mod/mod_alias.html#alias

Alias /specialsale /content/some/url/page.html

i
--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

-
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] Configuring apache to send http headers and data in two tcp ip packets

2011-11-23 Thread Matus UHLAR - fantomas

On 20.11.11 01:10, x y wrote:

Please How can i configure my apache-httpd server to always send http
headers and data in two tcp ip packets


very hard, if at all. Why?

--
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.
Fighting for peace is like fucking for virginity...

-
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] Apache 2.2.20 and mod_proxy_balancer with ajp

2011-11-23 Thread Aleksandar Lazic

On 23.11.2011 13:11, Igor Galić wrote:

- Original Message -



I have adopted the patch for current head.


Proposed in 
http://svn.apache.org/viewvc?view=revisionrevision=1205215


Thanks, how can I add my +1?

-
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] mod_session

2011-11-23 Thread Sascha Kersken

Am 23.11.2011 um 13:25 schrieb Igor Galić:

 
 
 - Original Message -
 Hi @all,
 
 the mod_session documentation at
 http://httpd.apache.org/docs/trunk/en/mod/mod_session.html states
 that the session directives are valid in .htaccess context, but they
 do not contain information about the AllowOverride value necessary
 to actually use them in this context. Does anyone know anything
 about this?
 
 http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session.c?view=markup#l594
 It seems it needs: AuthConfig
 
 Fixed in http://svn.apache.org/viewvc?view=revisionrevision=1205379
 Should be online by now.

Thanks a lot :).

 
 
 Thanks
 Sascha
 
 i
 
 --
 Igor Galić
 
 Tel: +43 (0) 664 886 22 883
 Mail: i.ga...@brainsware.org
 URL: http://brainsware.org/
 GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE
 
 -
 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
 

--
Check out my web comic
http://energybraincomics.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] Apache 2.2.20 and mod_proxy_balancer with ajp

2011-11-23 Thread Igor Galić


- Original Message -
 On 23.11.2011 13:11, Igor Galić wrote:
  - Original Message -
 
 
  I have adopted the patch for current head.
 
  Proposed in
  http://svn.apache.org/viewvc?view=revisionrevision=1205215

 Thanks, how can I add my +1?

By becoming an httpd committer ;)

But even so, you can go to dev@httpd and bug folks. Vote on the bug
in Bugzilla, and so on.

(n.b.: dev@httpd is currently busy getting 2.4 out the door, so
most people don't have too much love left for 2.2 ;)

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


-
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] Configuring apache to send http headers and data in two tcp ip packets

2011-11-23 Thread Igor Galić


- Original Message -
 On 20.11.11 01:10, x y wrote:
 Please How can i configure my apache-httpd server to always send
 http
 headers and data in two tcp ip packets

 very hard, if at all. Why?

Trying to make it slower?

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


-
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] Apache 2.2.20 and mod_proxy_balancer with ajp

2011-11-23 Thread Aleksandar Lazic

On 23.11.2011 14:07, Igor Galić wrote:

- Original Message -

On 23.11.2011 13:11, Igor Galić wrote:
 - Original Message -


 I have adopted the patch for current head.

 Proposed in
 http://svn.apache.org/viewvc?view=revisionrevision=1205215

Thanks, how can I add my +1?


By becoming an httpd committer ;)

But even so, you can go to dev@httpd and bug folks. Vote on the bug
in Bugzilla, and so on.


thanks.


(n.b.: dev@httpd is currently busy getting 2.4 out the door, so
most people don't have too much love left for 2.2 ;)


Does this mean that the 2.4 will be released soon?

Aleks

-
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] Apache 2.2.20 and mod_proxy_balancer with ajp

2011-11-23 Thread Igor Galić


- Original Message -
 On 23.11.2011 14:07, Igor Galić wrote:
  - Original Message -
  On 23.11.2011 13:11, Igor Galić wrote:
   - Original Message -
  
  
   I have adopted the patch for current head.
  
   Proposed in
   http://svn.apache.org/viewvc?view=revisionrevision=1205215
 
  Thanks, how can I add my +1?
 
  By becoming an httpd committer ;)
 
  But even so, you can go to dev@httpd and bug folks. Vote on the bug
  in Bugzilla, and so on.

 thanks.

  (n.b.: dev@httpd is currently busy getting 2.4 out the door, so
  most people don't have too much love left for 2.2 ;)

 Does this mean that the 2.4 will be released soon?


http://mail-archives.apache.org/mod_mbox/httpd-dev/20.mbox/%3cff603d56-31e3-49b3-b2ed-1e22c3403...@jagunet.com%3e

 Aleks

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

-
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] Removing request headers before a request is processed. . .

2011-11-23 Thread David Dabbs
I'm using httpd in front of a Tomcat app server and would like to remove
some incoming cookies before requests are reverse-proxied to Tomcat. The
cookie names are not fixed, but do match several simple regexps. Is there a
recipe with mod_headers/mod_rewrite that would allow me to strip these
cookies before these requests are handled?

 

Thanks,

 

David

 



[users@httpd] apache setup questions

2011-11-23 Thread Tim Streater
I'm looking at how apache is set up under OS X Lion and Snow Leopard. It seems 
to me in both cases that, for the default apache config, fast-cgi is disabled 
as the corresponding LoadModule is commented out. Is there a particular reason 
why this should be?

I notice that under SL, the fast-cgi module is a good bit older than other 
modules, and under Lion, there isn't even one provided. Does this mean that it 
has been integrated into apache or might there be some other reason?

I'd like to run an instance of apache that *only* needs to respond to AJAX 
requests from localhost (in fact, I'm already doing this). It won't be asked to 
serve html pages, it will only be running PHP scripts. Is this a situation 
where ideally apache would be doing fast-cgi? Are there any optimisations I can 
do with the apache config in this situation?


--
Cheers  --  Tim


-
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] apache setup questions

2011-11-23 Thread Wade Evans
If all you want to do is run PHP scripts to service AJAX requests, why not
load the php module, set the type handler, and move on to a more
interesting problem?

-w


On Wed, Nov 23, 2011 at 12:22 PM, Tim Streater t...@clothears.org.uk wrote:

 I'm looking at how apache is set up under OS X Lion and Snow Leopard. It
 seems to me in both cases that, for the default apache config, fast-cgi is
 disabled as the corresponding LoadModule is commented out. Is there a
 particular reason why this should be?

 I notice that under SL, the fast-cgi module is a good bit older than other
 modules, and under Lion, there isn't even one provided. Does this mean that
 it has been integrated into apache or might there be some other reason?

 I'd like to run an instance of apache that *only* needs to respond to AJAX
 requests from localhost (in fact, I'm already doing this). It won't be
 asked to serve html pages, it will only be running PHP scripts. Is this a
 situation where ideally apache would be doing fast-cgi? Are there any
 optimisations I can do with the apache config in this situation?


 --
 Cheers  --  Tim



 -
 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: Re: [users@httpd] apache setup questions

2011-11-23 Thread Tim Streater
On 23 Nov 2011 at 20:39, Wade Evans wade.p.ev...@gmail.com wrote: 

 If all you want to do is run PHP scripts to service AJAX requests, why not
 load the php module, set the type handler, and move on to a more
 interesting problem?

To me, in my present star of ignorance, these *are* interesting questions. 
Admittedly I have a more interesting question (to me), which is whether I can 
make an AJAX request to get a WebSockets server started, and then stop using 
AJAX but instead communicate between the browser and the server with WebSockets.

--
Cheers  --  Tim


-
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: Re: [users@httpd] apache setup questions

2011-11-23 Thread Wade Evans
Okay, look...

I am not saying that your questions are uninteresting, nor am I
disrespecting your skills.  We are all nascent eggs loose in a sea of too
much information, all trying to make our way.

My point is that you seem to be having trouble setting up the CGI execution
path.

In your submission, you state

 I notice that under SL, the fast-cgi module is a good bit older than other
 modules, and under Lion, there isn't even one provided.


To me, this hints that CGI is no longer strongly supported by the community
of developers that supports your platform.  I'm not in that community, so I
can't comment as to why that might be, but it seems plain that another
approach has taken over as the preferred method.

My naive recommendation is to stop using CGI, and use the PHP module
instead... to swim with the current, not against it.

Cheers

 - Wade


On Wed, Nov 23, 2011 at 1:26 PM, Tim Streater t...@clothears.org.uk wrote:

 On 23 Nov 2011 at 20:39, Wade Evans wade.p.ev...@gmail.com wrote:

  If all you want to do is run PHP scripts to service AJAX requests, why
 not
  load the php module, set the type handler, and move on to a more
  interesting problem?

 To me, in my present star of ignorance, these *are* interesting questions.
 Admittedly I have a more interesting question (to me), which is whether I
 can make an AJAX request to get a WebSockets server started, and then stop
 using AJAX but instead communicate between the browser and the server with
 WebSockets.

 --
 Cheers  --  Tim



 -
 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] apache setup questions

2011-11-23 Thread Nick Kew

On 23 Nov 2011, at 20:39, Wade Evans wrote:

 I notice that under SL, the fast-cgi module is a good bit older than other 
 modules, and under Lion, there isn't even one provided. Does this mean that 
 it has been integrated into apache 

Probably.  mod_fcgid was donated to apache a couple of years ago.
When that filters through to distros is up to the packagers.

-- 
Nick Kew
-
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: Re: Re: [users@httpd] apache setup questions

2011-11-23 Thread Tim Streater
On 23 Nov 2011 at 21:45, Wade Evans wade.p.ev...@gmail.com wrote: 

 My naive recommendation is to stop using CGI, and use the PHP module
 instead... to swim with the current, not against it.

Wade,

Thanks for that. Although it didn't answer my questions directly, it did give a 
me a clue to look at the PHP web site, whereat I deduce that I probably *am* 
using the PHP module (as opposed to CGI, that is), as I definitely LoadModule 
php5_module. Which would sweep all those questions away. That allows me to go 
away and have a rethink about what I want to try next.

You are right about being loose in a sea of TMI. The difficulty as always is to 
ask the right questions.

Thanks again,

--
Cheers  --  Tim


-
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: Re: Re: [users@httpd] apache setup questions

2011-11-23 Thread Wade Evans
Yay!

On Wed, Nov 23, 2011 at 3:02 PM, Tim Streater t...@clothears.org.uk wrote:

 On 23 Nov 2011 at 21:45, Wade Evans wade.p.ev...@gmail.com wrote:

  My naive recommendation is to stop using CGI, and use the PHP module
  instead... to swim with the current, not against it.

 Wade,

 Thanks for that. Although it didn't answer my questions directly, it did
 give a me a clue to look at the PHP web site, whereat I deduce that I
 probably *am* using the PHP module (as opposed to CGI, that is), as I
 definitely LoadModule php5_module. Which would sweep all those questions
 away. That allows me to go away and have a rethink about what I want to try
 next.

 You are right about being loose in a sea of TMI. The difficulty as always
 is to ask the right questions.

 Thanks again,

 --
 Cheers  --  Tim



 -
 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] Removing request headers before a request is processed. . .

2011-11-23 Thread Igor Cicimov
It's already in the examples of mod_headers:

SetEnvIf MyRequestHeader myvalue HAVE_MyRequestHeader
Header set MyHeader %D %t mytext env=HAVE_MyRequestHeader

so you just need to midify it to something like this:

SetEnvIf MyRequestCookieHeader your_regexp_here HAVE_MyRequestCookieHeader
RequestHeader unset MyRequestCookieHeader env=HAVE_MyRequestCookieHeader



On Thu, Nov 24, 2011 at 2:34 AM, David Dabbs dmda...@gmail.com wrote:

 I’m using httpd in front of a Tomcat app server and would like to remove
 some incoming cookies before requests are reverse-proxied to Tomcat. The
 cookie names are not fixed, but do match several simple regexps. Is there a
 recipe with mod_headers/mod_rewrite that would allow me to strip these
 cookies before these requests are handled?

 ** **

 Thanks,

 ** **

 David

 ** **



Re: [users@httpd] Directory Index not displaying

2011-11-23 Thread Igor Cicimov
I'm not sure what you are trying to achieve here by modifying these files.

To get the directory listing, from mod_autoindex documentation:

Automatic index generation is enabled with using Options +Indexes. See the
Options http://httpd.apache.org/docs/2.2/mod/core.html#options directive
for more details.


If you have a look at Options directive:

Indexes If a URL which maps to a directory is requested, and there is no
DirectoryIndexhttp://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex(
*e.g.*, index.html) in that directory, then
mod_autoindexhttp://httpd.apache.org/docs/2.2/mod/mod_autoindex.htmlwill
return a formatted listing of the directory.
So all you need to get a directory listing is:

1. Optins +Indexes (in the directory command)
2. You should NOT have any index file in that directory




On Thu, Nov 24, 2011 at 8:26 AM, Stan Laughlin stan.laugh...@gmail.comwrote:

 Folks,
 I am running an Ubuntu 11.10 server w/Apache 2.2.
 I am familiar with linux and command line but not familiar w/Apache.

 When enter the server IP address like this to a browser URL (pretend IP
 here) :   10.10.10.10/doc/
 It will list the default directory Index for the /usr/share/doc/
 directory.  All very nice.

 Then I edit autoindex.conf for these two values  HeaderName HEADER.html
 and ReadmeName README.html
 Restart apache and refresh browser.

 This is the HEADER.html
 html
 head
 titleSTAN'S DOC INDEX/title
 /head
 /html


 This is the README.html
 html
 head
 titleREADME FILE /title
 /head
   body
 h1README FILE/H1
 pThis is the readme file/p
   /body
 /html

 The web page shows the STAN'S DOC INDEX title.  But there is no
 directory listing and there is no README info.

 The 'dir.conf' file looks like this
 IfModule mod_dir.c
   DirectoryIndex  HEADER.html index.html index.cgi index.plindex.php 
 index.xhtml index.htm
 /IfModule

 If I remove the HEADER.html text then the page reverts back to the default
 display and shows the directory index.

 So...obviously the thing is picking up the HEADER.html but why isn't it
 picking up anything else?

 I have been trying to make this work for several days.
 I have read and re-read the autoindex and Directory module pages.  Because
 I'm new at this they are somewhat confusing.  A possible solution is the
 htaccess file but the mod page strongly recommends not going that route.

 I would appreciate any suggestions.

 Thanks.
 stan

 --
 stan.laugh...@gmail.com
 *Beer is always in season*



Re: [users@httpd] Directory Index not displaying

2011-11-23 Thread Igor Cicimov

   body
 h1README FILE/H1
 pThis is the readme file/p
   /body



If the file is not displaying maybe is because of the wrong p tag above.
The  is missing from p ...Firefox has couple of plugins that can show
you errors like this one.

Also maybe try to include the following meta tag in the head section of
the README.html to tell apache it is text/html file for sure:

meta http-equiv=content-type content=text/html;charset=utf-8



On Thu, Nov 24, 2011 at 2:41 PM, Igor Cicimov icici...@gmail.com wrote:

 I'm not sure what you are trying to achieve here by modifying these files.

 To get the directory listing, from mod_autoindex documentation:

 Automatic index generation is enabled with using Options +Indexes. See
 the Options http://httpd.apache.org/docs/2.2/mod/core.html#optionsdirective 
 for more details.


 If you have a look at Options directive:

 Indexes If a URL which maps to a directory is requested, and there is no
 DirectoryIndexhttp://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex(
 *e.g.*, index.html) in that directory, then 
 mod_autoindexhttp://httpd.apache.org/docs/2.2/mod/mod_autoindex.htmlwill 
 return a formatted listing of the directory.
 So all you need to get a directory listing is:

 1. Optins +Indexes (in the directory command)
 2. You should NOT have any index file in that directory





 On Thu, Nov 24, 2011 at 8:26 AM, Stan Laughlin stan.laugh...@gmail.comwrote:

 Folks,
 I am running an Ubuntu 11.10 server w/Apache 2.2.
 I am familiar with linux and command line but not familiar w/Apache.

 When enter the server IP address like this to a browser URL (pretend IP
 here) :   10.10.10.10/doc/
 It will list the default directory Index for the /usr/share/doc/
 directory.  All very nice.

 Then I edit autoindex.conf for these two values  HeaderName HEADER.html
 and ReadmeName README.html
 Restart apache and refresh browser.

 This is the HEADER.html
 html
 head
 titleSTAN'S DOC INDEX/title
 /head
 /html


 This is the README.html
 html
 head
 titleREADME FILE /title
 /head
   body
 h1README FILE/H1
 pThis is the readme file/p
   /body
 /html

 The web page shows the STAN'S DOC INDEX title.  But there is no
 directory listing and there is no README info.

 The 'dir.conf' file looks like this
 IfModule mod_dir.c
   DirectoryIndex  HEADER.html index.html index.cgi index.plindex.php 
 index.xhtml index.htm
 /IfModule

 If I remove the HEADER.html text then the page reverts back to the
 default display and shows the directory index.

 So...obviously the thing is picking up the HEADER.html but why isn't it
 picking up anything else?

 I have been trying to make this work for several days.
 I have read and re-read the autoindex and Directory module pages.
 Because I'm new at this they are somewhat confusing.  A possible solution
 is the htaccess file but the mod page strongly recommends not going that
 route.

 I would appreciate any suggestions.

 Thanks.
 stan

 --
 stan.laugh...@gmail.com
 *Beer is always in season*





Re: [users@httpd] apr_off_t mismatch

2011-11-23 Thread Asaf Dalet
i am trying to ask this again:
i supply an apache 2.2 module to my customers. naturally, i need to build
my module for each OS, cpu architecture  bit scheme. So, if my customer
has Apache 2.2 on solaris sparc 32 bit - that's what i need to build.

however, from what i just discovered, there's another factor - LFS support.
My module needs to be compiled with the LFS enabled or disabled - according
to the specific apache of the specific customer. The problem is that i
can't know what LFS support the apache was compiled with.

This really shouts bug to me, but i would really like to know - who's bug
and how to fix it. for example, if the packages of apache 2.2.0 with APR
1.2.2 on sunfreeware.com have a bug that was later fixed - then i can tell
my customer to upgrade to a later version.

???
On Mon, Nov 21, 2011 at 11:44 PM, Asaf Dalet asaf.da...@gmail.com wrote:

 this means that apache modules for 2.2.0 32 bits, on solaris 9 are not
 compatible across differemt ./configure options.

 which actually means that if i want to check if my module will run on a
 given apache - i cannot do it (there's no way to know a priori the size of
 apr_off_t which apache was compiled with). am i right?



 by any chance, does anyone know what are the ./configure options that
 control the size of apr_off_t, (if there are any)?



 thanks

 asaf

 On Mon, Nov 21, 2011 at 7:23 PM, William A. Rowe Jr. 
 wr...@rowe-clan.netwrote:

 On 11/21/2011 9:48 AM, Asaf Dalet wrote:

 Hi all,
 some interesting news:
 I downloaded apr-1.2.2-sol9-sparc-local from sunfreeware.com 
 http://sunfreeware.com and

 installed it.
 the file apr/include/apr-1/apr.h contains this line:
 typedef  long   apr_off_t;

 does this mean apr 1.2.2 does not support LFS or is it some bug in this
 precompiled APR?
 appreciate any comment


 It means either 1) the builder deliberately forced this behavior
 through options to ./configure, or 2) apr fails to detect that
 LFS is available in the builder's environment.  I suspect 1.





Re: [users@httpd] Directory Index not displaying

2011-11-23 Thread Stan Laughlin
Igor,
You wonder why I am editing files.  I am trying to learn how to make
directory listings unique.  I am surprised at how difficult this has
become.  (I recognize part of the problem is not knowing what I'm doing
w/the man pages.)

I corrected the typo and added the meta line. Did a restart apache2. There
was no change.

You made this note:
So all you need to get a directory listing is:

1. Optins +Indexes (in the directory command)
2. You should NOT have any index file in that directory


I tried to add the lines (taken directly from the example on the Options
page) to the default.conf file and most of my variations generate 'syntax'
errors for both the autoindex.conf and the default.conf when I attempt a
restart.
I can edit the default.conf file and simply add the lines from the Options
page example w/o the enclosing directive lines and it will restart but
still not change any display.

Isn't the 'directory command' you mention actually this file:
default.conf  ?

I'm sorry to confuse this.  I am seriously confused by the man pages.
I'm starting to think I need to re-install Apache.

I have read a huge number of web pages trying to figure this out.

Thanks for any insights you can provide.
stan

On Wed, Nov 23, 2011 at 8:53 PM, Igor Cicimov icici...@gmail.com wrote:

   body
 h1README FILE/H1
 pThis is the readme file/p
   /body



 If the file is not displaying maybe is because of the wrong p tag above.
 The  is missing from p ...Firefox has couple of plugins that can show
 you errors like this one.

 Also maybe try to include the following meta tag in the head section of
 the README.html to tell apache it is text/html file for sure:

 meta http-equiv=content-type content=text/html;charset=utf-8



 On Thu, Nov 24, 2011 at 2:41 PM, Igor Cicimov icici...@gmail.com wrote:

 I'm not sure what you are trying to achieve here by modifying these files.

 To get the directory listing, from mod_autoindex documentation:

 Automatic index generation is enabled with using Options +Indexes. See
 the Options 
 http://httpd.apache.org/docs/2.2/mod/core.html#optionsdirective for more 
 details.


 If you have a look at Options directive:

 Indexes If a URL which maps to a directory is requested, and there is no
 DirectoryIndexhttp://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex(
 *e.g.*, index.html) in that directory, then 
 mod_autoindexhttp://httpd.apache.org/docs/2.2/mod/mod_autoindex.htmlwill 
 return a formatted listing of the directory.
 So all you need to get a directory listing is:

 1. Optins +Indexes (in the directory command)
 2. You should NOT have any index file in that directory





 On Thu, Nov 24, 2011 at 8:26 AM, Stan Laughlin 
 stan.laugh...@gmail.comwrote:

 Folks,
 I am running an Ubuntu 11.10 server w/Apache 2.2.
 I am familiar with linux and command line but not familiar w/Apache.

 When enter the server IP address like this to a browser URL (pretend IP
 here) :   10.10.10.10/doc/
 It will list the default directory Index for the /usr/share/doc/
 directory.  All very nice.

 Then I edit autoindex.conf for these two values  HeaderName
 HEADER.html and ReadmeName README.html
 Restart apache and refresh browser.

 This is the HEADER.html
 html
 head
 titleSTAN'S DOC INDEX/title
 /head
 /html


 This is the README.html
 html
 head
 titleREADME FILE /title
 /head
   body
 h1README FILE/H1
 pThis is the readme file/p
   /body
 /html

 The web page shows the STAN'S DOC INDEX title.  But there is no
 directory listing and there is no README info.

 The 'dir.conf' file looks like this
 IfModule mod_dir.c
   DirectoryIndex  HEADER.html index.html index.cgi 
 index.plindex.php index.xhtml index.htm
 /IfModule

 If I remove the HEADER.html text then the page reverts back to the
 default display and shows the directory index.

 So...obviously the thing is picking up the HEADER.html but why isn't it
 picking up anything else?

 I have been trying to make this work for several days.
 I have read and re-read the autoindex and Directory module pages.
 Because I'm new at this they are somewhat confusing.  A possible solution
 is the htaccess file but the mod page strongly recommends not going that
 route.

 I would appreciate any suggestions.

 Thanks.
 stan

 --
 stan.laugh...@gmail.com
 *Beer is always in season*






-- 
stan.laugh...@gmail.com
*Beer is always in season*