It is currently Fri, 30 Sep 2022 10:33:40 GMT



 
Author Message
 How to add a http header using .htaccess for apache http server under windows environment
Hi,
I tried to add http header using the .htaccess file, but I got the following
error message:
Invalid command 'Header', perhaps mis-spelled or defined by a module not
included in the server configuration
I used Header directive in my .htaccess file, anyone can tell me what's the
reason?
The .htaccess file I am using:
<Files "t.txt">
Header set Author "John P. Doe"
</Files>
Thanks!


 Mon, 29 Mar 2004 04:46:47 GMT   
 How to add a http header using .htaccess for apache http server under windows environment

Per the docs for Header, are you perhaps missing FileInfo (or All) in the
AllowOverride for that <Directory>, <Location> or nearest parent in
httpd.conf?

--
David Efflandt - All spam is ignored - http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/



 Mon, 29 Mar 2004 08:37:06 GMT   
 
   [ 2 post ] 

Similar Threads

1. using http://server/username instead of http://server/~username

2. apache http proxy - http/1.0 vs http/1.1

3. Supressing HTTP server header with Apache 1.3.6

4. Can mod_rewrite add new HTTP headers?

5. Apache problem: Can see http://localhost/ but not http://ipaddress/

6. Running apache as http://hostname and http://ip-address

7. Apache Proxy question: HTTP/1.1 -> HTTP/1.0

8. With apache, virtual host http://domain.com/test/ not equal to http://domein/test

9. Apache and HTTP headers

10. how do I suppress http 200 header from browser window


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software