Question: How can I set up Apache httpd / mod_proxy to use a program rather that a list of URL patterns to control my rewrites?
Specify a rewrite map type prg in your httpd.conf or .htaccess file. For example:
RewriteEngine On
RewriteMap tryme prg:/home/trainee/website/andy
RewriteRule (.*\.htm) ....
When you call a function, you typically want a nice clean start with no "leftovers" from the previous call. And that's what you get by default in PHP. However, there can be exceptions where you want data to be retained and you can do that using:
EITHER a global variable which is shared with the m ....
So many demonstrations are too clever - the wood gets lost for the trees and the newcomer is left not knowing what the important bits are. So a request overnight for a REAL simple way of password protecting some content based on a single password that can be changed [in the code] from time to time ....
If you've ever looked at the headers you receive back from your web server, you may have noticed an Etag. What is it?
An Etag is an "entity tag" and it provides a unique identifier for the resource being supplied. Browser requests can use an etag and an if-match header to check whether a resource ....
A single instance of Apache httpd can handle a very large number of simple requests for files to be served ... but a single instance of Apache Tomcat can handle far fewer requests for applications to be run. After all, there's a big difference between just handing someone a piece of data and havin ....
If you're connecting an Apache httpd server to an Apache Tomcat server, you can do so via proxied http requests - i.e. have your customer facing http server relay the request on, perhaps having modified it, to Tomcat and then passing the response back. Two different Apache modules give you the fac ....
Ruby v Python ... I've been asked for a comparison!
• Both are object oriented scripting languages - or rather claim to be scripting languages, but are really compile-and-run via their own virtual machines, in just the same way as Perl and Java are.
• Both are modern, Open Source languag ....
What do you get for a 70 pound hotel room? I'm in the fair town of Maidenhead tonight and I'm going to share with you the game of "Coffee Challenge" which is played to get a cup of hot coffee at the end of a long day.
Firstly, fill the kettle ...
... and I'll give you a clue. There's a cup ....
1st October 2007.
The minimum wage has risen for adults to 5.52 per hour
Check - we're well generous compared to that!
Statutory holidays have risen for full time employees to 24 days per year
Check - as that includes bank and public hoidays, well in there too. And will still be OK at April 2009 w ....
I've been working on RSS feeds ... looking to get a page that combines various blogs so that I can have a quick look and see where we stand without having to hop and skip round each in turn. And with magpierss, it's turned out to be quite easy.
Yet some blogs give a summary in the their RSS feeds ....