logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


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: How to change font of directory listing page in apache
Author
prakashr85



Joined: 15 Jun 2012
Posts: 2
Location: India

PostPosted: Sat 16 Jun '12 7:01    Post subject: How to change font of directory listing page in apache Reply with quote

I had installed apache 2.0 of sharing files and folders and In the directory listing page I need to change the font to times new roman and the setting should apply to all subfolders in other words systemwide. I tried with .htaccess settings but it applies only to the particular folder where it is located and not to its subfolders.
also currently I access it via its IP or computer name how to map a site name like myfileshare.com to that IP so that I can access myfileshare.com across our network. Thanks in advance.


Or else tell me how to inherit .htaccess and header as well as footer html files placed in root folder to all subfolders
Back to top
mrcullers



Joined: 16 Jun 2012
Posts: 22
Location: USA, Bradenton FL

PostPosted: Sat 16 Jun '12 8:22    Post subject: How to change fonts in directory listings. Reply with quote

I can't tell if this fix works in an apache as old as 2.0 but this fix does work in 2.2 2.22 2.4

Code:
IndexOptions FancyIndexing HTMLTable VersionSort NameWidth=* DescriptionWidth=*
IndexStyleSheet "URL/to.your.com/style.css"

Then in the css file you can define anything you want just like you would any other web page.

Below is a copy of my css file.

Code:

  /**
   * Apache Auto-Index Style Sheet
   * Created 3/13/2012 for Cory's Server
   */
 
  body { background:#c8b570; }
 
  table { margin:10px auto;width:1000px;background:#fffee9;padding:20px;-moz-border-radius: 15px;border-radius: 15px; }
  table tr td { padding:2px; }
  h1#indextitle { margin:20px auto;width:990px;color:#323B40;  }
 
  h1#indextitle
    {
      font-size:20px;
      font-family:"Trebuchet MS";
    }
 
  tr.indexhead
    {
      font-size:16px;
      font-family:"Trebuchet MS";
    }
  tr.even
    {
      background:#fffff7; /*  */
    }
  tr.odd
    {
      background:#fcfbe5; /*  */
    }
   
  tr.indexbreakrow th hr { border:0;height:1px;background:black; }
   
  th.indexcolname { text-align:left; }
  th.indexcolname a:link,
  th.indexcolname a:visited { color:#323B40;text-decoration:none; }
  th.indexcolname a:hover   { color:#a81818;text-decoration:none; }

  th.indexcollastmod { text-align:center; }
  th.indexcollastmod a:link,
  th.indexcollastmod a:visited { color:#323B40;text-decoration:none; }
  th.indexcollastmod a:hover   { color:#a81818;text-decoration:none; }

  th.indexcolsize { text-align:right;padding-right:20px; }
  th.indexcolsize a:link,
  th.indexcolsize a:visited { color:#323B40;text-decoration:none; }
  th.indexcolsize a:hover   { color:#a81818;text-decoration:none; }

  th.indexcoldesc { text-align:left; }
  th.indexcoldesc a:link,
  th.indexcoldesc a:visited { color:#323B40;text-decoration:none; }
  th.indexcoldesc a:hover   { color:#a81818;text-decoration:none; }

  td.indexcolicon { text-align:center; }

  td.indexcolname { font-family:verdana;font-size:14px; }
  td.indexcolname a:link,
  td.indexcolname a:visited { color:#323B40;text-decoration:none; }
  td.indexcolname a:hover   { color:#a81818;text-decoration:none; }

  td.indexcollastmod
    {
      font-family:"Trebuchet MS";
      font-size:12px;
      text-align:center;
    }
  td.indexcolsize
    {
      font-family:"Trebuchet MS";
      font-size:12px;
      text-align:right;
      padding-right:20px;
    } 
  td.indexcoldesc
    {
      font-family:"Trebuchet MS";
      font-size:12px;
      text-align:left;
      padding-right:20px;
    }
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6966
Location: Germany, Next to Hamburg

PostPosted: Sat 16 Jun '12 10:50    Post subject: Reply with quote

IndexStyleSheet does not exist in 2.0.x
Back to top
prakashr85



Joined: 15 Jun 2012
Posts: 2
Location: India

PostPosted: Mon 18 Jun '12 5:20    Post subject: Reply with quote

I have access to httpd.conf file how can I add font settings in this file. Also is it possible to change the website name currently accessing the page via my system name.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6966
Location: Germany, Next to Hamburg

PostPosted: Mon 18 Jun '12 12:01    Post subject: Reply with quote

prakashr85 wrote:
I have access to httpd.conf file how can I add font settings in this file.


In fact you can't add the font settings to your httpd.conf cause your apache version is too old!

prakashr85 wrote:

Also is it possible to change the website name currently accessing the page via my system name.


Do you want something different than localhost or what?

By the way, please use questionmarks. It helps to recognize questions.
Back to top
mrcullers



Joined: 16 Jun 2012
Posts: 22
Location: USA, Bradenton FL

PostPosted: Fri 29 Jun '12 2:42    Post subject: Reply with quote

Thank you James for your confirmation on 2.0 I never worked with Apache back in the 1.0 or 2.0 days. I started in the 2.2 days which is why I had preference my post with "Don't know if..." Good to know!
Back to top


Reply to topic   Topic: How to change font of directory listing page in apache View previous topic :: View next topic
Post new topic   Forum Index -> Apache