Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Custom Header Page
Google
Post new topic Reply to topic
Author Message
morciya
 
 


Joined: 24 Sep 2005
Posts: 6

PostPosted: Thu Oct 06, 2005 2:11 am Reply with quoteBack to top

I created a "header" page with the following code. However, I can't find the directive to make the header show the name of the directory it is displaying. Any guidance is appreciated. Thanks!

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>

<style type="text/css">

      body
      {
         margin: 20px;
         padding: 0;
         font: normal 85% arial, helvetica, sans-serif;
         color: #000;
         background-color: #fff;
      }
      
      .floatleft
      {
         clear: left;
         width: 95%;
         height: 50px;
         font: normal 400% arial, helvetica, sans-serif;
         color: white;
         background-color: #F63;
      }
      
      .floatright
      {
         clear: left;
         width: 95%;
         height: 50px;
         font: normal 400% arial, helvetica, sans-serif;
         color: #F63;
         background-color: #F63;
      }
      
      .p1 {
         width: 95%;
         font: normal small arial, helvetica, sans-serif;
         color: white;
         background-color: #F63;
        }

      .p2 {
         width: 95%;
         font: normal small arial, helvetica, sans-serif;
         color: #F63;
         background-color: #F63;
        }

      .H1 {
           font-style: blue;
         }

      .H2 {
           font-style: blue;
         }

      .hr {COLOR: #6699FF;
                width: 95%;
           size:  5px;
           
         }
</style>
</head>
<body>

<div class="hr">
<font color="blue"><hr noshade></hr></font>
</div>

<div class="floatleft">
&nbsp;macarena.com
</div>
<div class="p1">&nbsp;&nbsp;&nbsp;This is a private website, accessible by invitation only. If you are an uninvited visitor, you must leave immediately. Thanks!
</div>


<div class="hr">
<font color="blue"><hr noshade></hr></font>
</div>

View user's profileSend private message
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Thu Jan 12, 2006 7:30 pm Reply with quoteBack to top

morciya wrote:
I created a "header" page with the following code. However, I can't find the directive to make the header show the name of the directory it is displaying. Any guidance is appreciated. Thanks!



I want to do the same thing i added a line to httpd.conf
Code:
HeaderName D:\SERVER\apache2triad\icons\header.html

then i restarted the server but it doesnt work Sad
it works only when the page have no index.html or php ...etc but it doesnt work when the page have an index
View user's profileSend private messageSend e-mailYahoo Messenger
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Thu Jan 12, 2006 9:12 pm Reply with quoteBack to top

http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#headername

Quote:
Name of the file that will be inserted at the top of the index listing


you can not have a directory listing if you have a index file
View user's profileSend private message
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Thu Jan 12, 2006 9:27 pm Reply with quoteBack to top

no not that i want to do something else a banner that will insert automaticaly in all the webpages that are hosted on my computer
View user's profileSend private messageSend e-mailYahoo Messenger
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Thu Jan 12, 2006 9:28 pm Reply with quoteBack to top

then use serverside includes or php includes or perl includes etc like everybody else
View user's profileSend private message
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Thu Jan 12, 2006 9:29 pm Reply with quoteBack to top

where can i find something like that ? and i don't want to stay to edit all the pages from the server because i have over 50 hosted
View user's profileSend private messageSend e-mailYahoo Messenger
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT