Re: [us...@httpd] Centralized logging.

2010-04-09 Thread Mike Cardwell
based web servers. -- Mike Cardwell - Perl/Java/Web developer, Linux admin, Email admin Read my tech Blog - https://secure.grepular.com/ Follow me on Twitter - http://twitter.com/mickeyc Hire me - http://cardwellit.com/ http://uk.linkedin.com/in/mikecardwell

Re: [us...@httpd] Suhosin vs. mod_security

2010-02-19 Thread Mike Cardwell
, and it's still under very active development. The latest version was released only 2 weeks ago and the core rules are being updated regularly. The level of support on the official mailing list is excellent as well. -- Mike Cardwell: UK based IT Consultant, Perl developer, Linux admin Cardwell

Re: [us...@httpd] Custom Log Format - Adding milliseconds to timestamp - %{format}t

2010-02-18 Thread Mike Cardwell
On 18/02/2010 20:20, Daniel Reinhardt wrote: Actually the log file does show the time and date of the request being made: That's not what he's asking for. He wants to know how to add more accuracy to the time by getting it to include milliseconds. The clue is in the subject line. -- Mike

[us...@httpd] Apache doesn't log failed SSL negotiation IPs

2010-02-02 Thread Mike Cardwell
the SSL negotiation even being completed. My error log is full of stuff like this: [Mon Feb 01 18:19:37 2010] [error] unusably short session_id provided (1 bytes) Apache doesn't seem to log the IP address when this happens ... Is there any way of making it log that information somewhere? -- Mike

Re: [us...@httpd] Just curious on SPDY

2009-11-17 Thread Mike Cardwell
the server and the client would need to be updated in order to take advantage of it. If one or both don't support it, then the fallback would be normal HTTP. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ Technical Blog: https

Re: [us...@httpd] Just curious on SPDY

2009-11-17 Thread Mike Cardwell
and the client would need to be updated in order to take advantage of it. If one or both don't support it, then the fallback would be normal HTTP. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ Technical Blog: https

Re: [us...@httpd] Just curious on SPDY

2009-11-17 Thread Mike Cardwell
all clients that don't support SNI. The point I was trying to make was that something like SNI should be a requirement in SPDY rather than just optional, otherwise we could end up in the situation where some SPDY clients support SNI and others don't, which I'm sure nobody wants. -- Mike Cardwell

[us...@httpd] SPDY protocol

2009-11-13 Thread Mike Cardwell
Does Apache intend to add support for Googles recently announced SPDY protocol? http://sites.google.com/a/chromium.org/dev/spdy/spdy-whitepaper -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ Technical Blog: https

Re: [us...@httpd] ad-supported apache proxy

2009-10-27 Thread Mike Cardwell
=my_advert_box style=position:absolute;top:0;right:0;z-index:1000 a href=# onclick=document.getElementById('my_advert_box').style.display='none';[X]/a Advert content /div -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com

Re: [us...@httpd] ad-supported apache proxy

2009-10-27 Thread Mike Cardwell
the body tag ends. Looks like it displays properly to me. Although, google could technically be doing some clever stuff with javascript to remove unexpected html elements, but I doubt it... Also, could you please avoid top-posting. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell

Re: [us...@httpd] ad-supported apache proxy

2009-10-27 Thread Mike Cardwell
posted. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ Technical Blog: https://secure.grepular.com/blog/ - The official User-To-User support forum

Re: [us...@httpd] Question about JBOSS and what is best

2009-09-02 Thread Mike Cardwell
couldn't change his configuration to use mod_jk on all six. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ - The official User-To-User support forum

Re: [us...@httpd] Passing variables to ErrorLog pipe

2009-09-01 Thread Mike Cardwell
Mike Cardwell wrote: I'm using a pipe for my error log like this: ErrorLog |/web/etc/log_error_pipe.pl Is there any way of passing information to the pipe other than the log entry? Specifically I'd like to pass the HTTP_HOST value to it... I came up with a pretty sick solution. I set

[us...@httpd] Passing variables to ErrorLog pipe

2009-08-31 Thread Mike Cardwell
Hi, I'm using a pipe for my error log like this: ErrorLog |/web/etc/log_error_pipe.pl Is there any way of passing information to the pipe other than the log entry? Specifically I'd like to pass the HTTP_HOST value to it... -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd

Re: [us...@httpd] Log generating

2009-08-26 Thread Mike Cardwell
know the nameā€¦ Could somebody enlighten me? You might find this logging module useful: http://httpd.apache.org/docs/2.2/mod/mod_log_forensic.html -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com

Re: [us...@httpd] Can you supply username password for AuthType Basic within a POST/GET?

2009-08-26 Thread Mike Cardwell
theoretically write your own authentication module to do it though. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ - The official User-To-User support forum

Re: [us...@httpd] Htaccess redirect to SSL before Authenticate?

2009-07-24 Thread Mike Cardwell
your question, but poses another one. Why don't you just redirect all your website requests to https? If you have a trusted SSL cert available, and your server isn't already heavily loaded that is... -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company

Re: [us...@httpd] Zeus Subserver Equivalent in Apache2?

2009-06-29 Thread Mike Cardwell
example.net See http://www.rfc-editor.org/rfc/rfc2606.txt for more information. -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/ - The official User-To-User support

Re: [us...@httpd] Unique Home Page

2009-04-21 Thread Mike Cardwell
.. An immediate solution that springs to mind would be to install an identd service on the Windows box. Surely there's an ident module for Apache? -- Mike Cardwell (https://secure.grepular.com/) (http://perlcv.com/) - The official User

Re: [us...@httpd] Unique Home Page

2009-04-21 Thread Mike Cardwell
. -- Mike Cardwell (https://secure.grepular.com/) (http://perlcv.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

Re: [us...@httpd] Unique Home Page

2009-04-21 Thread Mike Cardwell
, Apache knows (on a trusted network) what username you're logged into Windows as. All modern OS's have identd services. -- Mike Cardwell (https://secure.grepular.com/) (http://perlcv.com/) - The official User-To-User support forum

[EMAIL PROTECTED] Unsetting X-Forwarded-For in mod_proxy

2008-06-26 Thread Mike Cardwell
Hi, I have an Apache 2.2 reverse proxy in front of a server which I can not modify. The server which I can not modify contains an application which behaves differently if a request for it contains an X-Forwarded-For header. I can not modify this application. The problem is, mod_proxy adds

Re: [EMAIL PROTECTED] Rewrite all but one page

2008-04-10 Thread Mike Cardwell
Matthew Tice wrote: RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} !^/+partners/+video\.php RewriteRule ^/partners(.*)$ https://testvideo101.example.com/partners$1[R,NC]https://testvideo101.example.com/partners$1%5BR,NC%5D Thanks Mike, that did it. np One question. Are the '+'

Re: [EMAIL PROTECTED] Rewrite all but one page

2008-04-09 Thread Mike Cardwell
Matthew Tice wrote: Hello, I feel like this is an easy one - but it's throwing me off. I have my webserver behind a netscaler load balancer. The netscaler handles the SSL traffic and redirects the decrypted traffic to port 81. I need to redirect all traffic except a certain page. The

Re: [EMAIL PROTECTED] mod_rewrite + mod_proxy trouble

2008-02-11 Thread Mike Cardwell
mod_proxy should add an extra HTTP header to the request called X-Forwarded-For which you can parse to retrieve the IP address from. Note, this can contain multiple IPs if there are several proxies on route so make sure you parse it correctly. Regards, Mike Travis Sidelinger wrote: We have

Re: [EMAIL PROTECTED] RewriteRule, [P] and space on URL

2008-01-13 Thread Mike Cardwell
Nick Kew wrote: See http://www.uskonnonvapaus.fi/apache-bug/3/one%20two There is per-directory .htaccess that says RewriteRule ^(.+)$ http://www.uskonnonvapaus.fi/apache-bug/1/foo.php?q=$1 [P] and this gives $1 only part to first space. However, on What happens if you add [B] to the [P]

Re: [EMAIL PROTECTED] mode_rewrite hostnames and wikiwords

2008-01-07 Thread Mike Cardwell
Dragon wrote: hit a snag how would I expand this rule to capture and convert the following? your.host.name - YourHostName (works with rule) YOUR.HOST.NAME - YourHostName (currently not handled) Yo-ur.HOST.name - YourHostName (currently not handled) effectively the spec would be to take

Re: [EMAIL PROTECTED] mode_rewrite hostnames and wikiwords

2008-01-07 Thread Mike Cardwell
Mike Cardwell wrote: how would I expand this rule to capture and convert the following? your.host.name - YourHostName (works with rule) YOUR.HOST.NAME - YourHostName (currently not handled) Yo-ur.HOST.name - YourHostName (currently not handled) effectively the spec would be to take /doc/FQDN

Re: [EMAIL PROTECTED] mode_rewrite hostnames and wikiwords

2008-01-04 Thread Mike Cardwell
Phil Wild wrote: Hello apache experts:-) I am trying to rewrite a url which conatins a hostname, converting the hostname to a wikiword. What I have so far is: RewriteRule ^/doc/([a-z,A-Z]*.*)\.([a-z,A-Z]*.*)$ /doc/$1$2 [N] RewriteRule ^/doc/([A-Z]*.*)$ /twiki/bin/view/Main/$1 [PT] which

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Mike Cardwell
* on the Sun, Mar 11, 2007 at 12:21:55PM -0700, Grant wrote: Right now all I want to do is eliminate all white space from my delivered HTML. mod_line_edit might be a better bet, perhaps with a LERewriteRule to collapse any whitespace of more than one byte to a single space. I want to make

Re: [EMAIL PROTECTED] Re: mod_proxy doesn't proxy with %2F

2007-03-08 Thread Mike Cardwell
* on the Wed, Mar 07, 2007 at 01:50:18PM -0500, Jack Saunders wrote: This was on the dev list. I've brought it onto the users list as I no longer think it's a bug as such. Please see my original email above, and my update below for the issue. Right. I've made a *little* progress. Reading the

[EMAIL PROTECTED] Re: mod_proxy doesn't proxy with %2F

2007-03-07 Thread Mike Cardwell
* on the Wed, Mar 07, 2007 at 10:28:22AM +, Mike Cardwell wrote: Using the standard Redhat Enterprise 4, Apache 2.0.52 RPMs here. I have a CommunigatePro server. It runs it's own http daemon for the administration interface, and webmail. We needed to extend it in several ways, so I stuck

Re: [EMAIL PROTECTED] Using env vars to compliment logging

2006-08-02 Thread Mike Cardwell
* on the Wed, Aug 02, 2006 at 08:42:32AM +0200, Boyle Owen wrote: If I understood the OP correctly, he wants ever more fine-grained control than that - he wants separate logs for different ServerAliases *within* a VH... (wildcard approach in a VirtualHost container). That can't be done and

Re: [EMAIL PROTECTED] Modifying mod_access

2005-10-02 Thread Mike Cardwell
Joshua Slive wrote: Hmmm. This doesn't seem to have fixed it. The rewrite rules always seem to get processed before the .htaccess files. Let's see the actual config. Here's a slightly cut down version of the VirtualHost in question. The RewriteMap vhostdir returns a path using the domain

Re: [EMAIL PROTECTED] Modifying mod_access

2005-09-30 Thread Mike Cardwell
Joshua Slive wrote: It's working perfectly... Except... .htaccess files no longer work for anything that is rewritten to the sbox binary. So users can not set up stuff like Basic Authentication on those scripts. Hmmm... I haven't tried it, but I have a suspicion that you could fix