Advertisement
ben_

Untitled

Nov 12th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.57 KB | None | 0 0
  1. envvars
  2.  
  3. # envvars - default environment variables for apache2ctl
  4.  
  5. # this won't be correct after changing uid
  6. unset HOME
  7.  
  8. # for supporting multiple apache2 instances
  9. if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
  10. SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
  11. else
  12. SUFFIX=
  13. fi
  14.  
  15. # Since there is no sane way to get the parsed apache2 config in scripts, some
  16. # settings are defined via environment variables and then used in apache2ctl,
  17. # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
  18. export APACHE_RUN_USER=www-data
  19. export APACHE_RUN_GROUP=www-data
  20. export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
  21. export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
  22. export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
  23. # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
  24. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
  25.  
  26. ## The locale used by some modules like mod_dav
  27. export LANG=C
  28. ## Uncomment the following line to use the system default locale instead:
  29. #. /etc/default/locale
  30.  
  31. export LANG
  32.  
  33. ## The command to get the status for 'apache2ctl status'.
  34. ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
  35. #export APACHE_LYNX='www-browser -dump'
  36.  
  37. ## If you need a higher file descriptor limit, uncomment and adjust the
  38. ## following line (default is 8192):
  39. #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. ports.conf
  48.  
  49. # If you just change the port or add more ports here, you will likely also
  50. # have to change the VirtualHost statement in
  51. # /etc/apache2/sites-enabled/000-default
  52. # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
  53. # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
  54. # README.Debian.gz
  55.  
  56. NameVirtualHost *:80
  57. Listen 80
  58.  
  59. <IfModule mod_ssl.c>
  60. # If you add NameVirtualHost *:443 here, you will also have to change
  61. # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
  62. # to <VirtualHost *:443>
  63. # Server Name Indication for SSL named virtual hosts is currently not
  64. # supported by MSIE on Windows XP.
  65. Listen 443
  66. </IfModule>
  67.  
  68. <IfModule mod_gnutls.c>
  69. Listen 443
  70. </IfModule>
  71.  
  72.  
  73.  
  74.  
  75.  
  76. apache2.conf
  77.  
  78. #
  79. # Based upon the NCSA server configuration files originally by Rob McCool.
  80. #
  81. # This is the main Apache server configuration file. It contains the
  82. # configuration directives that give the server its instructions.
  83. # See http://httpd.apache.org/docs/2.2/ for detailed information about
  84. # the directives.
  85. #
  86. # Do NOT simply read the instructions in here without understanding
  87. # what they do. They're here only as hints or reminders. If you are unsure
  88. # consult the online docs. You have been warned.
  89. #
  90. # The configuration directives are grouped into three basic sections:
  91. # 1. Directives that control the operation of the Apache server process as a
  92. # whole (the 'global environment').
  93. # 2. Directives that define the parameters of the 'main' or 'default' server,
  94. # which responds to requests that aren't handled by a virtual host.
  95. # These directives also provide default values for the settings
  96. # of all virtual hosts.
  97. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  98. # different IP addresses or hostnames and have them handled by the
  99. # same Apache server process.
  100. #
  101. # Configuration and logfile names: If the filenames you specify for many
  102. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  103. # server will use that explicit path. If the filenames do *not* begin
  104. # with "/", the value of ServerRoot is prepended -- so "foo.log"
  105. # with ServerRoot set to "/etc/apache2" will be interpreted by the
  106. # server as "/etc/apache2/foo.log".
  107. #
  108.  
  109. ### Section 1: Global Environment
  110. #
  111. # The directives in this section affect the overall operation of Apache,
  112. # such as the number of concurrent requests it can handle or where it
  113. # can find its configuration files.
  114. #
  115.  
  116. #
  117. # ServerRoot: The top of the directory tree under which the server's
  118. # configuration, error, and log files are kept.
  119. #
  120. # NOTE! If you intend to place this on an NFS (or otherwise network)
  121. # mounted filesystem then please read the LockFile documentation (available
  122. # at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
  123. # you will save yourself a lot of trouble.
  124. #
  125. # Do NOT add a slash at the end of the directory path.
  126. #
  127. #ServerRoot "/etc/apache2"
  128.  
  129. #
  130. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  131. #
  132. LockFile ${APACHE_LOCK_DIR}/accept.lock
  133.  
  134. #
  135. # PidFile: The file in which the server should record its process
  136. # identification number when it starts.
  137. # This needs to be set in /etc/apache2/envvars
  138. #
  139. PidFile ${APACHE_PID_FILE}
  140.  
  141. #
  142. # Timeout: The number of seconds before receives and sends time out.
  143. #
  144. Timeout 300
  145.  
  146. #
  147. # KeepAlive: Whether or not to allow persistent connections (more than
  148. # one request per connection). Set to "Off" to deactivate.
  149. #
  150. KeepAlive On
  151.  
  152. #
  153. # MaxKeepAliveRequests: The maximum number of requests to allow
  154. # during a persistent connection. Set to 0 to allow an unlimited amount.
  155. # We recommend you leave this number high, for maximum performance.
  156. #
  157. MaxKeepAliveRequests 100
  158.  
  159. #
  160. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  161. # same client on the same connection.
  162. #
  163. KeepAliveTimeout 5
  164.  
  165. ##
  166. ## Server-Pool Size Regulation (MPM specific)
  167. ##
  168.  
  169. # prefork MPM
  170. # StartServers: number of server processes to start
  171. # MinSpareServers: minimum number of server processes which are kept spare
  172. # MaxSpareServers: maximum number of server processes which are kept spare
  173. # MaxClients: maximum number of server processes allowed to start
  174. # MaxRequestsPerChild: maximum number of requests a server process serves
  175. <IfModule mpm_prefork_module>
  176. StartServers 5
  177. MinSpareServers 5
  178. MaxSpareServers 10
  179. MaxClients 150
  180. MaxRequestsPerChild 0
  181. </IfModule>
  182.  
  183. # worker MPM
  184. # StartServers: initial number of server processes to start
  185. # MinSpareThreads: minimum number of worker threads which are kept spare
  186. # MaxSpareThreads: maximum number of worker threads which are kept spare
  187. # ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
  188. # graceful restart. ThreadLimit can only be changed by stopping
  189. # and starting Apache.
  190. # ThreadsPerChild: constant number of worker threads in each server process
  191. # MaxClients: maximum number of simultaneous client connections
  192. # MaxRequestsPerChild: maximum number of requests a server process serves
  193. <IfModule mpm_worker_module>
  194. StartServers 2
  195. MinSpareThreads 25
  196. MaxSpareThreads 75
  197. ThreadLimit 64
  198. ThreadsPerChild 25
  199. MaxClients 150
  200. MaxRequestsPerChild 0
  201. </IfModule>
  202.  
  203. # event MPM
  204. # StartServers: initial number of server processes to start
  205. # MinSpareThreads: minimum number of worker threads which are kept spare
  206. # MaxSpareThreads: maximum number of worker threads which are kept spare
  207. # ThreadsPerChild: constant number of worker threads in each server process
  208. # MaxClients: maximum number of simultaneous client connections
  209. # MaxRequestsPerChild: maximum number of requests a server process serves
  210. <IfModule mpm_event_module>
  211. StartServers 2
  212. MinSpareThreads 25
  213. MaxSpareThreads 75
  214. ThreadLimit 64
  215. ThreadsPerChild 25
  216. MaxClients 150
  217. MaxRequestsPerChild 0
  218. </IfModule>
  219.  
  220. # These need to be set in /etc/apache2/envvars
  221. User ${APACHE_RUN_USER}
  222. Group ${APACHE_RUN_GROUP}
  223.  
  224. #
  225. # AccessFileName: The name of the file to look for in each directory
  226. # for additional configuration directives. See also the AllowOverride
  227. # directive.
  228. #
  229.  
  230. AccessFileName .htaccess
  231.  
  232. #
  233. # The following lines prevent .htaccess and .htpasswd files from being
  234. # viewed by Web clients.
  235. #
  236. <Files ~ "^\.ht">
  237. Order allow,deny
  238. Deny from all
  239. Satisfy all
  240. </Files>
  241.  
  242. #
  243. # DefaultType is the default MIME type the server will use for a document
  244. # if it cannot otherwise determine one, such as from filename extensions.
  245. # If your server contains mostly text or HTML documents, "text/plain" is
  246. # a good value. If most of your content is binary, such as applications
  247. # or images, you may want to use "application/octet-stream" instead to
  248. # keep browsers from trying to display binary files as though they are
  249. # text.
  250. #
  251. DefaultType text/plain
  252.  
  253.  
  254. #
  255. # HostnameLookups: Log the names of clients or just their IP addresses
  256. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  257. # The default is off because it'd be overall better for the net if people
  258. # had to knowingly turn this feature on, since enabling it means that
  259. # each client request will result in AT LEAST one lookup request to the
  260. # nameserver.
  261. #
  262. HostnameLookups Off
  263.  
  264. # ErrorLog: The location of the error log file.
  265. # If you do not specify an ErrorLog directive within a <VirtualHost>
  266. # container, error messages relating to that virtual host will be
  267. # logged here. If you *do* define an error logfile for a <VirtualHost>
  268. # container, that host's errors will be logged there and not here.
  269. #
  270. ErrorLog ${APACHE_LOG_DIR}/error.log
  271.  
  272. #
  273. # LogLevel: Control the number of messages logged to the error_log.
  274. # Possible values include: debug, info, notice, warn, error, crit,
  275. # alert, emerg.
  276. #
  277. LogLevel warn
  278.  
  279. # Include module configuration:
  280. Include mods-enabled/*.load
  281. Include mods-enabled/*.conf
  282.  
  283. # Include all the user configurations:
  284. Include httpd.conf
  285.  
  286. # Include ports listing
  287. Include ports.conf
  288.  
  289. #
  290. # The following directives define some format nicknames for use with
  291. # a CustomLog directive (see below).
  292. # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
  293. #
  294. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  295. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  296. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  297. LogFormat "%{Referer}i -> %U" referer
  298. LogFormat "%{User-agent}i" agent
  299.  
  300. # Include of directories ignores editors' and dpkg's backup files,
  301. # see README.Debian for details.
  302.  
  303. # Include generic snippets of statements
  304. Include conf.d/
  305.  
  306. # Include the virtual host configurations:
  307. Include sites-enabled/
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314. magic
  315.  
  316. # Magic data for mod_mime_magic (originally for file(1) command)
  317. #
  318. # The format is 4-5 columns:
  319. # Column #1: byte number to begin checking from, ">" indicates continuation
  320. # Column #2: type of data to match
  321. # Column #3: contents of data to match
  322. # Column #4: MIME type of result
  323. # Column #5: MIME encoding of result (optional)
  324.  
  325. #------------------------------------------------------------------------------
  326. # Localstuff: file(1) magic for locally observed files
  327. # Add any locally observed files here.
  328.  
  329. # Real Audio (Magic .ra\0375)
  330. 0 belong 0x2e7261fd audio/x-pn-realaudio
  331. 0 string .RMF application/vnd.rn-realmedia
  332.  
  333. #video/x-pn-realvideo
  334. #video/vnd.rn-realvideo
  335. #application/vnd.rn-realmedia
  336. # sigh, there are many mimes for that but the above are the most common.
  337.  
  338. # Taken from magic, converted to magic.mime
  339. # mime types according to http://www.geocities.com/nevilo/mod.htm:
  340. # audio/it .it
  341. # audio/x-zipped-it .itz
  342. # audio/xm fasttracker modules
  343. # audio/x-s3m screamtracker modules
  344. # audio/s3m screamtracker modules
  345. # audio/x-zipped-mod mdz
  346. # audio/mod mod
  347. # audio/x-mod All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z)
  348.  
  349. # Taken from loader code from mikmod version 2.14
  350. # by Steve McIntyre (stevem@chiark.greenend.org.uk)
  351. # <doj@cubic.org> added title printing on 2003-06-24
  352. 0 string MAS_UTrack_V00
  353. >14 string >/0 audio/x-mod
  354. #audio/x-tracker-module
  355.  
  356. #0 string UN05 MikMod UNI format module sound data
  357.  
  358. 0 string Extended\ Module: audio/x-mod
  359. #audio/x-tracker-module
  360. ##>17 string >\0 Title: "%s"
  361.  
  362. 21 string/c \!SCREAM! audio/x-mod
  363. #audio/x-screamtracker-module
  364. 21 string BMOD2STM audio/x-mod
  365. #audio/x-screamtracker-module
  366. 1080 string M.K. audio/x-mod
  367. #audio/x-protracker-module
  368. #>0 string >\0 Title: "%s"
  369. 1080 string M!K! audio/x-mod
  370. #audio/x-protracker-module
  371. #>0 string >\0 Title: "%s"
  372. 1080 string FLT4 audio/x-mod
  373. #audio/x-startracker-module
  374. #>0 string >\0 Title: "%s"
  375. 1080 string FLT8 audio/x-mod
  376. #audio/x-startracker-module
  377. #>0 string >\0 Title: "%s"
  378. 1080 string 4CHN audio/x-mod
  379. #audio/x-fasttracker-module
  380. #>0 string >\0 Title: "%s"
  381. 1080 string 6CHN audio/x-mod
  382. #audio/x-fasttracker-module
  383. #>0 string >\0 Title: "%s"
  384. 1080 string 8CHN audio/x-mod
  385. #audio/x-fasttracker-module
  386. #>0 string >\0 Title: "%s"
  387. 1080 string CD81 audio/x-mod
  388. #audio/x-oktalyzer-tracker-module
  389. #>0 string >\0 Title: "%s"
  390. 1080 string OKTA audio/x-mod
  391. #audio/x-oktalyzer-tracker-module
  392. #>0 string >\0 Title: "%s"
  393. # Not good enough.
  394. #1082 string CH
  395. #>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
  396. 1080 string 16CN audio/x-mod
  397. #audio/x-taketracker-module
  398. #>0 string >\0 Title: "%s"
  399. 1080 string 32CN audio/x-mod
  400. #audio/x-taketracker-module
  401. #>0 string >\0 Title: "%s"
  402.  
  403. # Impuse tracker module (it)
  404. 0 string IMPM audio/x-mod
  405. #>4 string >\0 "%s"
  406. #>40 leshort !0 compatible w/ITv%x
  407. #>42 leshort !0 created w/ITv%x
  408.  
  409. #------------------------------------------------------------------------------
  410. # end local stuff
  411. #------------------------------------------------------------------------------
  412.  
  413. # xml based formats!
  414.  
  415. # svg
  416.  
  417. 0 string \<?xml
  418. # text/xml
  419. >38 string \<\!DOCTYPE\040svg image/svg+xml
  420.  
  421.  
  422. # xml
  423. 0 string \<?xml text/xml
  424.  
  425.  
  426. #------------------------------------------------------------------------------
  427. # Java
  428.  
  429. 0 short 0xcafe
  430. >2 short 0xbabe application/java
  431.  
  432. #------------------------------------------------------------------------------
  433. # audio: file(1) magic for sound formats
  434. #
  435. # from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
  436. #
  437.  
  438. # Sun/NeXT audio data
  439. 0 string .snd
  440. >12 belong 1 audio/basic
  441. >12 belong 2 audio/basic
  442. >12 belong 3 audio/basic
  443. >12 belong 4 audio/basic
  444. >12 belong 5 audio/basic
  445. >12 belong 6 audio/basic
  446. >12 belong 7 audio/basic
  447.  
  448. >12 belong 23 audio/x-adpcm
  449.  
  450. # DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
  451. # that uses little-endian encoding and has a different magic number
  452. # (0x0064732E in little-endian encoding).
  453. 0 lelong 0x0064732E
  454. >12 lelong 1 audio/x-dec-basic
  455. >12 lelong 2 audio/x-dec-basic
  456. >12 lelong 3 audio/x-dec-basic
  457. >12 lelong 4 audio/x-dec-basic
  458. >12 lelong 5 audio/x-dec-basic
  459. >12 lelong 6 audio/x-dec-basic
  460. >12 lelong 7 audio/x-dec-basic
  461. # compressed (G.721 ADPCM)
  462. >12 lelong 23 audio/x-dec-adpcm
  463.  
  464. # Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
  465. # AIFF audio data
  466. 8 string AIFF audio/x-aiff
  467. # AIFF-C audio data
  468. 8 string AIFC audio/x-aiff
  469. # IFF/8SVX audio data
  470. 8 string 8SVX audio/x-aiff
  471.  
  472.  
  473.  
  474. # Creative Labs AUDIO stuff
  475. # Standard MIDI data
  476. 0 string MThd audio/unknown
  477. #>9 byte >0 (format %d)
  478. #>11 byte >1 using %d channels
  479. # Creative Music (CMF) data
  480. 0 string CTMF audio/unknown
  481. # SoundBlaster instrument data
  482. 0 string SBI audio/unknown
  483. # Creative Labs voice data
  484. 0 string Creative\ Voice\ File audio/unknown
  485. ## is this next line right? it came this way...
  486. #>19 byte 0x1A
  487. #>23 byte >0 - version %d
  488. #>22 byte >0 \b.%d
  489.  
  490. # [GRR 950115: is this also Creative Labs? Guessing that first line
  491. # should be string instead of unknown-endian long...]
  492. #0 long 0x4e54524b MultiTrack sound data
  493. #0 string NTRK MultiTrack sound data
  494. #>4 long x - version %ld
  495.  
  496. # Microsoft WAVE format (*.wav)
  497. # [GRR 950115: probably all of the shorts and longs should be leshort/lelong]
  498. # Microsoft RIFF
  499. 0 string RIFF
  500. # - WAVE format
  501. >8 string WAVE audio/x-wav
  502. >8 string/B AVI video/x-msvideo
  503. #
  504. >8 string CDRA image/x-coreldraw
  505.  
  506. # AAC (aka MPEG-2 NBC)
  507. 0 beshort&0xfff6 0xfff0 audio/X-HX-AAC-ADTS
  508. 0 string ADIF audio/X-HX-AAC-ADIF
  509. 0 beshort&0xffe0 0x56e0 audio/MP4A-LATM
  510. 0 beshort 0x4De1 audio/MP4A-LATM
  511.  
  512. # MPEG Layer 3 sound files
  513. 0 beshort&0xfffe =0xfffa audio/mpeg
  514. #MP3 with ID3 tag
  515. 0 string ID3 audio/mpeg
  516. # Ogg/Vorbis
  517. 0 string OggS application/ogg
  518.  
  519. #------------------------------------------------------------------------------
  520. # c-lang: file(1) magic for C programs or various scripts
  521. #
  522.  
  523. # XPM icons (Greg Roelofs, newt@uchicago.edu)
  524. # ideally should go into "images", but entries below would tag XPM as C source
  525. 0 string /*\ XPM image/x-xpmi 7bit
  526.  
  527. # 3DS (3d Studio files)
  528. #16 beshort 0x3d3d image/x-3ds
  529.  
  530. # this first will upset you if you're a PL/1 shop... (are there any left?)
  531. # in which case rm it; ascmagic will catch real C programs
  532. # C or REXX program text
  533. #0 string /* text/x-c
  534. # C++ program text
  535. #0 string // text/x-c++
  536.  
  537. #------------------------------------------------------------------------------
  538. # commands: file(1) magic for various shells and interpreters
  539. #
  540. #0 string :\ shell archive or commands for antique kernel text
  541. 0 string #!/bin/sh application/x-shellscript
  542. 0 string #!\ /bin/sh application/x-shellscript
  543. 0 string #!/bin/csh application/x-shellscript
  544. 0 string #!\ /bin/csh application/x-shellscript
  545. # korn shell magic, sent by George Wu, gwu@clyde.att.com
  546. 0 string #!/bin/ksh application/x-shellscript
  547. 0 string #!\ /bin/ksh application/x-shellscript
  548. 0 string #!/bin/tcsh application/x-shellscript
  549. 0 string #!\ /bin/tcsh application/x-shellscript
  550. 0 string #!/usr/local/tcsh application/x-shellscript
  551. 0 string #!\ /usr/local/tcsh application/x-shellscript
  552. 0 string #!/usr/local/bin/tcsh application/x-shellscript
  553. 0 string #!\ /usr/local/bin/tcsh application/x-shellscript
  554. # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
  555. 0 string #!/bin/bash application/x-shellscript
  556. 0 string #!\ /bin/bash application/x-shellscript
  557. 0 string #!/usr/local/bin/bash application/x-shellscript
  558. 0 string #!\ /usr/local/bin/bash application/x-shellscript
  559.  
  560. #
  561. # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
  562. 0 string #!/bin/zsh application/x-shellscript
  563. 0 string #!/usr/bin/zsh application/x-shellscript
  564. 0 string #!/usr/local/bin/zsh application/x-shellscript
  565. 0 string #!\ /usr/local/bin/zsh application/x-shellscript
  566. 0 string #!/usr/local/bin/ash application/x-shellscript
  567. 0 string #!\ /usr/local/bin/ash application/x-shellscript
  568. #0 string #!/usr/local/bin/ae Neil Brown's ae
  569. #0 string #!\ /usr/local/bin/ae Neil Brown's ae
  570. 0 string #!/bin/nawk application/x-nawk
  571. 0 string #!\ /bin/nawk application/x-nawk
  572. 0 string #!/usr/bin/nawk application/x-nawk
  573. 0 string #!\ /usr/bin/nawk application/x-nawk
  574. 0 string #!/usr/local/bin/nawk application/x-nawk
  575. 0 string #!\ /usr/local/bin/nawk application/x-nawk
  576. 0 string #!/bin/gawk application/x-gawk
  577. 0 string #!\ /bin/gawk application/x-gawk
  578. 0 string #!/usr/bin/gawk application/x-gawk
  579. 0 string #!\ /usr/bin/gawk application/x-gawk
  580. 0 string #!/usr/local/bin/gawk application/x-gawk
  581. 0 string #!\ /usr/local/bin/gawk application/x-gawk
  582. #
  583. 0 string #!/bin/awk application/x-awk
  584. 0 string #!\ /bin/awk application/x-awk
  585. 0 string #!/usr/bin/awk application/x-awk
  586. 0 string #!\ /usr/bin/awk application/x-awk
  587. # update to distinguish from *.vcf files by Joerg Jenderek: joerg dot jenderek at web dot de
  588. #0 regex BEGIN[[:space:]]*[{] application/x-awk
  589.  
  590. # For Larry Wall's perl language. The ``eval'' line recognizes an
  591. # outrageously clever hack for USG systems.
  592. # Keith Waclena <keith@cerberus.uchicago.edu>
  593. 0 string #!/bin/perl application/x-perl
  594. 0 string #!\ /bin/perl application/x-perl
  595. 0 string eval\ "exec\ /bin/perl application/x-perl
  596. 0 string #!/usr/bin/perl application/x-perl
  597. 0 string #!\ /usr/bin/perl application/x-perl
  598. 0 string eval\ "exec\ /usr/bin/perl application/x-perl
  599. 0 string #!/usr/local/bin/perl application/x-perl
  600. 0 string #!\ /usr/local/bin/perl application/x-perl
  601. 0 string eval\ "exec\ /usr/local/bin/perl application/x-perl
  602.  
  603. #------------------------------------------------------------------------------
  604. # compress: file(1) magic for pure-compression formats (no archives)
  605. #
  606. # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
  607. #
  608. # Formats for various forms of compressed data
  609. # Formats for "compress" proper have been moved into "compress.c",
  610. # because it tries to uncompress it to figure out what's inside.
  611.  
  612. # standard unix compress
  613. #0 string \037\235 application/x-compress
  614.  
  615. # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
  616. #0 string \037\213 application/x-gzip
  617.  
  618. 0 string PK\003\004 application/x-zip
  619.  
  620. # RAR archiver (Greg Roelofs, newt@uchicago.edu)
  621. 0 string Rar! application/x-rar
  622.  
  623. # According to gzip.h, this is the correct byte order for packed data.
  624. 0 string \037\036 application/octet-stream
  625. #
  626. # This magic number is byte-order-independent.
  627. #
  628. 0 short 017437 application/octet-stream
  629.  
  630. # XXX - why *two* entries for "compacted data", one of which is
  631. # byte-order independent, and one of which is byte-order dependent?
  632. #
  633. # compacted data
  634. 0 short 0x1fff application/octet-stream
  635. 0 string \377\037 application/octet-stream
  636. # huf output
  637. 0 short 0145405 application/octet-stream
  638.  
  639. # Squeeze and Crunch...
  640. # These numbers were gleaned from the Unix versions of the programs to
  641. # handle these formats. Note that I can only uncrunch, not crunch, and
  642. # I didn't have a crunched file handy, so the crunch number is untested.
  643. # Keith Waclena <keith@cerberus.uchicago.edu>
  644. #0 leshort 0x76FF squeezed data (CP/M, DOS)
  645. #0 leshort 0x76FE crunched data (CP/M, DOS)
  646.  
  647. # Freeze
  648. #0 string \037\237 Frozen file 2.1
  649. #0 string \037\236 Frozen file 1.0 (or gzip 0.5)
  650.  
  651. # lzh?
  652. #0 string \037\240 LZH compressed data
  653.  
  654. 257 string ustar\0 application/x-tar posix
  655. 257 string ustar\040\040\0 application/x-tar gnu
  656.  
  657. 0 short 070707 application/x-cpio
  658. 0 short 0143561 application/x-cpio swapped
  659.  
  660. 0 string =<ar> application/x-archive
  661. 0 string \!<arch> application/x-archive
  662. >8 string debian application/x-debian-package
  663.  
  664. #------------------------------------------------------------------------------
  665. #
  666. # RPM: file(1) magic for Red Hat Packages Erik Troan (ewt@redhat.com)
  667. #
  668. 0 beshort 0xedab
  669. >2 beshort 0xeedb application/x-rpm
  670.  
  671. 0 lelong&0x8080ffff 0x0000081a application/x-arc lzw
  672. 0 lelong&0x8080ffff 0x0000091a application/x-arc squashed
  673. 0 lelong&0x8080ffff 0x0000021a application/x-arc uncompressed
  674. 0 lelong&0x8080ffff 0x0000031a application/x-arc packed
  675. 0 lelong&0x8080ffff 0x0000041a application/x-arc squeezed
  676. 0 lelong&0x8080ffff 0x0000061a application/x-arc crunched
  677.  
  678. 0 leshort 0xea60 application/x-arj
  679.  
  680. # LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu)
  681. 2 string -lh0- application/x-lharc lh0
  682. 2 string -lh1- application/x-lharc lh1
  683. 2 string -lz4- application/x-lharc lz4
  684. 2 string -lz5- application/x-lharc lz5
  685. # [never seen any but the last; -lh4- reported in comp.compression:]
  686. 2 string -lzs- application/x-lha lzs
  687. 2 string -lh\ - application/x-lha lh
  688. 2 string -lhd- application/x-lha lhd
  689. 2 string -lh2- application/x-lha lh2
  690. 2 string -lh3- application/x-lha lh3
  691. 2 string -lh4- application/x-lha lh4
  692. 2 string -lh5- application/x-lha lh5
  693. 2 string -lh6- application/x-lha lh6
  694. 2 string -lh7- application/x-lha lh7
  695. # Shell archives
  696. 10 string #\ This\ is\ a\ shell\ archive application/octet-stream x-shell
  697.  
  698. #------------------------------------------------------------------------------
  699. # frame: file(1) magic for FrameMaker files
  700. #
  701. # This stuff came on a FrameMaker demo tape, most of which is
  702. # copyright, but this file is "published" as witness the following:
  703. #
  704. 0 string \<MakerFile application/x-frame
  705. 0 string \<MIFFile application/x-frame
  706. 0 string \<MakerDictionary application/x-frame
  707. 0 string \<MakerScreenFon application/x-frame
  708. 0 string \<MML application/x-frame
  709. 0 string \<Book application/x-frame
  710. 0 string \<Maker application/x-frame
  711.  
  712. #------------------------------------------------------------------------------
  713. # html: file(1) magic for HTML (HyperText Markup Language) docs
  714. #
  715. # from Daniel Quinlan <quinlan@yggdrasil.com>
  716. #
  717. 0 string/cB \<!DOCTYPE\ html text/html
  718. 0 string/cb \<head text/html
  719. 0 string/cb \<title text/html
  720. 0 string/bc \<html text/html
  721. 0 string \<!-- text/html
  722. 0 string/c \<h1 text/html
  723.  
  724. 0 string \<?xml text/xml
  725.  
  726. #------------------------------------------------------------------------------
  727. # images: file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
  728. #
  729. # originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
  730. # additions by janl@ifi.uio.no as well as others. Jan also suggested
  731. # merging several one- and two-line files into here.
  732. #
  733. # XXX - byte order for GIF and TIFF fields?
  734. # [GRR: TIFF allows both byte orders; GIF is probably little-endian]
  735. #
  736.  
  737. # [GRR: what the hell is this doing in here?]
  738. #0 string xbtoa btoa'd file
  739.  
  740. # PBMPLUS
  741. # PBM file
  742. 0 string P1 image/x-portable-bitmap 7bit
  743. # PGM file
  744. 0 string P2 image/x-portable-greymap 7bit
  745. # PPM file
  746. 0 string P3 image/x-portable-pixmap 7bit
  747. # PBM "rawbits" file
  748. 0 string P4 image/x-portable-bitmap
  749. # PGM "rawbits" file
  750. 0 string P5 image/x-portable-greymap
  751. # PPM "rawbits" file
  752. 0 string P6 image/x-portable-pixmap
  753.  
  754. # NIFF (Navy Interchange File Format, a modification of TIFF)
  755. # [GRR: this *must* go before TIFF]
  756. 0 string IIN1 image/x-niff
  757.  
  758. # TIFF and friends
  759. # TIFF file, big-endian
  760. 0 string MM image/tiff
  761. # TIFF file, little-endian
  762. 0 string II image/tiff
  763.  
  764. # possible GIF replacements; none yet released!
  765. # (Greg Roelofs, newt@uchicago.edu)
  766. #
  767. # GRR 950115: this was mine ("Zip GIF"):
  768. # ZIF image (GIF+deflate alpha)
  769. 0 string GIF94z image/unknown
  770. #
  771. # GRR 950115: this is Jeremy Wohl's Free Graphics Format (better):
  772. # FGF image (GIF+deflate beta)
  773. 0 string FGF95a image/unknown
  774. #
  775. # GRR 950115: this is Thomas Boutell's Portable Bitmap Format proposal
  776. # (best; not yet implemented):
  777. # PBF image (deflate compression)
  778. 0 string PBF image/unknown
  779.  
  780. # GIF
  781. 0 string GIF image/gif
  782.  
  783. # JPEG images
  784. 0 beshort 0xffd8 image/jpeg
  785.  
  786. # PC bitmaps (OS/2, Windoze BMP files) (Greg Roelofs, newt@uchicago.edu)
  787. 0 string BM image/x-ms-bmp
  788. #>14 byte 12 (OS/2 1.x format)
  789. #>14 byte 64 (OS/2 2.x format)
  790. #>14 byte 40 (Windows 3.x format)
  791. #0 string IC icon
  792. #0 string PI pointer
  793. #0 string CI color icon
  794. #0 string CP color pointer
  795. #0 string BA bitmap array
  796.  
  797. # CDROM Filesystems
  798. 32769 string CD001 application/x-iso9660
  799.  
  800. # Newer StuffIt archives (grant@netbsd.org)
  801. 0 string StuffIt application/x-stuffit
  802. #>162 string >0 : %s
  803.  
  804. # BinHex is the Macintosh ASCII-encoded file format (see also "apple")
  805. # Daniel Quinlan, quinlan@yggdrasil.com
  806. 11 string must\ be\ converted\ with\ BinHex\ 4 application/mac-binhex40
  807. ##>41 string x \b, version %.3s
  808.  
  809.  
  810. #------------------------------------------------------------------------------
  811. # lisp: file(1) magic for lisp programs
  812. #
  813. # various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
  814. 0 string ;; text/plain 8bit
  815. # Emacs 18 - this is always correct, but not very magical.
  816. 0 string \012( application/x-elc
  817. # Emacs 19
  818. 0 string ;ELC\023\000\000\000 application/x-elc
  819.  
  820. #------------------------------------------------------------------------------
  821. # mail.news: file(1) magic for mail and news
  822. #
  823. # There are tests to ascmagic.c to cope with mail and news.
  824. 0 string Relay-Version: message/rfc822 7bit
  825. 0 string #!\ rnews message/rfc822 7bit
  826. 0 string N#!\ rnews message/rfc822 7bit
  827. 0 string Forward\ to message/rfc822 7bit
  828. 0 string Pipe\ to message/rfc822 7bit
  829. 0 string Return-Path: message/rfc822 7bit
  830. 0 string Received: message/rfc822
  831. 0 string Path: message/news 8bit
  832. 0 string Xref: message/news 8bit
  833. 0 string From: message/rfc822 7bit
  834. 0 string Article message/news 8bit
  835. #------------------------------------------------------------------------------
  836. # msword: file(1) magic for MS Word files
  837. #
  838. # Contributor claims:
  839. # Reversed-engineered MS Word magic numbers
  840. #
  841.  
  842. 0 string \376\067\0\043 application/msword
  843. 0 string \320\317\021\340\241\261 application/msword
  844. 0 string \333\245-\0\0\0 application/msword
  845.  
  846.  
  847.  
  848. #------------------------------------------------------------------------------
  849. # printer: file(1) magic for printer-formatted files
  850. #
  851.  
  852. # PostScript
  853. 0 string %! application/postscript
  854. 0 string \004%! application/postscript
  855.  
  856. # Acrobat
  857. # (due to clamen@cs.cmu.edu)
  858. 0 string %PDF- application/pdf
  859.  
  860. #------------------------------------------------------------------------------
  861. # sc: file(1) magic for "sc" spreadsheet
  862. #
  863. 38 string Spreadsheet application/x-sc
  864.  
  865. #------------------------------------------------------------------------------
  866. # tex: file(1) magic for TeX files
  867. #
  868. # XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
  869. #
  870. # From <conklin@talisman.kaleida.com>
  871.  
  872. # Although we may know the offset of certain text fields in TeX DVI
  873. # and font files, we can't use them reliably because they are not
  874. # zero terminated. [but we do anyway, christos]
  875. 0 string \367\002 application/x-dvi
  876. #0 string \367\203 TeX generic font data
  877. #0 string \367\131 TeX packed font data
  878. #0 string \367\312 TeX virtual font data
  879. #0 string This\ is\ TeX, TeX transcript text
  880. #0 string This\ is\ METAFONT, METAFONT transcript text
  881.  
  882. # There is no way to detect TeX Font Metric (*.tfm) files without
  883. # breaking them apart and reading the data. The following patterns
  884. # match most *.tfm files generated by METAFONT or afm2tfm.
  885. 2 string \000\021 application/x-tex-tfm
  886. 2 string \000\022 application/x-tex-tfm
  887. #>34 string >\0 (%s)
  888.  
  889. # Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
  890. 0 string \\input\ texinfo text/x-texinfo
  891. 0 string This\ is\ Info\ file text/x-info
  892.  
  893. # correct TeX magic for Linux (and maybe more)
  894. # from Peter Tobias (tobias@server.et-inf.fho-emden.de)
  895. #
  896. 0 leshort 0x02f7 application/x-dvi
  897.  
  898. # RTF - Rich Text Format
  899. 0 string {\\rtf text/rtf
  900.  
  901. #------------------------------------------------------------------------------
  902. # animation: file(1) magic for animation/movie formats
  903. #
  904. # animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
  905. # MPEG file
  906. # MPEG sequences
  907. 0 belong 0x000001BA
  908. >4 byte &0x40 video/mp2p
  909. >4 byte ^0x40 video/mpeg
  910. 0 belong 0x000001BB video/mpeg
  911. 0 belong 0x000001B0 video/mp4v-es
  912. 0 belong 0x000001B5 video/mp4v-es
  913. 0 belong 0x000001B3 video/mpv
  914. 0 belong&0xFF5FFF1F 0x47400010 video/mp2t
  915. 0 belong 0x00000001
  916. >4 byte&0x1F 0x07 video/h264
  917.  
  918. # FLI animation format
  919. 0 leshort 0xAF11 video/fli
  920. # FLC animation format
  921. 0 leshort 0xAF12 video/flc
  922. #
  923. # SGI and Apple formats
  924. # Added ISO mimes
  925. 0 string MOVI video/sgi
  926. 4 string moov video/quicktime
  927. 4 string mdat video/quicktime
  928. 4 string wide video/quicktime
  929. 4 string skip video/quicktime
  930. 4 string free video/quicktime
  931. 4 string idsc image/x-quicktime
  932. 4 string idat image/x-quicktime
  933. 4 string pckg application/x-quicktime
  934. 4 string/B jP image/jp2
  935. 4 string ftyp
  936. >8 string isom video/mp4
  937. >8 string mp41 video/mp4
  938. >8 string mp42 video/mp4
  939. >8 string/B jp2 image/jp2
  940. >8 string 3gp video/3gpp
  941. >8 string avc1 video/3gpp
  942. >8 string mmp4 video/mp4
  943. >8 string/B M4A audio/mp4
  944. >8 string/B qt video/quicktime
  945. # The contributor claims:
  946. # I couldn't find a real magic number for these, however, this
  947. # -appears- to work. Note that it might catch other files, too,
  948. # so BE CAREFUL!
  949. #
  950. # Note that title and author appear in the two 20-byte chunks
  951. # at decimal offsets 2 and 22, respectively, but they are XOR'ed with
  952. # 255 (hex FF)! DL format SUCKS BIG ROCKS.
  953. #
  954. # DL file version 1 , medium format (160x100, 4 images/screen)
  955. 0 byte 1 video/unknown
  956. 0 byte 2 video/unknown
  957. #
  958. # Databases
  959. #
  960. # GDBM magic numbers
  961. # Will be maintained as part of the GDBM distribution in the future.
  962. # <downsj@teeny.org>
  963. 0 belong 0x13579ace application/x-gdbm
  964. 0 lelong 0x13579ace application/x-gdbm
  965. 0 string GDBM application/x-gdbm
  966. #
  967. 0 belong 0x061561 application/x-dbm
  968. #
  969. # Executables
  970. #
  971. 0 string \177ELF
  972. >16 leshort 0 application/octet-stream
  973. >16 leshort 1 application/x-object
  974. >16 leshort 2 application/x-executable
  975. >16 leshort 3 application/x-sharedlib
  976. >16 leshort 4 application/x-coredump
  977. >16 beshort 0 application/octet-stream
  978. >16 beshort 1 application/x-object
  979. >16 beshort 2 application/x-executable
  980. >16 beshort 3 application/x-sharedlib
  981. >16 beshort 4 application/x-coredump
  982. #
  983. # DOS
  984. 0 string MZ application/x-dosexec
  985. #
  986. # KDE
  987. 0 string [KDE\ Desktop\ Entry] application/x-kdelnk
  988. 0 string \#\ KDE\ Config\ File application/x-kdelnk
  989. # xmcd database file for kscd
  990. 0 string \#\ xmcd text/xmcd
  991.  
  992. #------------------------------------------------------------------------------
  993. # pkgadd: file(1) magic for SysV R4 PKG Datastreams
  994. #
  995. 0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package
  996.  
  997. #PNG Image Format
  998. 0 string \x89PNG image/png
  999.  
  1000. # MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
  1001. 0 string \x8aMNG video/x-mng
  1002. 0 string \x8aJNG video/x-jng
  1003.  
  1004. #------------------------------------------------------------------------------
  1005. # Hierarchical Data Format, used to facilitate scientific data exchange
  1006. # specifications at http://hdf.ncsa.uiuc.edu/
  1007. #Hierarchical Data Format (version 4) data
  1008. 0 belong 0x0e031301 application/x-hdf
  1009. #Hierarchical Data Format (version 5) data
  1010. 0 string \211HDF\r\n\032 application/x-hdf
  1011.  
  1012. # Adobe Photoshop
  1013. 0 string 8BPS image/x-photoshop
  1014.  
  1015. # Felix von Leitner <felix-file@fefe.de>
  1016. 0 string d8:announce application/x-bittorrent
  1017.  
  1018.  
  1019. # lotus 1-2-3 document
  1020. 0 belong 0x00001a00 application/x-123
  1021. 0 belong 0x00000200 application/x-123
  1022.  
  1023. # MS Access database
  1024. 4 string Standard\ Jet\ DB application/msaccess
  1025.  
  1026. ## magic for XBase files
  1027. #0 byte 0x02
  1028. #>8 leshort >0
  1029. #>>12 leshort 0 application/x-dbf
  1030. #
  1031. #0 byte 0x03
  1032. #>8 leshort >0
  1033. #>>12 leshort 0 application/x-dbf
  1034. #
  1035. #0 byte 0x04
  1036. #>8 leshort >0
  1037. #>>12 leshort 0 application/x-dbf
  1038. #
  1039. #0 byte 0x05
  1040. #>8 leshort >0
  1041. #>>12 leshort 0 application/x-dbf
  1042. #
  1043. #0 byte 0x30
  1044. #>8 leshort >0
  1045. #>>12 leshort 0 application/x-dbf
  1046. #
  1047. #0 byte 0x43
  1048. #>8 leshort >0
  1049. #>>12 leshort 0 application/x-dbf
  1050. #
  1051. #0 byte 0x7b
  1052. #>8 leshort >0
  1053. #>>12 leshort 0 application/x-dbf
  1054. #
  1055. #0 byte 0x83
  1056. #>8 leshort >0
  1057. #>>12 leshort 0 application/x-dbf
  1058. #
  1059. #0 byte 0x8b
  1060. #>8 leshort >0
  1061. #>>12 leshort 0 application/x-dbf
  1062. #
  1063. #0 byte 0x8e
  1064. #>8 leshort >0
  1065. #>>12 leshort 0 application/x-dbf
  1066. #
  1067. #0 byte 0xb3
  1068. #>8 leshort >0
  1069. #>>12 leshort 0 application/x-dbf
  1070. #
  1071. #0 byte 0xf5
  1072. #>8 leshort >0
  1073. #>>12 leshort 0 application/x-dbf
  1074. #
  1075. #0 leshort 0x0006 application/x-dbt
  1076.  
  1077. # Debian has entries for the old PGP formats:
  1078. # pgp: file(1) magic for Pretty Good Privacy
  1079. # see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html
  1080. #text/PGP key public ring
  1081. 0 beshort 0x9900 application/pgp
  1082. #text/PGP key security ring
  1083. 0 beshort 0x9501 application/pgp
  1084. #text/PGP key security ring
  1085. 0 beshort 0x9500 application/pgp
  1086. #text/PGP encrypted data
  1087. 0 beshort 0xa600 application/pgp-encrypted
  1088. #text/PGP armored data
  1089. ##public key block
  1090. 2 string ---BEGIN\ PGP\ PUBLIC\ KEY\ BLOCK- application/pgp-keys
  1091. 0 string -----BEGIN\040PGP\40MESSAGE- application/pgp
  1092. 0 string -----BEGIN\040PGP\40SIGNATURE- application/pgp-signature
  1093. #
  1094. # GnuPG Magic:
  1095. #
  1096. #
  1097. #text/GnuPG key public ring
  1098. 0 beshort 0x9901 application/pgp
  1099. #text/OpenPGP data
  1100. 0 beshort 0x8501 application/pgp-encrypted
  1101.  
  1102. # flash: file(1) magic for Macromedia Flash file format
  1103. #
  1104. # See
  1105. #
  1106. # http://www.macromedia.com/software/flash/open/
  1107. #
  1108. 0 string FWS
  1109. >3 byte x application/x-shockwave-flash
  1110.  
  1111. # The following paramaters are created for Namazu.
  1112. # <http://www.namazu.org/>
  1113. #
  1114. # 1999/08/13
  1115. #0 string \<!--\ MHonArc text/html; x-type=mhonarc
  1116. 0 string BZh application/x-bzip2
  1117.  
  1118. # 1999/09/09
  1119. # VRML (suggested by Masao Takaku)
  1120. 0 string #VRML\ V1.0\ ascii model/vrml
  1121. 0 string #VRML\ V2.0\ utf8 model/vrml
  1122.  
  1123. #------------------------------------------------------------------------------
  1124. # ichitaro456: file(1) magic for Just System Word Processor Ichitaro
  1125. #
  1126. # Contributor kenzo-:
  1127. # Reversed-engineered JS Ichitaro magic numbers
  1128. #
  1129.  
  1130. 0 string DOC
  1131. >43 byte 0x14 application/ichitaro4
  1132. >144 string JDASH application/ichitaro4
  1133.  
  1134. 0 string DOC
  1135. >43 byte 0x15 application/ichitaro5
  1136.  
  1137. 0 string DOC
  1138. >43 byte 0x16 application/ichitaro6
  1139.  
  1140. #------------------------------------------------------------------------------
  1141. # office97: file(1) magic for MicroSoft Office files
  1142. #
  1143. # Contributor kenzo-:
  1144. # Reversed-engineered MS Office magic numbers
  1145. #
  1146.  
  1147. #0 string \320\317\021\340\241\261\032\341
  1148. #>48 byte 0x1B application/excel
  1149.  
  1150. 2080 string Microsoft\ Excel\ 5.0\ Worksheet application/excel
  1151. 2114 string Biff5 application/excel
  1152.  
  1153. 0 string \224\246\056 application/msword
  1154.  
  1155. 0 belong 0x31be0000 application/msword
  1156.  
  1157. 0 string PO^Q` application/msword
  1158.  
  1159. 0 string \320\317\021\340\241\261\032\341
  1160. >546 string bjbj application/msword
  1161. >546 string jbjb application/msword
  1162.  
  1163. 512 string R\0o\0o\0t\0\ \0E\0n\0t\0r\0y application/msword
  1164.  
  1165. 2080 string Microsoft\ Word\ 6.0\ Document application/msword
  1166. 2080 string Documento\ Microsoft\ Word\ 6 application/msword
  1167. 2112 string MSWordDoc application/msword
  1168.  
  1169. #0 string \320\317\021\340\241\261\032\341 application/powerpoint
  1170. 0 string \320\317\021\340\241\261\032\341 application/msword
  1171.  
  1172. 0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package
  1173.  
  1174.  
  1175. # WinNT/WinCE PE files (Warner Losh, imp@village.org)
  1176. #
  1177. 128 string PE\000\000 application/octet-stream
  1178. 0 string PE\000\000 application/octet-stream
  1179.  
  1180. # miscellaneous formats
  1181. 0 string LZ application/octet-stream
  1182.  
  1183.  
  1184. # .EXE formats (Greg Roelofs, newt@uchicago.edu)
  1185. #
  1186. 0 string MZ
  1187. >24 string @ application/octet-stream
  1188.  
  1189. 0 string MZ
  1190. >30 string Copyright\ 1989-1990\ PKWARE\ Inc. application/x-zip
  1191.  
  1192. 0 string MZ
  1193. >30 string PKLITE\ Copr. application/x-zip
  1194.  
  1195. 0 string MZ
  1196. >36 string LHa's\ SFX application/x-lha
  1197.  
  1198. 0 string MZ application/octet-stream
  1199.  
  1200. # LHA archiver
  1201. 2 string -lh
  1202. >6 string - application/x-lha
  1203.  
  1204.  
  1205. # Zoo archiver
  1206. 20 lelong 0xfdc4a7dc application/x-zoo
  1207.  
  1208. # ARC archiver
  1209. 0 lelong&0x8080ffff 0x0000081a application/x-arc
  1210. 0 lelong&0x8080ffff 0x0000091a application/x-arc
  1211. 0 lelong&0x8080ffff 0x0000021a application/x-arc
  1212. 0 lelong&0x8080ffff 0x0000031a application/x-arc
  1213. 0 lelong&0x8080ffff 0x0000041a application/x-arc
  1214. 0 lelong&0x8080ffff 0x0000061a application/x-arc
  1215.  
  1216. # Microsoft Outlook's Transport Neutral Encapsulation Format (TNEF)
  1217. 0 lelong 0x223e9f78 application/ms-tnef
  1218.  
  1219. # From: stephane.loeuillet@tiscali.f
  1220. # http://www.djvuzone.org/
  1221. 0 string AT&TFORM image/x.djvu
  1222.  
  1223. # Danny Milosavljevic <danny.milo@gmx.net>
  1224. # this are adrift (adventure game standard) game files, extension .taf
  1225. # depending on version magic continues with 0x93453E6139FA (V 4.0)
  1226. # 0x9445376139FA (V 3.90)
  1227. # 0x9445366139FA (V 3.80)
  1228. # this is from source (http://www.adrift.org.uk/) and I have some taf
  1229. # files, and checked them.
  1230. #0 belong 0x3C423FC9
  1231. #>4 belong 0x6A87C2CF application/x-adrift
  1232. #0 string \000\000\001\000 image/x-ico
  1233.  
  1234. # Quark Xpress 3 Files:
  1235. # (made the mimetype up)
  1236. 0 string \0\0MMXPR3\0 application/x-quark-xpress-3
  1237.  
  1238. # EET archive
  1239. # From: Tilman Sauerbeck <tilman@code-monkey.de>
  1240. 0 belong 0x1ee7ff00 application/x-eet
  1241.  
  1242. # From: Denis Knauf, via gentoo.
  1243. 0 string fLaC audio/x-flac
  1244. 0 string CWS application/x-shockwave-flash
  1245.  
  1246. # Gnumeric spreadsheet
  1247. # This entry is only semi-helpful, as Gnumeric compresses its files, so
  1248. # they will ordinarily reported as "compressed", but at least -z helps
  1249. 39 string =<gmr:Workbook application/x-gnumeric
  1250.  
  1251.  
  1252.  
  1253.  
  1254. etc/apache2/sites-enabled/000-default & etc/apache2/sites-available/default are identical:
  1255.  
  1256. <VirtualHost *:80>
  1257. ServerAdmin webmaster@localhost
  1258.  
  1259. DocumentRoot /var/www
  1260. <Directory />
  1261. Options FollowSymLinks
  1262. AllowOverride None
  1263. </Directory>
  1264. <Directory /var/www/>
  1265. Options Indexes FollowSymLinks MultiViews
  1266. AllowOverride None
  1267. Order allow,deny
  1268. allow from all
  1269. </Directory>
  1270.  
  1271. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  1272. <Directory "/usr/lib/cgi-bin">
  1273. AllowOverride None
  1274. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  1275. Order allow,deny
  1276. Allow from all
  1277. </Directory>
  1278.  
  1279. ErrorLog ${APACHE_LOG_DIR}/error.log
  1280.  
  1281. # Possible values include: debug, info, notice, warn, error, crit,
  1282. # alert, emerg.
  1283. LogLevel warn
  1284.  
  1285. CustomLog ${APACHE_LOG_DIR}/access.log combined
  1286.  
  1287. Alias /doc/ "/usr/share/doc/"
  1288. <Directory "/usr/share/doc/">
  1289. Options Indexes MultiViews FollowSymLinks
  1290. AllowOverride None
  1291. Order deny,allow
  1292. Deny from all
  1293. Allow from 127.0.0.0/255.0.0.0 ::1/128
  1294. </Directory>
  1295.  
  1296. </VirtualHost>
  1297.  
  1298. modes-enabled/ and modes-available/ are both chucked full.
  1299.  
  1300.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement