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:59:35 GMT
* May 27 14:38 Robert Andersson <robert@profundis.nu>:
> Johan Svedberg wrote:
> > 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.
>
> Oops, no; it wasn't, I should have checked that first. Sorry :-(
>
> However, one more hack to the rescue:
>     <Directory /path/to/doc_root>
>         Options +Indexes
>         AddType text/html .php
>         AddHandler php-script .php
>         HeaderName /header.php
>     </Directory>

That indeed does it! Thanks alot Robert, both on this and my earlier
thread. :-)

Regards,

-- 
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