httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Svedberg <jo...@svedberg.pp.se>
Subject Re: [users@httpd] PHP files as HeaderName and ReadmeName
Date Thu, 27 May 2004 12:19:57 GMT
* May 27 11:12 Robert Andersson <robert@profundis.nu>:
> Johan Svedberg wrote:
> > [I suggested...]
> > > I imagine from the docs that something simple like this should be
> > > possible: HeaderName /some_header.php
> >
> > This is basically what I've tried. The result was that I didn't get any
> > header at all.
>
> Ok, here's what I did, and it works:
>
> Files:
>     /path/to/doc_root/header.php
>
> Config:
>     <Directory /path/to/doc_root>
>         Options +Indexes
>         AddType text/html .php
>         HeaderName /header.php
>     </Directory>

Are you sure that the PHP code was executed by the server aswell?
Because when I try this the file isn't parsed as PHP but as HTML.

-- 
Johan Svedberg, johan@svedberg.pp.se, http://johan.svedberg.pp.se/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message