Re: Socket transfer from Apache httpd to a non-httpd process for https connections

2012-01-20 Thread Ray Morris
I'm using a httpd module that does a socket transfer from the httpd process to another non-httpd process that is running on the same system. Can you post or send that code or a link to it? -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http

Re: Inject html into response body

2011-12-04 Thread Ray Morris
accidentally or on purpose. Other examples mess up range requests and other responses that aren't trivial. So I agree, it's not that much easy. It's easy to write bad filter, difficult to write a proper one. (Too difficult for me, perhaps.) -- Ray Morris supp...@bettercgi.com Strongbox - The next

Re: Can the Apache2 Modules system be used as a general purpose application server, similar to Java based application servers like Apache Tomcat/Weblogic?

2011-11-21 Thread Ray Morris
. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http://www.bettercgi.com/affiliates/user

flush or pass filter brigade to avoid memory exhaustion

2011-11-14 Thread Ray Morris
= APR_BRIGADE_FIRST(bb); apr_sleep(1); Full source code for the original and the patched: http://bettercgi.com/tmp/mod_txt.c https://www.bettercgi.com/tmp/mod_patched.c -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox

Re: po

2011-09-01 Thread Ray Morris
is in the code with mileage on it or in the new code. Hmmm...don't know what happened to that subject line po. Not what I meant to type, obviously! Another O would have been quite embarassing wouldn't it. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security

Re: centOS apache module Vs. ubuntu apache module

2011-08-19 Thread Ray Morris
the same tool, just renamed on some distributions. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http

Re: Sharing information between threads and processes.

2011-07-21 Thread Ray Morris
. Leveraging piped logging means that the Apache developers who came before us already took care of launching and if necessary relaunching the process, sharing the pipe filehandle, making it all cross platform, etc. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security

Re: Kill a request nicely

2011-06-15 Thread Ray Morris
into some error, it may not be an output filter. Secondly, can the error be detected earlier with some proactive checking? -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http

Re: Get Parameter from httpd.conf

2011-05-26 Thread Ray Morris
://lmgtfy.com/?q=apache+module+configuration -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http

Re: How to add referer header in external redirect?

2011-01-16 Thread Ray Morris
It's up to the browser what to send back after being redirected. You could either a) not send a redirect header, but rather do an internal redirect, or b) probably better would be to append the encoded referer to the query string. -- Ray Morris supp...@bettercgi.com Strongbox - The next

Re: Apache mods - possible to send request on?

2010-09-14 Thread Ray Morris
write a module that takes elements of the request and makes a request to another web server at an arbitrary URL? See the proxy modules for examples. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox

Re: Problem with ap_internal_redirect_handler

2010-08-24 Thread Ray Morris
by trial and error. There are only two areas I don't learn by trial and error, because error is not acceptable. Explosives and system security. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent

Re: responsehandler in C

2010-08-19 Thread Ray Morris
my question - is it possible to write a responsehandler within C?  See any of the response handlers that come with Apache. They are all written in C. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox

Re: HTTP Streaming with Apache 1

2010-03-02 Thread Ray Morris
. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http://www.bettercgi.com/affiliates/user

Re: Bandwith limit/per user from mysql

2009-12-09 Thread Ray Morris
with it. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http://www.bettercgi.com/affiliates/user

Re: Bandwith limit/per user from mysql

2009-12-09 Thread Ray Morris
for their sites. They needed something slightly less simple. Those modules have their uses, I'm sure, but for the people we work with something a little more sophisticated was required in order to effectively address to real need, which was a business issue, not a purely technical one. -- Ray Morris supp

Re: Bandwith limit/per user from mysql

2009-12-08 Thread Ray Morris
just tc queuing policy, but they would be rightly lambasted by the business manager for making the sluggish rather than addressing the actual concern, which includes an appropriate message to the user. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http

Re: Bandwith limit/per user from mysql

2009-12-07 Thread Ray Morris
behave strangely are also not uncommon and need to be handled gracefully. These things I learned implementing our commercial module for this purpose. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent

Re: Defining mandatory parameters for Apache modules

2009-08-13 Thread Ray Morris
that goal be accomplished in a different manner that doesn' need the directive? (IE, instead of asking how can I buy a car to get to work when I haven't gotten paid yet?, ask how can I get to work without having a car?). -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site

Re: How do I debug a module ?

2009-07-23 Thread Ray Morris
http://www.google.com/search?q=how+to+debug+an+apache+modulestart=0start=0ie=utf-8oe=utf-8client=mozillarls=org.mozilla:en-US:unofficial -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth

Re: Dynamicly insert 'require' into request

2009-07-22 Thread Ray Morris
wanting to do the same thing as an existing function in mod_perl, you could look at the source of mod_perl to see how they did it. That might give you some ideas. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox

Re: How do I manipulate request_rec Object in worker.c

2009-07-15 Thread Ray Morris
on something else, start with r-connection. -- Ray Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http

Re: do I need a custom proxy?

2009-06-02 Thread Ray Morris
You could of course run one serer on a non standard port. -- Ray B. Morris supp...@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox

Re: Regarding setup modules for server 2.2

2009-04-16 Thread Ray Morris
1) If our application does not use any CGI or perl scripts, Is it necessary to have the modules like mod_perl and mod_fastcgi to be present in the sever. Even if you WERE using CGI, neither mod_perl nor mod_fastcgi would be required. mod_perl wouldn't be recommended unlss you either

Re: Making mod_auth_digest mysql

2009-02-12 Thread Ray Morris
I'd double check and triple check - something undefined can't match anything. What is the EXACT code you're using? Also, rewrite has -f to check to see if it's a file, and -d for a directory, just like the standard test command, Perl, and other common tools. These common tools use -e to

Re: Making mod_auth_digest mysql

2009-02-08 Thread Ray Morris
does RewriteCond ${REMOTE_USER} . Is the . for any character? Why does it evaluate correctly when undefined and != doesn't? Michele -Original Message- From: Ray Morris [mailto:supp...@bettercgi.com] Sent: Friday, February 06, 2009 3:05 PM To: modules-...@httpd.apache.org

Re: Making mod_auth_digest mysql

2009-02-06 Thread Ray Morris
I'm thinking about adding a -e flag for environment variable does not exist to httpd on my server. It would return true if the variable exists or false, otherwise. Is there a way to already do this? For your purpose, you can use: RewriteCond %{REMOTE_USER} !. or as appropriate:

Re: How to get a port number.

2009-01-19 Thread Ray Morris
Look at the host name. It will at times include :portnumber - perhaps any time it's not the defaulot 80. -- Ray B. Morris supp...@bettercgi.com On 01/18/2009 01:36:14 PM, wolfgang wrote: Hi there, I can not get a port number if my apache module is set in the main server config and

Re: Load memory dyanamically using handler.

2008-12-11 Thread Ray Morris
On 12/10/2008 02:09:19 AM, Sorin Manolache wrote: I would propose the following approach: Hook post_config. This one is executed once by the parent process before any child is spawned. Therefore, any resource opened there is inherited by all child processes. Thus, I would create _shared_

Re: Setting a handler within a configuration directive

2008-11-24 Thread Ray Morris
On 11/24/2008 01:01:11 PM, Sam Carleton wrote: The honest truth is that 99% of my market doesn't even know what Apache is, let alone that there is a conf file that could be changed to get different behavior. That suggests that you probably have no reason to hide anything. For the 1%

Re: Apache modification questions

2008-09-04 Thread Ray Morris
Can all this be done in an Apache module? Yes, just about anything can be done in an Apache module. Based on your other questions, it sounds like you need a thorough exposition of the Apache API and probably the HTTP protocol, so I'd suggets your next step is to study some good

Re: Configure Domain Subdomain

2008-08-28 Thread Ray Morris
1) How can I configure it so that it runs with a URL like abc.com See the documentation. If you need screen shots and much and holding, see Google. I should not have to add a new entry in config files to add a new subdomain. See your web hosting company. If you're not comfortable

Re: Apache Version

2008-08-18 Thread Ray Morris
Six and half years after it was released, Apache 2 is definitely ready! Some newer modules and tools either have no Apache 1.3 version or a hackish back port to 1.3, so I'd definitely not recommend 1.3 for any new installation. -- Ray B. Morris [EMAIL PROTECTED] Strongbox - The next

Re: request_rec.filename alteration

2008-08-14 Thread Ray Morris
mod_rewrite does URL to filename translation in the fixups hook, so it might be a good example to look at. My own module uses a subrequest to get information from a later phase. -- Ray B. Morris [EMAIL PROTECTED] Strongbox - The next generation in site security:

Re: Global Data

2008-08-12 Thread Ray Morris
I'm in the middle of porting an application from IIS/Windows to Apache 2.2 module. In the application, there is a lot of global data. ... Unfortunately there's no magic technique for sharing data between processes in Apache - you just have to use the same inter-process communication

Re: Request Filter (now off topic)

2008-06-05 Thread Ray Morris
This is a little off the topic of Apache module development, but it's perhaps a better solution to the problem posed which the questioner mentioned rather than using an Apache module. what i'm doing right now is: using the error log pipe to check for for suspicious errors. if enough

Re: mass virtual hosting and error-logging

2008-04-25 Thread Ray Morris
If you do set DOCUMENT_ROOT, it would be great if you made that change in the mass virtual hosting module, which would fix the problem for all users of the module, rather than doing so in a seperate, possibly unrelated module. Just yesterday we had to deal with a bunch of hassle because

Re: Functions run when configuration file is read

2008-04-08 Thread Ray Morris
that in, but that is a lot of over head I'd like to avoid. Thanks though. Ray Morris wrote: I am writing a module that runs certain functions depending on the configuration directives in the conf files. The functions are run twice when the server is started and again when the server shuts

Re: [Module Dev] Sending http request

2008-01-16 Thread Ray Morris
If the URL is on the same site, you can use a subrequest. Below is an example of doing a subrequest. ap_run_sub_req only needs to be run if you need the body of the response. The headers can be accessed after calling ap_sub_req_lookup_uri. Authentication is skipped for subrequests by default,

Re: Memory issue in apache modules

2007-12-14 Thread Ray Morris
I am using the apr_* functions to allocate memory (most of the time from the request-pool). If there are few places where you allocate from othr than the reqquest pool, I'd look at those first. -- Ray B. Morris [EMAIL PROTECTED] Strongbox - The next generation in site security:

Re: Regex Help with Mod Rewrite

2007-08-21 Thread Ray Morris
RewriteCond %{QUERY_STRING} ^(rain|spain|plain|,)+$ For a full explanation of what regex features are and are not available, see the first result: http://www.google.com/search?q=mod_rewritesourceid=mozillastart=0start=0ie=utf-8oe=utf-8 -- Ray B. Morris [EMAIL PROTECTED] Strongbox - The next

Re: giving a filename hint to the browser?

2007-08-17 Thread Ray Morris
Google Content-Disposition. This is techincally a MAIL header, not an HTTP header, I think, but the major browsers seem to pay some attention to it, at least some times. -- Ray B. Morris [EMAIL PROTECTED] Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/

Re: Extract Url from response page

2007-08-17 Thread Ray Morris
See libxml. -- Ray B. Morris [EMAIL PROTECTED] Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ On 08/17/2007 04:03:24 AM, prasana wrote: Hi, Is there any API functions to extract url from an response page. I need to log all the url in the response

shared table (create a pool from a block of memory?)

2007-08-03 Thread Ray Morris
We would like to use an APR table to share data between processes or threads where the data is a buit more than one would want to manage in a raw block of shared memory. Searching this list, on Google, and looking through the source I've found several people wanting to do soemthing similar,