09-20-2001
If you are running Apache, the proper solution is to add an "AddDescription" directive in your httpd.conf or .htaccess file.
Example: AddDescription "GZIP compressed tar archive" .tgz
You must have the "FancyIndexing" option turned on also (with:
"IndexOptions FancyIndexing")
For more info:
http://httpd.apache.org/docs-2.0/mod...adddescription
9 More Discussions You Might Find Interesting
1. Programming
How can I transfer an open file description between two process? (1 Reply)
Discussion started by: xu_wen_dong
1 Replies
2. AIX
Hi,
I would like to know the significance of 2 way and 4 way and 8 way Hardware Description, like 2 way p595 and 4 way p695 servers.
What exactly does "2 way", "4 way" mean ? (1 Reply)
Discussion started by: praveenr
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
4. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
5. UNIX for Dummies Questions & Answers
i have a '|' delimited file having 4 fields.
now i want to sort the data by combination of first three fields without changing order of 4th field.
input file looks like this:
3245|G|kop|45
1329|A|uty|76
9878|K|wer|12
3245|G|kop|15
1329|A|uty|56
9878|K|wer|2
3245|G|kop|105... (4 Replies)
Discussion started by: ankurgoyal2408
4 Replies
6. Shell Programming and Scripting
Hi Friends,
I have a scenario where in I need to implement the following logics.
1. Delete a column named "DESCRIPTION'" from a csv file(sample.csv).
2. Move "CURRENT_SALES" column to 10th position in columns from the same file.
Thanks in Advance,
Pons (10 Replies)
Discussion started by: ponnst
10 Replies
7. Homework & Coursework Questions
From the below i would need the difference using between && and ||
error_func()
{
# Standard error function
] && print -u2 "ERROR: $*"
exit 1
}
] && error_func "Source Directory is missing as input argument"
] || error_func "Source Directory does not... (1 Reply)
Discussion started by: arun888
1 Replies
8. Shell Programming and Scripting
Hello Experts,
I need the description (like if user has done sudo,logging from winscp termial or ssh from other machine) using the last command.Can someone help me out please.
Thanks. (3 Replies)
Discussion started by: ahmed.vaghar
3 Replies
9. Shell Programming and Scripting
Hi,
Requirement is encrypt key should pick value from file instead of passing their in command.
how can i create .p file which contains crypt value.
i.e.
crypt <trade.csv> tr.x $CKEY fcrypt.p
crypt < tr.x $CKEY fcrypt.p
i want to encrypt and decrpt csv file and i am using following... (2 Replies)
Discussion started by: rizwan.shaukat
2 Replies
LEARN ABOUT REDHAT
webserver
WEBSERVER(1) mrtg WEBSERVER(1)
NAME
webserver - hints for web server configuration
SYNOPSIS
If you want people to actually see the results of your network monitoring efforts you will need a webserver.
This document lists some configuration hints for webservers. Contributions welcome.
APACHE
Configuring mod_expire
A big issue with mrtg monitoring data is the expiery time. All these nice graphs you can create are only valid for a short time. If you
do not take special action some webbrowsers will not notice this and you may end up with people seeing old data because of caching issues.
The apache module mod_expire allows you to setup special expiery properties for individual file.
Here is an example for how this may look for an mrtg web directory. The configuration directives can be stored into a .htaccess file.
############################################################
# Example .htaccess for use with apache-1.2 and mod_expire.
# (mod_expire come with apache-1.2 but you have to explicitly
# activate it when compiling the httpd ...)
#############################################################
#
<Files "*-day.png">
ExpiresActive On # enable expirations
# five minutes
ExpiresDefault M300
</Files>
<Files "*-week.png">
ExpiresActive On
ExpiresDefault M1800
</Files>
<Files "*-month.png">
ExpiresActive On
ExpiresDefault M7200
</Files>
<Files "*-year.png">
ExpiresActive On
ExpiresDefault M86400
</Files>
<Files "*.html">
ExpiresActive On
ExpiresDefault M300
</Files>
# index.html is not automatically generated
<Files "index.html">
ExpiresActive Off
</Files>
AUTHOR
Unknown
3rd Berkeley Distribution 2.9.17 WEBSERVER(1)