Re: [users@httpd] Invoking PHP without .php extension?

2011-07-08 Thread Michael B Allen
On Fri, Jul 8, 2011 at 12:13 PM, Jeroen Geilman wrote: > On 2011-07-07 19:54, Michael B Allen wrote: >> >> I want a request like: >> >>   /base/path/to/target?foo=bar >> >> to invoke a particular PHP file for everything under /base. >> >> It

Re: [users@httpd] Invoking PHP without .php extension?

2011-07-07 Thread Michael B Allen
On Thu, Jul 7, 2011 at 9:35 PM, Devraj Mukherjee wrote: > On Fri, Jul 8, 2011 at 9:54 AM, Michael B Allen wrote: >> This is a wreck and I must say I don't think it has much to do with >> PHP. It has to do with the CGI model which is all but dead. >> > > Consid

Re: [users@httpd] Invoking PHP without .php extension?

2011-07-07 Thread Michael B Allen
On Thu, Jul 7, 2011 at 7:02 PM, Devraj Mukherjee wrote: > Hi, > > If your Rewrite rule reads something like this > > RewriteRule ^api/(.*) api-gateway.php   [L] > > Then basically you can extract the last few bit using regular > expression in our case > > $urlParts = null; > preg_match('/api\/([^\

[users@httpd] Invoking PHP without .php extension?

2011-07-07 Thread Michael B Allen
I want a request like: /base/path/to/target?foo=bar to invoke a particular PHP file for everything under /base. It seems the usual way (only way?) to do this is with something like: AddHandler php5-script .php AddType text/html .php DirectoryIndex index.php and with directives like:

Re: [users@httpd] Canonicalizing Domains / Hostnames

2011-07-06 Thread Michael B Allen
On Wed, Jul 6, 2011 at 10:23 PM, Michael B Allen wrote: > On Wed, Jul 6, 2011 at 10:05 PM, Sean Conner wrote: >> It was thus said that the Great Michael B Allen once stated: >>> >>> Hi Sean, >>> >>> Ok. But I already have: >>> >>>

Re: [users@httpd] Canonicalizing Domains / Hostnames

2011-07-06 Thread Michael B Allen
On Wed, Jul 6, 2011 at 10:05 PM, Sean Conner wrote: > It was thus said that the Great Michael B Allen once stated: >> >> Hi Sean, >> >> Ok. But I already have: >> >> >>   ServerName www.busicorp.com >>   ... >> >> >> Can I

Re: [users@httpd] Canonicalizing Domains / Hostnames

2011-07-06 Thread Michael B Allen
On Wed, Jul 6, 2011 at 8:59 PM, Sean Conner wrote: > It was thus said that the Great Michael B Allen once stated: >> Hi All, >> >> I have a site that is accessible through multiple hostnames like: >> >>   http://www.busicorp.com/ >>   http://server123.vp

[users@httpd] Canonicalizing Domains / Hostnames

2011-07-06 Thread Michael B Allen
Hi All, I have a site that is accessible through multiple hostnames like: http://www.busicorp.com/ http://server123.vps.hosting.net/ http://busicorp.com/ but I only want the site to be accessible through the first hostname (http://www.busicorp.com/ and https://www.busicorp.com/). How can I

[EMAIL PROTECTED] Strange Timezone Switching Between GMT and US\Eastern in Module

2008-02-08 Thread Michael B Allen
I have an Apache module that uses localtime(3) to generate timestamps for logging. When the module is running and executed by worker processes these timestamps are correctly US\Eastern time. However, when the module is initializing and deinitializing as the root process, the timestamps are in GMT t

Re: [EMAIL PROTECTED] simple mod_rewrite question

2007-08-06 Thread Michael B Allen
On 8/6/07, Joshua Slive <[EMAIL PROTECTED]> wrote: > On 8/5/07, Michael B Allen <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a very simple mod_rewrite requirement but I can't seem to make it > > work. > > > > I want all paths to invok

[EMAIL PROTECTED] simple mod_rewrite question

2007-08-05 Thread Michael B Allen
Hi, I have a very simple mod_rewrite requirement but I can't seem to make it work. I want all paths to invoke a php script *except* some that begin with certain directories. For example, consider the following URLs: http://www.example.com/z/blog/07/10 http://www.example.com/z/css/style.css I wa

[EMAIL PROTECTED] Setting Default LC_LANG

2007-03-24 Thread Michael B Allen
ale -a C en_US.utf8 POSIX This suggests to me that I simply do not have the right locate data. Do I need to install locale files? The language-support-de package on Ubuntu looks promising but I'm not sure. Any ideas? Mike -- Michael B Allen PHP Active Directory Kerberos SSO http:/