logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: header and footer in v2.2.8
Author
Bobscrachy



Joined: 13 Feb 2006
Posts: 39
Location: Texas

PostPosted: Tue 03 Jun '08 8:52    Post subject: header and footer in v2.2.8 Reply with quote

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: 7306
Location: Germany, Next to Hamburg

PostPosted: Tue 03 Jun '08 11:10    Post subject: Reply with quote

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

PostPosted: Tue 03 Jun '08 11:40    Post subject: Reply with quote

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: 7306
Location: Germany, Next to Hamburg

PostPosted: Tue 03 Jun '08 12:21    Post subject: Reply with quote

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

PostPosted: Wed 04 Jun '08 1:54    Post subject: Reply with quote

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

PostPosted: Wed 04 Jun '08 1:59    Post subject: Reply with quote

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

PostPosted: Wed 04 Jun '08 4:03    Post subject: Reply with quote

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

PostPosted: Wed 04 Jun '08 7:20    Post subject: Reply with quote

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: 7306
Location: Germany, Next to Hamburg

PostPosted: Wed 04 Jun '08 10:50    Post subject: Reply with quote

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

PostPosted: Fri 06 Jun '08 5:55    Post subject: Reply with quote

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


Reply to topic   Topic: header and footer in v2.2.8 View previous topic :: View next topic
Post new topic   Forum Index -> Apache