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

Re: Apache server-side includes questions



On May 29,  3:26pm, Pete Templin wrote:
> 
> Hello,
> 
> 	Somewhere along the line, my tricks (hacks?) for doing server-side
> inclusion of standardized (and separately changeable) headers and footers
> on web pages broke.  I admit to not knowing the _right_ way to do it,
> having stolen lots of bits and pieces along the way and learning
> originally on the ncsa server on my school's DEC box.
> 
> 	Here's what I'm currently doing:
> 
> <!--#exec cmd="./header"-->
> 
> is in the page.
> 
> I had an .htaccess file that looked like this:
> 
> AddType text/x-server-parsed-html .html
> Options All

And Apache version is? I guess 1.1 or higher... So you should rewrite
your .htaccess to look like this:

AddHandler server-parsed .html
Options All

> 
> I've basically NOT touched the srm.conf file of my "frozen" version of
> apache.  I have uncommented two lines, but recommented them for testing
> purposes.
> 
> If I attempt to view the page on Netscape under Debian, I am prompted to
> save the file to my home directory.

Sure, cause it doesn't know what to do with text/x-server-parsed-html...

> What's the Right Way(tm) to include the output of a perl script into a web
> page?

See above.

> It happens to work fine at http://www.bucknell.edu/~templin (the DEC box).

Old server... NSCA'a and old Apaches used pseudo MIME types, but it
changed...

> 
> 
> Thanks in advance for any/all help!
> 
> 
> Pete

           Paul

-- 
 (___)  | Pawel Wiecek ------------- <coven@pwr.wroc.pl> |
< o o > | http://www.ists.pwr.wroc.pl/~coven/            |
 \ ^ /  | finger coven@lb.ists.pwr.wroc.pl for PGP key   |
  (")   |  * * *  To err is human, to moo bovine  * * *  |


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: