Re: template path problems
- From: Alper Ersoy <dirt gtk org>
- To: Tim Janik <timj gtk org>
- Cc: Beasty Crowd <beast gnome org>
- Subject: Re: template path problems
- Date: Fri May 9 14:16:10 2003
Tim Janik:
> i think there's a problem in the first place even, to get the scripts
> to know about the sub directory that the images reside in (going through
> the ScriptAlias like you sugegst above is not a good solution, e.g. it
> requires httpd.conf changes for every new gallery you open)
What's wrong with it?
- It's there to be used,
- It's less work to add a gallery entry there (with a single line)
than to create a new config file.
It's possible to put some variables into path_info thingy, ie.
http://beast.gtk.org/cgi-bin/logo-submissions/perpage/20
In httpd.conf:
ScriptAlias /cgi-bin/logo-submissions "/web/beast/cgi-bin/gallery"
gallery gets template from ../html/$0.html
(=> ../html/logo-submissions.html)
images from ../html/images/$0
Another one:
http://beast.gtk.org/cgi-bin/screenshots/perpage/8
ScriptAlias /cgi-bin/screenshots "/web/beast/cgi-bin/gallery"
template ../html/$0.html => ../html/screenshots.html
images from ../html/screenshots
It's also possible to not rely on ScriptAlias:
cd /web/beast/cgi-bin/
ln -s gallery screenshots
ln -s gallery logo-submissions
So:
- Google spider will crawl thru,
- Less administration,
- Ultimate configurability.
Let's give it a go.
Later,
--
Alper Ersoy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]