Author |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Tue 03 Jun '08 8:52 Post subject: header and footer in v2.2.8 |
|
|
I don't find the header or readme file mentioned in the configuration file. How do i set them? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 03 Jun '08 11:10 Post subject: |
|
|
You need to create that files yourself and than put 'em into to directory where you want 'em to be |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Tue 03 Jun '08 11:40 Post subject: |
|
|
In previous versions of apache you had to enable the headers and footers. I could also designate their names and extensions. By default they were named Header.html and Readme.html, but I had renamed them header and footer.shtml and incorporated some php using includes.
I was forced to upgrade apache and now I'm having trouble finding the header and "readme" config settings. Specifically how to enable it and edit the file extensions. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 03 Jun '08 12:21 Post subject: |
|
|
Well you can add it your self
Code: |
ReadmeName README.html
HeaderName HEADER.html
|
in a sub folder of conf, extra or original there is httpd-autoindex.conf which includes examples. Or see the docs httpd.apache.org/docs/2.2/ |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Wed 04 Jun '08 1:54 Post subject: |
|
|
Went to the extras dir opened up the autoindex.conf and added both to the bottom just like your example and got nothing. The footer is all in html. Is there some directive that needs to be allowed? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 04 Jun '08 1:59 Post subject: |
|
|
make sure that the file is included in httpd.conf near the bottom
# Fancy directory listings
Include conf/extra/httpd-autoindex.conf |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Wed 04 Jun '08 4:03 Post subject: |
|
|
It has been. The server allows the fancy indexing options. Just not the header or footer. |
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Wed 04 Jun '08 7:20 Post subject: |
|
|
Well I got the header and footer to be viewed. I finally just tested it
ReadmeName /README.shtml
HeaderName /HEADER.shtml
ReadmeName \Readme.shtml
HeaderName \Header.shtml
ReadmeName Readme.shtml
HeaderName Header.shtml
ReadmeName /README.html
HeaderName /HEADER.html
ReadmeName \Readme.html
HeaderName \Header.html
ReadmeName Readme.html
HeaderName Header.html
I swear I had put this in exactly like it is here in quotes a dozen times, but for some reason it decided to work for me this time.
Quote: | # HeaderName is the name of a file which should be prepended to
# directory indexes.
ReadmeName FOOTER.html
HeaderName HEADER.html |
Now my problem is that the header won't let me use include file command like 2.0.63 did.
I used include to include a file that was already parsed through php. Now all the header does is output the command into the header.
Quote: | <!--#include file="header.php"--> |
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 04 Jun '08 10:50 Post subject: |
|
|
did you enable ssi?
Code: |
LoadModule include_module modules/mod_include.so
#and
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
|
|
|
Back to top |
|
Bobscrachy
Joined: 13 Feb 2006 Posts: 39 Location: Texas
|
Posted: Fri 06 Jun '08 5:55 Post subject: |
|
|
The module is loading and everything looks exactly like it is in your quote. Its still outputting only the command in the header. |
|
Back to top |
|