Help with apache::sandwich

2002-06-13 Thread Eric Terry



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:
htmlheadtitleSystem 
Wide/title/headbodyp /I am the 
header.

Index.html:
hrp 
/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

2002-06-13 Thread Paul de Repentigny

É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
 SetHandlerperl-script
 PerlHandler   Apache::Sandwich
 PerlSetVar HEADER /my_header.html
 /Location
 
 Here are my html files:
 
 my_header.html:
 html
 head
 titleSystem 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: [EMAIL PROTECTED]
web: http://www.grapharchitecture.com/

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