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

2010-04-09 Thread Mike Cardwell
ndows 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/mikecar

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

2010-02-19 Thread Mike Cardwell
e mod-security mailing list for quite a while now, 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

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

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

2010-02-02 Thread Mike Cardwell
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? --

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

2009-11-17 Thread Mike Cardwell
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 - 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
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 B

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

2009-11-17 Thread Mike Cardwell
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 B

[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:

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

2009-10-27 Thread Mike Cardwell
'm assuming the above is sane considering what you originally 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/ ---

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

2009-10-27 Thread Mike Cardwell
m/adtest/ All I did on that page was insert the div that you can see immediately after 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 p

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

2009-10-27 Thread Mike Cardwell
ted) style="position:absolute;top:0;right:0;z-index:1000"> onclick="document.getElementById('my_advert_box').style.display='none';">[X] Advert content -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'

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

2009-09-02 Thread Mike Cardwell
at he 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 suppo

[us...@httpd] Allow mod_rewrite in .htaccess without Set/AddHandler

2009-09-02 Thread Mike Cardwell
dler cgi-script .cgi .pl That then makes their scripts run as the apache user, which is what I'm trying to avoid... Any ideas? -- Mike Cardwell - IT Consultant and LAMP developer Cardwell IT Ltd. (UK Reg'd Company #069202

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

[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 d

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

2009-08-26 Thread Mike Cardwell
You could 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 suppor

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

2009-08-26 Thread Mike Cardwell
only don’t 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:/

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

2009-07-24 Thread Mike Cardwell
nswer 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. (U

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

2009-06-29 Thread Mike Cardwell
ns when you need examples: example.com example.org 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/ --

Re: [us...@httpd] how to using apache to SVN

2009-05-01 Thread Mike Cardwell
w.howtoforge.com/apache_subversion_repository -- Mike Cardwell (https://secure.grepular.com/) (http://perlcv.com/) - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslis

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

2009-04-21 Thread Mike Cardwell
able mod_ident in Apache, 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

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

2009-04-21 Thread Mike Cardwell
versions of Apache. Could have just accessed the HTTP_USER environment variable in that scenario. -- Mike Cardwell (https://secure.grepular.com/) (http://perlcv.com/) - The official User-To-User support forum of the Apache HTTP

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

2009-04-21 Thread Mike Cardwell
about LDAP or SQL here.. 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/) ---

[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 an

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

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

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

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 /do

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 take

[EMAIL PROTECTED] mod_rewrite 'B' flag

2008-01-04 Thread Mike Cardwell
Hi! On http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html, an option is described: == 'B' (escape backreferences) Apache has to unescape URLs before mapping them, so backreferences will be unescaped at the time they are a

Re: [EMAIL PROTECTED] Stripping white space from HTML

2007-03-13 Thread Mike Cardwell
* on the Tue, Mar 13, 2007 at 09:59:01AM -0700, Grant wrote: > Great news! This was fixed by changing the push line to: > > push @out, $_ unless /^\s*$/; > > Thanks a lot for everyone's help. A 15 byte solution. :) I expected something like that would be simpler than running a separate php scr

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 w

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* progres

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

2007-03-07 Thread Mike Cardwell
* on the Wed, Mar 07, 2007 at 02:48:16PM +, Mike Cardwell 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&#x

[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 severa

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

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 nam

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 this

[EMAIL PROTECTED] Modifying mod_access

2005-09-29 Thread Mike Cardwell
Hi, I have a problem that I need to fix with Apache and wasn't sure if I should post to the users list or the developers list because it's quite technical. If I've come to the wrong place, please give me a kick in the right direction :) I'm using a program called SBox under Apache 2.0.54. It's si