--- Per Einar Ellefsen [EMAIL PROTECTED] wrote:
At 23:06 12.06.2002, md wrote:
I'm not quite sure about this, been wondering about
it, but in theory you
should be able to use
DirectoryIndex index.phtml
and like that you won't have to worry about / etc
anymore.
Try it out..
And so I
At 16:04 13.06.2002, md wrote:
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote:
At 23:06 12.06.2002, md wrote:
I'm not quite sure about this, been wondering about
it, but in theory you
should be able to use
DirectoryIndex index.phtml
and like that you won't have to worry about / etc
md wrote:
What I'm really trying to do is more like the PHP I'm
replacing. I should be able to go to:
www.someserver.com/index.phtml for a dynamic page
and
www.someserver.com/index.html for a static page.
I'm guessing that my best solution would be to use
HTML::Mason or Apache::ASP
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote:
At 16:04 13.06.2002, md wrote:
What I'm really trying to do is more like the PHP
I'm
replacing. I should be able to go to:
www.someserver.com/index.phtml for a dynamic page
and
www.someserver.com/index.html for a static page.
Does PHP
--- Perrin Harkins [EMAIL PROTECTED] wrote:
I don't really see the problem. You can map all the
URLs that end with
a certain extension to one module that does some
work and then calls a
template.
OK...the little light bulb has just come on...
I didn't realize that I could put my
I'm replacing an exisiting PHP site with mod_perl and
Template-Toolkit.
I normally set up mod_perl to use a location like
this:
Location /something
and set the handler to my mod_perl module.
However, I need to map to / since I'm replacing a
system where there are existing PHP files like
Location /
to map to my main mod_perl script.
The first thing it does is to check if the uri ends
with a .phtml extension (or www.someserver.com or
www.someserver.com/...same with subdirectories). If
there is, I continue processing, otherwise I decline
it and let Apache handle it.
At 18:41 12.06.2002, md wrote:
I'm replacing an exisiting PHP site with mod_perl and
Template-Toolkit.
I normally set up mod_perl to use a location like
this:
Location /something
and set the handler to my mod_perl module.
However, I need to map to / since I'm replacing a
system where there
--- Aaron Ross [EMAIL PROTECTED] wrote:
Would
Files *.phtml
/Files
do the trick?
No...the files don't actually exist under htdocs since
I'm using Template-Toolkit.
Thanks though.
__
Do You Yahoo!?
Yahoo! - Official partner of 2002
At 19:08 12.06.2002, md wrote:
--- Aaron Ross [EMAIL PROTECTED] wrote:
Would
Files *.phtml
/Files
do the trick?
No...the files don't actually exist under htdocs since
I'm using Template-Toolkit.
Oh, so your .phtml things are really just TT templates?
What about:
Location
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote:
Can't you just drop the Location and use
Files *.phtml
SetHandler
/Files
or something like that? Seems like it would avoid
some overhead for you.
True...but the files don't actually exist. The
path/filename is used to map to a
At 19:14 12.06.2002, Per Einar Ellefsen wrote:
Location .*\.phtml|/
Sorry, make that LocationMatch
...
/Location
And /LocationMatch of course.
--
Per Einar Ellefsen
[EMAIL PROTECTED]
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote:
At 19:14 12.06.2002, Per Einar Ellefsen wrote:
Location .*\.phtml|/
Sorry, make that LocationMatch
...
/Location
And /LocationMatch of course.
That should work...thanks.
For the most part *all* .phtml pages will be doing the
same
* md [EMAIL PROTECTED] [2002-06-12 13:15]:
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote:
Can't you just drop the Location and use
Files *.phtml
SetHandler
/Files
or something like that? Seems like it would avoid
some overhead for you.
True...but the files don't actually
--- darren chamberlain [EMAIL PROTECTED]
wrote:
If you use a translation handler, you can just
return DECLINED for
everything you aren't specifically handling, and let
mod_dir do it's
thing, instead of emulating it.
I still would like to check first if there is an
index.phtml template
At 23:06 12.06.2002, md wrote:
--- darren chamberlain [EMAIL PROTECTED]
wrote:
If you use a translation handler, you can just
return DECLINED for
everything you aren't specifically handling, and let
mod_dir do it's
thing, instead of emulating it.
I still would like to check first if
* md [EMAIL PROTECTED] [2002-06-12 17:05]:
--- darren chamberlain [EMAIL PROTECTED] wrote:
If you use a translation handler, you can just return DECLINED for
everything you aren't specifically handling, and let mod_dir do it's
thing, instead of emulating it.
I still would like to check
17 matches
Mail list logo