#1 09.03.06 23:29
[php проект на сервере Аpache] Бесконечное подключение
[php проект на сервере Аpache] Бесконечное подключение
Установил себе проект, написанный на apache. Инсталлер проекта устанавливает сервер Apache, производит его настройку/конфигурацию для этого проекта. При попытки конектиться к порту возникает бесконечное подключение... Следует отметить что у других челов все работает нормально. Что делать? Чем я хуже:)
Offline
#7 10.03.06 14:52
Re: [php проект на сервере Аpache] Бесконечное подключение
про. написал(а):
помню, в 98 версии языка apache инструкция goto плохо работала.
Ну, не я его писал, это проект коммерческий проект созданный профессионалами, просто у всех работает, а у меня бесконечно подключается.
Я тоже где-то читал что какой-то php код из за ошибки в apache, может привести к зависанию последнего
Offline
#9 10.03.06 16:41
Re: [php проект на сервере Аpache] Бесконечное подключение
VSV написал(а):
Ну, не я его писал, это проект коммерческий проект созданный профессионалами, просто у всех работает, а у меня бесконечно подключается.
Я тоже где-то читал что какой-то php код из за ошибки в apache, может привести к зависанию последнего
с чего ты взял что бесконечно подключаеться,
приведи логи апача и пхп
Offline
#10 10.03.06 16:48
#11 10.03.06 18:02
#12 11.03.06 01:15
#13 11.03.06 01:30
#14 11.03.06 07:13
Re: [php проект на сервере Аpache] Бесконечное подключение
Вот логи
/-----------access.log----------------------------/
пуст
/-------------------------------------------------/
/-----------error_log------------------------------/
[Sat Mar 11 06:58:49 2006] [warn] getsockname
/-------------------------------------------------/
Конфиги
/-----------httpd.conf-----------------------------/
##
## httpd.conf -- Apache HTTP server configuration file
##
#
# global server settings
#
ServerType standalone
ServerRoot C:/WebCT/webct/server
LockFile C:/WebCT/webct/server/logs/httpd.lock
PidFile C:/WebCT/webct/server/logs/httpd.pid
ScoreBoardFile C:/WebCT/webct/server/logs/httpd.scoreboard
Timeout 1200
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
#MaxRequestsPerChild 10000 # uncomment for leaky platforms (eg, Solaris)
#
# main server settings
#
ServerName serv
Port 8900
ServerAdmin webct@serv
DocumentRoot C:/WebCT/webct/user
UserDir disabled
DirectoryIndex index.html index.htm default.html default.htm
UseCanonicalName On
HostnameLookups Off
ServerSignature On
# use berkeley db
LoadModule db_auth_module ApacheModuleAuthDB.dll
#
# MIME types
#
TypesConfig C:/WebCT/webct/server/conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile C:/WebCT/webct/server/conf/magic
</IfModule>
#
# logging
#
ErrorLog C:/WebCT/webct/server/logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog C:/WebCT/webct/server/logs/access_log common
#CustomLog C:/WebCT/webct/server/logs/referer_log referer
#CustomLog C:/WebCT/webct/server/logs/agent_log agent
#CustomLog C:/WebCT/webct/server/logs/access_log combined
#
# access control
#
<Directory />
Options FollowSymLinks
AllowOverride None
order deny,allow
deny from all
</Directory>
AccessFileName .htaccess
# deny access to all files starting with '.ht'
<FilesMatch "^\.ht">
order allow,deny
deny from all
</FilesMatch>
<Directory C:/WebCT/webct/user>
Options FollowSymLinks
AllowOverride AuthConfig Limit
order allow,deny
allow from all
# uncomment next line to enable publishing
#Script PUT /webct/public/putscript.pl
</Directory>
# uncomment next line to enable publishing
#ScriptAlias /webct/public/putscript.pl C:/WebCT/webct/webct/generic/public/putscript.pl
# uncomment next line to enable support.pl
#ScriptAlias /webct/admin/support.pl C:/WebCT/webct/webct/generic/admin/support.pl
# course stubs
ScriptAliasMatch ^/SCRIPT/([A-Za-z0-9._\-]+)/scripts/(.*) C:/WebCT/webct/webct/courses/$1/scripts/$2
# administrator tools
ScriptAlias /webct/admin/admin.pl C:/WebCT/webct/webct/generic/admin/admin.pl
ScriptAlias /webct/admin/admin_user.pl C:/WebCT/webct/webct/generic/admin/admin_user.pl
ScriptAlias /webct/admin/admin_color.pl C:/WebCT/webct/webct/generic/admin/admin_color.pl
ScriptAlias /webct/admin/admin_course.pl C:/WebCT/webct/webct/generic/admin/admin_course.pl
ScriptAlias /webct/admin/admin_server.pl C:/WebCT/webct/webct/generic/admin/admin_server.pl
ScriptAlias /webct/admin/mywebct_colour_setting.pl C:/WebCT/webct/webct/generic/admin/mywebct_colour_setting.pl
ScriptAlias /webct/admin/license C:/WebCT/webct/webct/generic/admin/license
ScriptAlias /webct/admin/license.exe C:/WebCT/webct/webct/generic/admin/license.exe
# public tools
ScriptAlias /webct/public/show_courses.pl C:/WebCT/webct/webct/generic/public/show_courses.pl
ScriptAlias /webct/public/count C:/WebCT/webct/webct/generic/public/count
ScriptAlias /webct/public/count.exe C:/WebCT/webct/webct/generic/public/count.exe
ScriptAlias /webct/public/guest.pl C:/WebCT/webct/webct/generic/public/guest.pl
ScriptAlias /webct/public/forgotpass.pl C:/WebCT/webct/webct/generic/public/forgotpass.pl
ScriptAlias /webct/public/mywebct_create.pl C:/WebCT/webct/webct/generic/public/mywebct_create.pl
ScriptAlias /webct/public/home.pl C:/WebCT/webct/webct/generic/public/home.pl
ScriptAlias /webct/public/serve_webctdb C:/WebCT/webct/webct/generic/public/serve_webctdb
ScriptAlias /webct/public/serve_webctdb.exe C:/WebCT/webct/webct/generic/public/serve_webctdb.exe
# student tools
ScriptAlias /webct/student/AckResponse C:/WebCT/webct/webct/generic/student/AckResponse
ScriptAlias /webct/student/AckResponse.exe C:/WebCT/webct/webct/generic/student/AckResponse.exe
ScriptAlias /webct/student/GetResponse C:/WebCT/webct/webct/generic/student/GetResponse
ScriptAlias /webct/student/GetResponse.exe C:/WebCT/webct/webct/generic/student/GetResponse.exe
ScriptAlias /webct/student/pin_auth C:/WebCT/webct/webct/generic/student/pin_auth
ScriptAlias /webct/student/pin_auth.exe C:/WebCT/webct/webct/generic/student/pin_auth.exe
ScriptAlias /webct/student/SendRequest C:/WebCT/webct/webct/generic/student/SendRequest
ScriptAlias /webct/student/SendRequest.exe C:/WebCT/webct/webct/generic/student/SendRequest.exe
# homearea tools
ScriptAlias /webct/homearea/homearea C:/WebCT/webct/webct/generic/homearea/homearea
ScriptAlias /webct/homearea/homearea.exe C:/WebCT/webct/webct/generic/homearea/homearea.exe
ScriptAlias /webct/homearea/homearea_password.pl C:/WebCT/webct/webct/generic/homearea/homearea_password.pl
ScriptAlias /webct/homearea/mywebct_manager.pl C:/WebCT/webct/webct/generic/homearea/mywebct_manager.pl
ScriptAlias /webct/homearea/loginhint.pl C:/WebCT/webct/webct/generic/homearea/loginhint.pl
# helpdesk tools
ScriptAlias /webct/helpdesk/helpdesk.pl C:/WebCT/webct/webct/generic/helpdesk/helpdesk.pl
# cgi-bin for extra scripts
ScriptAlias /cgi-bin/ C:/WebCT/webct/server/cgi-bin/
<Directory C:/WebCT/webct/webct>
Options Indexes FollowSymLinks
AllowOverride AuthConfig Limit
order allow,deny
allow from all
</Directory>
<Directory C:/WebCT/webct/server/cgi-bin>
AllowOverride None
Options ExecCGI
order allow,deny
allow from all
</Directory>
Alias /icons/ C:/WebCT/webct/server/icons/
<Directory C:/WebCT/webct/server/icons>
Options Indexes MultiViews
AllowOverride None
order allow,deny
allow from all
</Directory>
Alias /errordocs C:/WebCT/webct/server/errordocs
<Directory C:/WebCT/webct/server/errordocs>
AllowOverride None
Options MultiViews IncludesNoExec FollowSymLinks
AddType text/html .shtml
AddHandler server-parsed .shtml
order allow,deny
allow from all
</Directory>
#
# directory listings
#
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
#
# support for sending compressed files
#
AddEncoding x-compress Z
AddEncoding x-gzip gz
#
# language negotiation
#
AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it
LanguagePriority en fr de es fi el it sv pt da nl hu
#
# custom error pages
# comments can not follow ErrorDocument
#
ScriptAlias /webct/public/error_docs.pl C:/WebCT/webct/webct/generic/public/error_docs.pl
# active error documents
# "400 Bad Request"
ErrorDocument 400 /webct/public/error_docs.pl?400
# "401 Authorization Required"
ErrorDocument 401 /webct/public/error_docs.pl?401
# "403 Forbidden"
ErrorDocument 403 /webct/public/error_docs.pl?403
# "404 File Not Found"
ErrorDocument 404 /webct/public/error_docs.pl?404
# "500 Internal Server Error"
ErrorDocument 500 /webct/public/error_docs.pl?500
# "502 Bad Gateway"
ErrorDocument 502 /webct/public/error_docs.pl?502
# "503 Service Temporarily Unavailable"
ErrorDocument 503 /webct/public/error_docs.pl?503
# ErrorDocument 100 /errordocs/100.shtml # "100 Continue"
# ErrorDocument 101 /errordocs/101.shtml # "101 Switching Protocols"
# ErrorDocument 200 /errordocs/200.shtml # "200 OK"
# ErrorDocument 201 /errordocs/201.shtml # "201 Created"
# ErrorDocument 202 /errordocs/202.shtml # "202 Accepted"
# ErrorDocument 203 /errordocs/203.shtml # "203 Non-Authoritative Information"
# ErrorDocument 204 /errordocs/204.shtml # "204 No Content"
# ErrorDocument 205 /errordocs/205.shtml # "205 Reset Content"
# ErrorDocument 206 /errordocs/206.shtml # "206 Partial Content"
# ErrorDocument 300 /errordocs/300.shtml # "300 Multiple Choices"
# ErrorDocument 301 /errordocs/301.shtml # "301 Moved Permanently"
# ErrorDocument 302 /errordocs/302.shtml # "302 Moved Temporarily"
# ErrorDocument 303 /errordocs/303.shtml # "303 See Other"
# ErrorDocument 304 /errordocs/304.shtml # "304 Not Modified"
# ErrorDocument 305 /errordocs/305.shtml # "305 Use Proxy"
# ErrorDocument 402 /errordocs/402.shtml # "402 Payment Required"
# ErrorDocument 405 /errordocs/405.shtml # "405 Method Not Allowed"
# ErrorDocument 406 /errordocs/406.shtml # "406 Not Acceptable"
# ErrorDocument 407 /errordocs/407.shtml # "407 Proxy Authentication Required"
# ErrorDocument 408 /errordocs/408.shtml # "408 Request Time-out"
# ErrorDocument 409 /errordocs/409.shtml # "409 Conflict"
# ErrorDocument 410 /errordocs/410.shtml # "410 Gone"
# ErrorDocument 411 /errordocs/411.shtml # "411 Length Required"
# ErrorDocument 412 /errordocs/412.shtml # "412 Precondition Failed"
# ErrorDocument 413 /errordocs/413.shtml # "413 Request Entity Too Large"
# ErrorDocument 414 /errordocs/414.shtml # "414 Request-URI Too Large"
# ErrorDocument 415 /errordocs/415.shtml # "415 Unsupported Media Type"
# ErrorDocument 501 /errordocs/501.shtml # "501 Method Not Implemented"
# ErrorDocument 504 /errordocs/504.shtml # "504 Gateway Time-out"
# ErrorDocument 505 /errordocs/505.shtml # "505 HTTP Version Not Supported"
# ErrorDocument 506 /errordocs/506.shtml # "506 Variant Also Varies"
#
# fixes for broken browsers
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
/--------------------------------------------------------------/
/---------------magic------------------------------------------/
# Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in htdocs/manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
# Column #1: byte number to begin checking from, ">" indicates continuation
# Column #2: type of data to match
# Column #3: contents of data to match
# Column #4: MIME type of result
# Column #5: MIME encoding of result (optional)
#------------------------------------------------------------------------------
# Localstuff: file(1) magic for locally observed files
# Add any locally observed files here.
#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Java
0 short 0xcafe
>2 short 0xbabe application/java
#------------------------------------------------------------------------------
# audio: file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#
# Sun/NeXT audio data
0 string .snd
>12 belong 1 audio/basic
>12 belong 2 audio/basic
>12 belong 3 audio/basic
>12 belong 4 audio/basic
>12 belong 5 audio/basic
>12 belong 6 audio/basic
>12 belong 7 audio/basic
>12 belong 23 audio/x-adpcm
# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0 lelong 0x0064732E
>12 lelong 1 audio/x-dec-basic
>12 lelong 2 audio/x-dec-basic
>12 lelong 3 audio/x-dec-basic
>12 lelong 4 audio/x-dec-basic
>12 lelong 5 audio/x-dec-basic
>12 lelong 6 audio/x-dec-basic
>12 lelong 7 audio/x-dec-basic
# compressed (G.721 ADPCM)
>12 lelong 23 audio/x-dec-adpcm
# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
# AIFF audio data
8 string AIFF audio/x-aiff
# AIFF-C audio data
8 string AIFC audio/x-aiff
# IFF/8SVX audio data
8 string 8SVX audio/x-aiff
# Creative Labs AUDIO stuff
# Standard MIDI data
0 string MThd audio/unknown
#>9 byte >0 (format %d)
#>11 byte >1 using %d channels
# Creative Music (CMF) data
0 string CTMF audio/unknown
# SoundBlaster instrument data
0 string SBI audio/unknown
# Creative Labs voice data
0 string Creative\ Voice\ File audio/unknown
## is this next line right? it came this way...
#>19 byte 0x1A
#>23 byte >0 - version %d
#>22 byte >0 \b.%d
# [GRR 950115: is this also Creative Labs? Guessing that first line
# should be string instead of unknown-endian long...]
#0 long 0x4e54524b MultiTrack sound data
#0 string NTRK MultiTrack sound data
#>4 long x - version %ld
# Microsoft WAVE format (*.wav)
# [GRR 950115: probably all of the shorts and longs should be leshort/lelong]
# Microsoft RIFF
0 string RIFF audio/unknown
# - WAVE format
>8 string WAVE audio/x-wav
#------------------------------------------------------------------------------
# c-lang: file(1) magic for C programs or various scripts
#
# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0 string /*\ XPM image/x-xbm 7bit
# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
# C or REXX program text
0 string /* text/plain
# C++ program text
0 string // text/plain
#------------------------------------------------------------------------------
# compress: file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.
# standard unix compress
0 string \037\235 application/octet-stream x-compress
# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0 string \037\213 application/octet-stream x-gzip
# According to gzip.h, this is the correct byte order for packed data.
0 string \037\036 application/octet-stream
#
# This magic number is byte-order-independent.
#
0 short 017437 application/octet-stream
# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0 short 0x1fff application/octet-stream
0 string \377\037 application/octet-stream
# huf output
0 short 0145405 application/octet-stream
# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats. Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
# Keith Waclena <keith@cerberus.uchicago.edu>
#0 leshort 0x76FF squeezed data (CP/M, DOS)
#0 leshort 0x76FE crunched data (CP/M, DOS)
# Freeze
#0 string \037\237 Frozen file 2.1
#0 string \037\236 Frozen file 1.0 (or gzip 0.5)
# lzh?
#0 string \037\240 LZH compressed data
#------------------------------------------------------------------------------
# frame: file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0 string \<MakerFile application/x-frame
0 string \<MIFFile application/x-frame
0 string \<MakerDictionary application/x-frame
0 string \<MakerScreenFon application/x-frame
0 string \<MML application/x-frame
0 string \<Book application/x-frame
0 string \<Maker application/x-frame
#------------------------------------------------------------------------------
# html: file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0 string \<!DOCTYPE\ HTML text/html
0 string \<!doctype\ html text/html
0 string \<HEAD text/html
0 string \<head text/html
0 string \<TITLE text/html
0 string \<title text/html
0 string \<html text/html
0 string \<HTML text/html
0 string \<!-- text/html
0 string \<h1 text/html
0 string \<H1 text/html
#------------------------------------------------------------------------------
# images: file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR: TIFF allows both byte orders; GIF is probably little-endian]
#
# [GRR: what the hell is this doing in here?]
#0 string xbtoa btoa'd file
# PBMPLUS
# PBM file
0 string P1 image/x-portable-bitmap 7bit
# PGM file
0 string P2 image/x-portable-greymap 7bit
# PPM file
0 string P3 image/x-portable-pixmap 7bit
# PBM "rawbits" file
0 string P4 image/x-portable-bitmap
# PGM "rawbits" file
0 string P5 image/x-portable-greymap
# PPM "rawbits" file
0 string P6 image/x-portable-pixmap
# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR: this *must* go before TIFF]
0 string IIN1 image/x-niff
# TIFF and friends
# TIFF file, big-endian
0 string MM image/tiff
# TIFF file, little-endian
0 string II image/tiff
# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115: this was mine ("Zip GIF"):
# ZIF image (GIF+deflate alpha)
0 string GIF94z image/unknown
#
# GRR 950115: this is Jeremy Wohl's Free Graphics Format (better):
# FGF image (GIF+deflate beta)
0 string FGF95a image/unknown
#
# GRR 950115: this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
# PBF image (deflate compression)
0 string PBF image/unknown
# GIF
0 string GIF image/gif
# JPEG images
0 beshort 0xffd8 image/jpeg
# PC bitmaps (OS/2, Windoze BMP files) (Greg Roelofs, newt@uchicago.edu)
0 string BM image/bmp
#>14 byte 12 (OS/2 1.x format)
#>14 byte 64 (OS/2 2.x format)
#>14 byte 40 (Windows 3.x format)
#0 string IC icon
#0 string PI pointer
#0 string CI color icon
#0 string CP color pointer
#0 string BA bitmap array
#------------------------------------------------------------------------------
# lisp: file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0 string ;; text/plain 8bit
# Emacs 18 - this is always correct, but not very magical.
0 string \012( application/x-elc
# Emacs 19
0 string ;ELC\023\000\000\000 application/x-elc
#------------------------------------------------------------------------------
# mail.news: file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0 string Relay-Version: message/rfc822 7bit
0 string #!\ rnews message/rfc822 7bit
0 string N#!\ rnews message/rfc822 7bit
0 string Forward\ to message/rfc822 7bit
0 string Pipe\ to message/rfc822 7bit
0 string Return-Path: message/rfc822 7bit
0 string Path: message/news 8bit
0 string Xref: message/news 8bit
0 string From: message/rfc822 7bit
0 string Article message/news 8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#
0 string \376\067\0\043 application/msword
0 string \333\245-\0\0\0 application/msword
# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0 string \320\317\021\340\241\261 application/msword
#------------------------------------------------------------------------------
# printer: file(1) magic for printer-formatted files
#
# PostScript
0 string %! application/postscript
0 string \004%! application/postscript
# Acrobat
# (due to clamen@cs.cmu.edu)
0 string %PDF- application/pdf
#------------------------------------------------------------------------------
# sc: file(1) magic for "sc" spreadsheet
#
38 string Spreadsheet application/x-sc
#------------------------------------------------------------------------------
# tex: file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>
# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0 string \367\002 application/x-dvi
#0 string \367\203 TeX generic font data
#0 string \367\131 TeX packed font data
#0 string \367\312 TeX virtual font data
#0 string This\ is\ TeX, TeX transcript text
#0 string This\ is\ METAFONT, METAFONT transcript text
# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data. The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2 string \000\021 TeX font metric data
#2 string \000\022 TeX font metric data
#>34 string >\0 (%s)
# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0 string \\input\ texinfo Texinfo source text
#0 string This\ is\ Info\ file GNU Info text
# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0 leshort 0x02f7 application/x-dvi
# RTF - Rich Text Format
0 string {\\rtf application/rtf
#------------------------------------------------------------------------------
# animation: file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
# MPEG file
0 string \000\000\001\263 video/mpeg
#
# The contributor claims:
# I couldn't find a real magic number for these, however, this
# -appears- to work. Note that it might catch other files, too,
# so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
# DL file version 1 , medium format (160x100, 4 images/screen)
0 byte 1 video/unknown
0 byte 2 video/unknown
/--------------------------------------------------------------/
/--------------------mime.types--------------------------------/
# This is a comment. I love comments.
# This file controls what Internet media types are sent to the client for
# given file extension(s). Sending the correct media type to the client
# is important so they know how to handle the content of the file.
# Extra types can either be added here or by using an AddType directive
# in your config files. For more information about Internet media types,
# please read RFC 2045, 2046, 2047, 2048, and 2077. The Internet media type
# registry is at <ftp://ftp.iana.org/in-notes/iana/assignments/media-types/>.
# MIME type Extension
application/EDI-Consent
application/EDI-X12
application/EDIFACT
application/activemessage
application/andrew-inset ez
application/applefile
application/atomicmail
application/batch-smtp
application/cals-1840
application/commonground
application/cybercash
application/dca-rft
application/dec-dx
application/eshop
application/http
application/hyperstudio
application/iges
application/index
application/index.cmd
application/index.obj
application/index.response
application/index.vnd
application/ipp
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/macwriteii
application/marc
application/mathematica
application/mathematica-old
application/msword doc
application/news-message-id
application/news-transmission
application/ocsp-request
application/ocsp-response
application/octet-stream bin dms lha lzh exe class
application/oda oda
application/pdf pdf
application/pgp-encrypted
application/pgp-keys
application/pgp-signature
application/pkcs10
application/pkcs7-mime
application/pkcs7-signature
application/pkix-cert
application/pkix-crl
application/pkixcmp
application/postscript ai eps ps
application/prs.alvestrand.titrax-sheet
application/prs.cww
application/prs.nprend
application/remote-printing
application/riscos
application/rtf rtf
application/sdp
application/set-payment
application/set-payment-initiation
application/set-registration
application/set-registration-initiation
application/sgml
application/sgml-open-catalog
application/slate
application/smil smi smil
application/vemmi
application/vnd.3M.Post-it-Notes
application/vnd.FloGraphIt
application/vnd.accpac.simply.aso
application/vnd.accpac.simply.imp
application/vnd.acucobol
application/vnd.anser-web-certificate-issue-initiation
application/vnd.anser-web-funds-transfer-initiation
application/vnd.audiograph
application/vnd.businessobjects
application/vnd.claymore
application/vnd.commerce-battelle
application/vnd.commonspace
application/vnd.comsocaller
application/vnd.cosmocaller
application/vnd.cups-postscript
application/vnd.cups-raster
application/vnd.cups-raw
application/vnd.cybank
application/vnd.dna
application/vnd.dpgraph
application/vnd.dxr
application/vnd.ecdis-update
application/vnd.ecowin.chart
application/vnd.ecowin.filerequest
application/vnd.ecowin.fileupdate
application/vnd.ecowin.series
application/vnd.ecowin.seriesrequest
application/vnd.ecowin.seriesupdate
application/vnd.enliven
application/vnd.epson.msf
application/vnd.epson.quickanime
application/vnd.epson.salt
application/vnd.epson.ssf
application/vnd.fdf
application/vnd.ffsns
application/vnd.framemaker
application/vnd.fujitsu.oasys
application/vnd.fujitsu.oasys2
application/vnd.fujitsu.oasys3
application/vnd.fujitsu.oasysgp
application/vnd.fujitsu.oasysprs
application/vnd.fujixerox.docuworks
application/vnd.fut-misnet
application/vnd.hp-HPGL
application/vnd.hp-PCL
application/vnd.hp-PCLXL
application/vnd.hp-hpid
application/vnd.hp-hps
application/vnd.ibm.MiniPay
application/vnd.ibm.modcap
application/vnd.intercon.formnet
application/vnd.intertrust.digibox
application/vnd.intertrust.nncp
application/vnd.intu.qbo
application/vnd.intu.qfx
application/vnd.is-xpr
application/vnd.japannet-directory-service
application/vnd.japannet-jpnstore-wakeup
application/vnd.japannet-payment-wakeup
application/vnd.japannet-registration
application/vnd.japannet-registration-wakeup
application/vnd.japannet-setstore-wakeup
application/vnd.japannet-verification
application/vnd.japannet-verification-wakeup
application/vnd.koan
application/vnd.lotus-1-2-3
application/vnd.lotus-approach
application/vnd.lotus-freelance
application/vnd.lotus-notes
application/vnd.lotus-organizer
application/vnd.lotus-screencam
application/vnd.lotus-wordpro
application/vnd.mediastation.cdkey
application/vnd.meridian-slingshot
application/vnd.mif mif
application/vnd.minisoft-hp3000-save
application/vnd.mitsubishi.misty-guard.trustweb
application/vnd.mobius.daf
application/vnd.mobius.dis
application/vnd.mobius.msl
application/vnd.mobius.plc
application/vnd.mobius.txf
application/vnd.motorola.flexsuite
application/vnd.motorola.flexsuite.adsi
application/vnd.motorola.flexsuite.fis
application/vnd.motorola.flexsuite.gotap
application/vnd.motorola.flexsuite.kmr
application/vnd.motorola.flexsuite.ttc
application/vnd.motorola.flexsuite.wem
application/vnd.ms-artgalry
application/vnd.ms-asf
application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt
application/vnd.ms-project
application/vnd.ms-tnef
application/vnd.ms-works
application/vnd.music-niff
application/vnd.musician
application/vnd.netfpx
application/vnd.noblenet-directory
application/vnd.noblenet-sealer
application/vnd.noblenet-web
application/vnd.novadigm.EDM
application/vnd.novadigm.EDX
application/vnd.novadigm.EXT
application/vnd.osa.netdeploy
application/vnd.pg.format
application/vnd.pg.osasli
application/vnd.powerbuilder6
application/vnd.powerbuilder6-s
application/vnd.powerbuilder7
application/vnd.powerbuilder7-s
application/vnd.powerbuilder75
application/vnd.powerbuilder75-s
application/vnd.previewsystems.box
application/vnd.publishare-delta-tree
application/vnd.rapid
application/vnd.seemail
application/vnd.shana.informed.formdata
application/vnd.shana.informed.formtemplate
application/vnd.shana.informed.interchange
application/vnd.shana.informed.package
application/vnd.street-stream
application/vnd.svd
application/vnd.swiftview-ics
application/vnd.triscape.mxs
application/vnd.truedoc
application/vnd.ufdl
application/vnd.uplanet.alert
application/vnd.uplanet.alert-wbxml
application/vnd.uplanet.bearer-choi-wbxml
application/vnd.uplanet.bearer-choice
application/vnd.uplanet.cacheop
application/vnd.uplanet.cacheop-wbxml
application/vnd.uplanet.channel
application/vnd.uplanet.channel-wbxml
application/vnd.uplanet.list
application/vnd.uplanet.list-wbxml
application/vnd.uplanet.listcmd
application/vnd.uplanet.listcmd-wbxml
application/vnd.uplanet.signal
application/vnd.vcx
application/vnd.visio
application/vnd.wap.wbxml
application/vnd.wap.wmlc
application/vnd.wap.wmlscriptc
application/vnd.webturbo
application/vnd.wrq-hp3000-labelled
application/vnd.wt.stf
application/vnd.xara
application/vnd.xfdl
application/vnd.yellowriver-custom-menu
application/wita
application/wordperfect5.1
application/x-bcpio bcpio
application/x-cdlink vcd
application/x-chess-pgn pgn
application/x-compress
application/x-cpio cpio
application/x-csh csh
application/x-director dcr dir dxr
application/x-dvi dvi
application/x-futuresplash spl
application/x-gtar gtar
application/x-gzip
application/x-hdf hdf
application/x-javascript js
application/x-koan skp skd skt skm
application/x-latex latex
application/x-netcdf nc cdf
application/x-sh sh
application/x-shar shar
application/x-shockwave-flash swf
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo texi
application/x-troff t tr roff
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-ustar ustar
application/x-wais-source src
application/x400-bp
application/xml
application/zip zip
audio/32kadpcm
audio/basic au snd
audio/l16
audio/midi mid midi kar
audio/mpeg mpga mp2 mp3
audio/vnd.cns.anp1
audio/vnd.cns.inf1
audio/vnd.digital-winds
audio/vnd.lucent.voice
audio/vnd.nortel.vbk
audio/vnd.octel.sbc
audio/vnd.qcelp
audio/vnd.rhetorex.32kadpcm
audio/vnd.vmx.cvsd
audio/x-aiff aif aiff aifc
audio/x-pn-realaudio ram rm
audio/x-pn-realaudio-plugin rpm
audio/x-realaudio ra
audio/x-wav wav
chemical/x-pdb pdb xyz
image/bmp bmp
image/cgm
image/g3fax
image/gif gif
image/ief ief
image/jpeg jpeg jpg jpe
image/naplps
image/png png
image/prs.btif
image/prs.pti
image/tiff tiff tif
image/vnd.cns.inf2
image/vnd.dwg
image/vnd.dxf
image/vnd.fastbidsheet
image/vnd.fpx
image/vnd.mix
image/vnd.net-fpx
image/vnd.svf
image/vnd.wap.wbmp
image/vnd.xiff
image/x-cmu-raster ras
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
message/delivery-status
message/disposition-notification
message/external-body
message/http
message/news
message/partial
message/rfc822
message/s-http
model/iges igs iges
model/mesh msh mesh silo
model/vnd.dwf
model/vnd.flatland.3dml
model/vnd.gtw
model/vrml wrl vrml
multipart/alternative
multipart/appledouble
multipart/byteranges
multipart/digest
multipart/encrypted
multipart/form-data
multipart/header-set
multipart/mixed
multipart/parallel
multipart/related
multipart/report
multipart/signed
multipart/voice-message
text/calendar
text/css css
text/directory
text/enriched
text/html html htm
text/plain asc txt
text/prs.lines.tag
text/rfc822-headers
text/richtext rtx
text/rtf rtf
text/sgml sgml sgm
text/tab-separated-values tsv
text/uri-list
text/vnd.abc
text/vnd.flatland.3dml
text/vnd.fly
text/vnd.fmi.flexstor
text/vnd.in3d.3dml
text/vnd.in3d.spot
text/vnd.latex-z
text/vnd.motorola.reflex
text/vnd.wap.wml
text/vnd.wap.wmlscript
text/x-setext etx
text/xml xml
video/mpeg mpeg mpg mpe
video/quicktime qt mov
video/vnd.motorola.video
video/vnd.motorola.videop
video/vnd.vivo
video/x-msvideo avi
video/x-sgi-movie movie
x-conference/x-cooltalk ice
# types from our users
application/vnd.maple mws
/--------------------------------------------------------------/
Offline

