Re: template path problems

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.

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:

  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


  - Google spider will crawl thru,
  - Less administration,
  - Ultimate configurability.

Let's give it a go.


Alper Ersoy

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]