The question is unclear, as other monks have noted. Let me have a crack at it. I believe you are lumping many different issues (questions) in one.

Issue 1: What if my webserver doesn't allow me to keep .cgi files wherever I want, but restricts it to cgi-bin?

Solution: In your web-server, turn on ExecCGI for the director(y|ies) where you want to keep your cgi files. In Apache, this would mean turning on ExecCGI in the httpd.conf. In IIS, you would use its management console.

Issue 2: Your CMS doesn't like you generating templates with perl (I can't really interpret your question any other way). It wants old fashioned html. Fair enough. Well, then give it old fashioned html. Of course, how on earth (and what on earth) does your CMS then generate if gets old fashioned html to begin with? The whole point of a CMS is to generate old fashioned html, not to give it old fashioned html.

Solution: perhaps you are referring to the extension, and not the type of file. Well, use mod_rewrite or something equivalent to change your file extensions. Or simply use different kinds of extensions (I believe HTML::Template doesn't care, however, other programs might get confused).

--

when small people start casting long shadows, it is time to go to bed

In reply to Re: index.cgi or index.html by punkish
in thread index.cgi or index.html by boboson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.