[EMAIL PROTECTED] Re: mod_proxy with regexps

2005-08-24 Thread Brian Candler
On Tue, Aug 23, 2005 at 10:11:20AM -0700, Andrew Musselman wrote: > Hi, I am trying to set up a proxy to allow access to other devices on > the network. > > These lines work great: > ProxyPass /xyz.mn.op.st/ http://xyz.mn.op.st/ > ProxyPassReverse /xyz.mn.op.st/ http://xyz.mn.op.st/ > > I can a

[EMAIL PROTECTED] Re: pretty simple mod-rewrite question

2005-08-21 Thread Brian Candler
On Fri, Aug 19, 2005 at 06:24:02PM -0400, Hank wrote: > I have a rewrite working well so for one virtual domain: > > Convert: http://www.AAsite.com/pf_dir/index.html > To: http://www.AAsite.info/AAforums/pf_dir/index.html > > RewriteEngine on > RewriteRule ^/pf(.*)$http://ww

Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

2005-08-19 Thread Brian Candler
On Thu, Aug 18, 2005 at 04:06:51PM +0200, Axel-Stphane SMORGRAV wrote: > As an aside, the [L] ( as in [R,L] ) is not necessary either since if the > rewrite rule condition triggers, the redirect will be immediate and no > more rewrite rules will be evaluated. Warning: what you have written there

Re: [EMAIL PROTECTED] Redirect conditional on SSL/non-SSL

2005-08-18 Thread Brian Candler
On Wed, Aug 17, 2005 at 01:26:52PM +0200, Mads Rosendahl wrote: > Hi Brian, > > A very simple solution that works on any type of webserver is to replace > the standard 403.4 > "SSL Required" error document with some sort of automatic redirect code. > In apache.conf > you would put e.g. > > Err

[EMAIL PROTECTED] Redirect conditional on SSL/non-SSL

2005-08-17 Thread Brian Candler
I would like users to be able to put an incantation in their .htaccess files which says: "if this directory was not accessed via SSL, then issue a redirect to https://"; I know about SSLRequireSSL, but that just rejects the request. Is there a way to do this short of using mod_rewrite? I am u

[EMAIL PROTECTED] Re: apachectl startssl --need to start without entering password

2005-08-15 Thread Brian Candler
On Sun, Aug 14, 2005 at 08:15:03PM -0400, James, Denise wrote: > Please point me to where I can find documentation on starting apache > with ssl and NOT having to enter the password. I am new to managing > this web server and was recently asked to setup a new certificate which > expired. > > >

Re: [EMAIL PROTECTED] How to fight a client causing DoS ?

2005-08-14 Thread Brian Candler
On Sat, Aug 13, 2005 at 11:32:53AM +0200, Maxim Vexler wrote: > > > The DoS was caused because a client tried to use one of the popular > > > spiders to download the whole site. > > > > > > I've attached a clip from the error log & the access log (CR/LF > > > terminated). > > > > > > As you can se

Re: [EMAIL PROTECTED] mod_rewrite vs Content Management Systems

2005-08-09 Thread Brian Candler
On Mon, Aug 08, 2005 at 01:54:08AM -0700, David Blomstrom wrote: > --- Brian Candler <[EMAIL PROTECTED]> wrote: > > > (2) using an external rewriting process. Lookup > > syntax is the same as above, > > but you write an external script (e.g. in perl or > > wha

Re: [EMAIL PROTECTED] Virtualising 'ErrorLog'

2005-08-08 Thread Brian Candler
On Tue, Aug 02, 2005 at 09:15:11AM -0400, Dan Mahoney, System Admin wrote: > >However, is there a way to do the same for ErrorLog? That is, without > >having > >to set up a container for each site (since I'm using > >mod_rewrite for mass virtual hosting). In particular, I want each site's > >CGI

Re: [EMAIL PROTECTED] mod_rewrite vs Content Management Systems

2005-08-08 Thread Brian Candler
On Sun, Aug 07, 2005 at 02:35:50PM -0400, John Hicks wrote: > mod_rewrite can do a good job of translating urls like the above into > something like this: > > www.geozoo.com/?Audience=kids&Subject=Carnivora > etc. > > which most any CMS can go to town with. > > . . . > > >One other question: I

[EMAIL PROTECTED] Re: Rewrite and https

2005-08-04 Thread Brian Candler
On Wed, Aug 03, 2005 at 03:17:11PM +0200, Krist van Besien wrote: > So I have the following in my rewrite rulses: > > > > # If Portal is accessed over https add a query parameter so > the portal knows. > RewriteCond %{HTTPS}on [NC] > RewriteRule ^/([Pp]or

Re: [EMAIL PROTECTED] mod_frontpage state of the art

2005-08-03 Thread Brian Candler
OK, I think I have solved getting mod_frontpage to work with a mod_rewrite virtual host configuration. For the benefit of the archives, here's what I learned. (1) The CGIs make use of the SERVER_NAME environment variable (2) They then look this up in the httpd.conf pointed to by /usr/local/fro

Re: [EMAIL PROTECTED] mod_frontpage state of the art

2005-08-02 Thread Brian Candler
On Tue, Aug 02, 2005 at 11:15:24AM +0100, Brian Candler wrote: > Cheers. I've moved over to the mirfak mod_frontpage, but still get the same > error now: Right, well this is turning into a long voyage of discovery :-) Firstly, I was able to get mod_frontpage working with a vanill

[EMAIL PROTECTED] Virtualising 'ErrorLog'

2005-08-02 Thread Brian Candler
I can easily set up access logs such that the Host: header is included; this allows the logs to kept in a single file and then post-filtered to separate them out per virtual user. e.g. LogFormat "%{Host}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined However, is there a

Re: [EMAIL PROTECTED] mod_frontpage state of the art

2005-08-02 Thread Brian Candler
On Mon, Aug 01, 2005 at 04:02:05PM -0400, Dan Mahoney, System Admin wrote: > You need to get the frontpage support from rtr.com, and extract it the the > (very universal) /usr/local/frontpage. > > From there, to make it play nice with apache, you can compile and build > mirfak. > > Doing it the

[EMAIL PROTECTED] mod_frontpage state of the art

2005-08-01 Thread Brian Candler
What's the current best way to support frontpage publishing? [*] The two main contenders I've found are: - http://www.rtr.com/ - http://sourceforge.net/projects/mirfak Anyone here have a view as to which is better (for your own definition of 'better')? I'm running Apache 1.3 under FreeBSD, and o

Re: [EMAIL PROTECTED] shtml and suexec

2005-07-28 Thread Brian Candler
On Thu, Jul 28, 2005 at 10:28:09AM -0400, Dan Mahoney, System Admin wrote: > On Thu, 28 Jul 2005, Brian Candler wrote: > > If you don't have a shell, then your system runs /bin/echo, no? No. Firstly, suexec calls execv(), which does not do a search in $PATH. Secondly, "echo f

Re: [EMAIL PROTECTED] mod_rewrite setting handler

2005-07-28 Thread Brian Candler
On Thu, Jul 28, 2005 at 12:42:32PM +0100, Brian Candler wrote: > Question: is it possible to set the MIME-type and the handler separately in > mod_rewrite? > > (1) If I do > > RewriteRule \.shtml?$ - [T=server-parsed,L] > > then the page is parsed, but the wrong

[EMAIL PROTECTED] mod_rewrite setting handler

2005-07-28 Thread Brian Candler
Question: is it possible to set the MIME-type and the handler separately in mod_rewrite? (1) If I do RewriteRule \.shtml?$ - [T=server-parsed,L] then the page is parsed, but the wrong MIME type is sent to the client ("server-parsed" instead of "text/html") (2) If I do AddHandler server-parse

[EMAIL PROTECTED] shtml and suexec

2005-07-28 Thread Brian Candler
y module which uses a .db or .cdb file to lookup the "Host:" header and set docroot+UID+GID would be acceptable. Otherwise, I guess what I really want is to be able to set [USER=...] in a mod_rewrite rule, but looking at the docs for ap