You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eric Terry <el...@multiservice.com> on 2002/06/13 21:15:30 UTC

Help with apache::sandwich

I have the following added to my httpd.conf file:

# (Apache::Sandwich)
# Add directory custom "header"
<Location /web/httpd/htdocs/elterry>
  SetHandler    perl-script
  PerlHandler   Apache::Sandwich
  PerlSetVar HEADER "/my_header.html"
</Location>

Here are my "html" files:

my_header.html:
<html>
<head>
<title>System Wide</title>
</head>
<body>
<p />I am the header.

Index.html:
<hr>
<p />This is just a thought.
<p />But something should be above me.
</body>
</html>

The header doesn't show up when I go to the index page. What's up?

Eric 

Re: Help with apache::sandwich

Posted by Paul de Repentigny <pd...@grapharchitecture.com>.
Éric,

Try:

<Directory /web/httpd/htdocs/elterry>
        ... snip ...
</Directory >

instead. <Location> is used for URIs, not directories.

An alternative would be:

<Location /elterry>
        ... snip ...
</Location >

if DocumentRoot is set to "/web/httpd/htdocs" for Apache.

Paul

Eric Terry écrivit:

> I have the following added to my httpd.conf file:
> 
> # (Apache::Sandwich)
> # Add directory custom "header"
> <Location /web/httpd/htdocs/elterry>
> SetHandler    perl-script
> PerlHandler   Apache::Sandwich
> PerlSetVar HEADER "/my_header.html"
> </Location>
> 
> Here are my "html" files:
> 
> my_header.html:
> <html>
> <head>
> <title>System Wide</title>
> </head>
> <body>
> <p />I am the header.
> 
> Index.html:
> <hr>
> <p />This is just a thought.
> <p />But something should be above me.
> </body>
> </html>
> The header doesn't show up when I go to the index page. What's up?
> 
> Eric 
> 




<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Paul de Repentigny
Directeur Développement Logiciel /
Director Software Development
Graph Architecture Inc.
C/C++/Perl/mod_perl/Linux/PHP/MySQL/Lingo/BasicScript/WUP/Etc.
tel:  (418) 659-5611
email: pdr@grapharchitecture.com
web: http://www.grapharchitecture.com/

If you're not part of the solution, start another problem!
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>