logwatch/scripts/services/http : Corrections in file extensions
Alexandre Alapetite <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
---------- Forwarded message ---------- From: Alexandre Alapetite <[email protected]> Date: 2009/7/11 Subject: logwatch/scripts/services/http : Corrections in file extensions To: [email protected] Hello, Please find attached a patch with some corrections and suggestions for the file extensions in logwatch/scripts/services/http == Correction == - WMV moved from audio to video ("Windows Media Video") == Important additions == - Added MPEG4 (.mp4) to the video section == Minor additions == - PHP detected by "\.php\d?" to allow .php, .php3, .php4, .php5, .php6 - Added XSL (.xsl, .xslt) for "XSL Transformations" - Added CSV (.csv) for "Comma-separated values" - Added MP4-audio (.m4a) http://en.wikipedia.org/wiki/MP4#.MP4_versus_.M4A_file_extensions - Added Ogg audio (.oga) (e.g. Vorbis) - Added Ogg video (.ogv) (e.g. Theora) - Added M2TS (.mts, .m2ts) for AVCHD (MPEG4/h264 videos in a transport stream, as produced by recent camcorders and digital cameras, or Blu-rays). I admit this one is less common so you may not want to include it. Best regards, Alexandre http://alexandre.alapetite.fr _______________________________________________ Logwatch-Devel mailing list [email protected] http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
http.diff
(application/octet-stream, 2.2 KB)
--- /usr/share/logwatch/scripts/services/http Sat Jul 11 16:15:29 2009
+++ /home/alex/http Sat Jul 11 16:16:29 2009
@@ -219,19 +219,19 @@
$content_types = $content_types.'\/server-status|\/server-info';
$content_types = $content_types.'|\.htm|\.html|\.jhtml|\.phtml|\.shtml|\/\.?';
$content_types = $content_types.'|\.html\.[a-z]{2,3}(_[A-Z]{2,3})?';
- $content_types = $content_types.'|\.inc|\.php|\.php3|\.asmx|\.asp|\.pl|\.wml';
+ $content_types = $content_types.'|\.inc|\.php\d?|\.asmx|\.asp|\.aspx|\.pl|\.var|\.wml';
$content_types = $content_types.'|^\/mailman\/.*';
$content_types = $content_types.'|\/sqwebmail.*';
$content_types = $content_types.'|^\/announce|^\/scrape'; # BitTorrent tracker mod_bt
$content_types = $content_types.'|\.torrent';
- $content_types = $content_types.'|\.css|\.js|\.cgi';
+ $content_types = $content_types.'|\.css|\.js|\.cgi|\.xslt?';
$content_types = $content_types.'|\.fla|\.swf|\.rdf';
$content_types = $content_types.'|\.class|\.jsp|\.jar|\.java';
$content_types = $content_types.'|COPYRIGHT|README|FAQ|INSTALL|\.txt)';
-my $docs_types = '(\.asc|\.bib|\.djvu|\.doc|\.dot|\.dtd|\.dvi|\.gnumeric|\.mcd|\.mso|\.pdf|\.pps|\.ppt|\.ps|\.rtf|\.sxi|\.tex|\.text|\.tm|\.xls|\.xml)';
+my $docs_types = '(\.asc|\.bib|\.csv|\.djvu|\.doc|\.dot|\.dtd|\.dvi|\.gnumeric|\.mcd|\.mso|\.pdf|\.pps|\.ppt|\.ps|\.rtf|\.sxi|\.tex|\.text|\.tm|\.xls|\.xml)';
my $archive_types = '(\.ace|\.bz2|\.cab|\.deb|\.dsc|\.ed2k|\.gz|\.hqx|\.md5|\.rar|\.rpm|\.sig|\.sign|\.tar|\.tbz2|\.tgz|\.vl2|\.z|\.zip)';
-my $sound_types = '(\.au|\.aud|\.mid|\.mp3|\.ogg|\.pls|\.ram|\.raw|\.rm|\.wav|\.wma|\.wmv|\.xsm)';
-my $movie_types = '(\.asf|\.ass|\.avi|\.idx|\.mid|\.mpg|\.mpeg|\.mov|\.qt|\.psb|\.srt|\.ssa|\.smi|\.sub)';
+my $sound_types = '(\.au|\.aud|\.m4a|\.mid|\.mp3|\.oga|\.ogg|\.pls|\.ram|\.raw|\.rm|\.wav|\.wma|\.xsm)';
+my $movie_types = '(\.asf|\.ass|\.avi|\.idx|\.m2?ts|\.mid|\.mp4|\.mpg|\.mpeg|\.mov|\.ogv|\.qt|\.psb|\.srt|\.ssa|\.smi|\.sub|\.wmv)';
my $winexec_types = '(\.bat|\.com|\.exe|\.dll)';
my $wpad_files = '(wpad\.dat|wspad\.dat|proxy\.pac)';
my $program_src = '(';