|
|
Choosing A Webhost: |
Re: [mp2 API] ap_server_root() ap_server_document_root(): msg#00216apache.mod-perl.devel
Stas Bekman wrote: Geoffrey Young wrote: well, in 1.3 DocumentRoot was considered data private to core, used only for serving static files - nobody else had any right to depend on it (or change it). the warning about mod_userdir is because mod_userdir changes the path of the filename, so the file is not served relative to DocumentRoot as it otherwise would be. in mp1 we got around the private aspect by hooking right into core's conf and not using the ap_document_root() function. the problem this exposed was that DocumentRoot was a per-server attribute, so if you changed it but didn't remember to set it back, DocumentRoot remained the altered value for the life of the child process, messing everybody up. hence my remark about frontpage and corrupting the per-server attributes.
+1
point at the value of the ServerRoot directive? that sounds ok, but I don't see why you'd need it as we already have server_root_relative(). Or we can have $s->server_path do that. I'd rather have server_path be a direct accessor - overloading functions doesn't really appeal to me. --Geoff
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [mp2] Win32 problems, Randy Kobes |
|---|---|
| Next by Date: | Re: [patch] fixing the %ENV setting logic, breaking 'SetHandler modperl' a bit, Geoffrey Young |
| Previous by Thread: | Re: [mp2 API] ap_server_root() ap_server_document_root(), Stas Bekman |
| Next by Thread: | Re: [mp2 API] ap_server_root() ap_server_document_root(), Stas Bekman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |