Add Fedora 37
This commit is contained in:
		
							
								
								
									
										9
									
								
								templates/Fedora/37/etc/httpd/conf.d/README
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								templates/Fedora/37/etc/httpd/conf.d/README
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
|  | ||||
| This directory holds configuration files for the Apache HTTP Server; | ||||
| any files in this directory which have the ".conf" extension will be | ||||
| processed as httpd configuration files.  The directory is used in | ||||
| addition to the directory /etc/httpd/conf.modules.d/, which contains | ||||
| configuration files necessary to load modules. | ||||
|  | ||||
| Files are processed in sorted order.  See httpd.conf(5) for more | ||||
| information. | ||||
							
								
								
									
										93
									
								
								templates/Fedora/37/etc/httpd/conf.d/autoindex.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										93
									
								
								templates/Fedora/37/etc/httpd/conf.d/autoindex.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,93 @@ | ||||
| # | ||||
| # Directives controlling the display of server-generated directory listings. | ||||
| # | ||||
| # Required modules: mod_authz_core, mod_authz_host, | ||||
| #                   mod_autoindex, mod_alias | ||||
| # | ||||
| # To see the listing of a directory, the Options directive for the | ||||
| # directory must include "Indexes", and the directory must not contain | ||||
| # a file matching those listed in the DirectoryIndex directive. | ||||
| # | ||||
|  | ||||
| # | ||||
| # IndexOptions: Controls the appearance of server-generated directory | ||||
| # listings. | ||||
| # | ||||
| IndexOptions FancyIndexing HTMLTable VersionSort | ||||
|  | ||||
| # We include the /icons/ alias for FancyIndexed directory listings.  If | ||||
| # you do not use FancyIndexing, you may comment this out. | ||||
| # | ||||
| Alias /icons/ "/usr/share/httpd/icons/" | ||||
|  | ||||
| <Directory "/usr/share/httpd/icons"> | ||||
|     Options Indexes MultiViews FollowSymlinks | ||||
|     AllowOverride None | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| # | ||||
| # AddIcon* directives tell the server which icon to show for different | ||||
| # files or filename extensions.  These are only displayed for | ||||
| # FancyIndexed directories. | ||||
| # | ||||
| 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 is which icon to show for files which do not have an icon | ||||
| # explicitly set. | ||||
| # | ||||
| DefaultIcon /icons/unknown.gif | ||||
|  | ||||
| # | ||||
| # AddDescription allows you to place a short description after a file in | ||||
| # server-generated indexes.  These are only displayed for FancyIndexed | ||||
| # directories. | ||||
| # Format: AddDescription "description" filename | ||||
| # | ||||
| #AddDescription "GZIP compressed document" .gz | ||||
| #AddDescription "tar archive" .tar | ||||
| #AddDescription "GZIP compressed tar archive" .tgz | ||||
|  | ||||
| # | ||||
| # ReadmeName is the name of the README file the server will look for by | ||||
| # default, and append to directory listings. | ||||
| # | ||||
| # HeaderName is the name of a file which should be prepended to | ||||
| # directory indexes.  | ||||
| ReadmeName README.html | ||||
| HeaderName HEADER.html | ||||
|  | ||||
| # | ||||
| # IndexIgnore is a set of filenames which directory indexing should ignore | ||||
| # and not include in the listing.  Shell-style wildcarding is permitted. | ||||
| # | ||||
| IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t | ||||
|  | ||||
							
								
								
									
										64
									
								
								templates/Fedora/37/etc/httpd/conf.d/php.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								templates/Fedora/37/etc/httpd/conf.d/php.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,64 @@ | ||||
| # | ||||
| # The following lines prevent .user.ini files from being viewed by Web clients. | ||||
| # | ||||
| <Files ".user.ini"> | ||||
|     Require all denied | ||||
| </Files> | ||||
|  | ||||
| # | ||||
| # Allow php to handle Multiviews | ||||
| # | ||||
| AddType text/html .php | ||||
|  | ||||
| # | ||||
| # Add index.php to the list of files that will be served as directory | ||||
| # indexes. | ||||
| # | ||||
| DirectoryIndex index.php | ||||
|  | ||||
| # | ||||
| # Redirect to local php-fpm (no mod_php in default configuration) | ||||
| # | ||||
| <IfModule !mod_php5.c> | ||||
|   <IfModule !mod_php7.c> | ||||
|     # Enable http authorization headers | ||||
|     SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 | ||||
|  | ||||
|     <FilesMatch \.(php|phar)$> | ||||
|         SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost" | ||||
|     </FilesMatch> | ||||
|   </IfModule> | ||||
| </IfModule> | ||||
|  | ||||
| # | ||||
| # mod_php is deprecated as FPM is now used by default with httpd in event mode | ||||
| # mod_php is only used when explicitly enabled or httpd switch to prefork mode | ||||
| # | ||||
| # mod_php options | ||||
| # | ||||
| <IfModule  mod_php7.c> | ||||
|     # | ||||
|     # Cause the PHP interpreter to handle files with a .php extension. | ||||
|     # | ||||
|     <FilesMatch \.(php|phar)$> | ||||
|         SetHandler application/x-httpd-php | ||||
|     </FilesMatch> | ||||
|  | ||||
|     # | ||||
|     # Uncomment the following lines to allow PHP to pretty-print .phps | ||||
|     # files as PHP source code: | ||||
|     # | ||||
|     #<FilesMatch \.phps$> | ||||
|     #    SetHandler application/x-httpd-php-source | ||||
|     #</FilesMatch> | ||||
|  | ||||
|     # | ||||
|     # Apache specific PHP configuration options | ||||
|     # those can be override in each configured vhost | ||||
|     # | ||||
|     php_value session.save_handler "files" | ||||
|     php_value session.save_path    "/var/lib/php/session" | ||||
|     php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache" | ||||
|  | ||||
|     #php_value opcache.file_cache   "/var/lib/php/opcache" | ||||
| </IfModule> | ||||
							
								
								
									
										219
									
								
								templates/Fedora/37/etc/httpd/conf.d/ssl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										219
									
								
								templates/Fedora/37/etc/httpd/conf.d/ssl.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,219 @@ | ||||
| # | ||||
| # When we also provide SSL we have to listen to the  | ||||
| # standard HTTPS port in addition. | ||||
| # | ||||
| Listen 443 https | ||||
|  | ||||
| ## | ||||
| ##  SSL Global Context | ||||
| ## | ||||
| ##  All SSL configuration in this context applies both to | ||||
| ##  the main server and all SSL-enabled virtual hosts. | ||||
| ## | ||||
|  | ||||
| #   Pass Phrase Dialog: | ||||
| #   Configure the pass phrase gathering process. | ||||
| #   The filtering dialog program (`builtin' is a internal | ||||
| #   terminal dialog) has to provide the pass phrase on stdout. | ||||
| SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog | ||||
|  | ||||
| #   Inter-Process Session Cache: | ||||
| #   Configure the SSL Session Cache: First the mechanism  | ||||
| #   to use and second the expiring timeout (in seconds). | ||||
| SSLSessionCache         shmcb:/run/httpd/sslcache(512000) | ||||
| SSLSessionCacheTimeout  300 | ||||
|  | ||||
| #   Pseudo Random Number Generator (PRNG): | ||||
| #   Configure one or more sources to seed the PRNG of the  | ||||
| #   SSL library. The seed data should be of good random quality. | ||||
| #   WARNING! On some platforms /dev/random blocks if not enough entropy | ||||
| #   is available. This means you then cannot use the /dev/random device | ||||
| #   because it would lead to very long connection times (as long as | ||||
| #   it requires to make more entropy available). But usually those | ||||
| #   platforms additionally provide a /dev/urandom device which doesn't | ||||
| #   block. So, if available, use this one instead. Read the mod_ssl User | ||||
| #   Manual for more details. | ||||
| SSLRandomSeed startup file:/dev/urandom  256 | ||||
| SSLRandomSeed connect builtin | ||||
| #SSLRandomSeed startup file:/dev/random  512 | ||||
| #SSLRandomSeed connect file:/dev/random  512 | ||||
| #SSLRandomSeed connect file:/dev/urandom 512 | ||||
|  | ||||
| # | ||||
| # Use "SSLCryptoDevice" to enable any supported hardware | ||||
| # accelerators. Use "openssl engine -v" to list supported | ||||
| # engine names.  NOTE: If you enable an accelerator and the | ||||
| # server does not start, consult the error logs and ensure | ||||
| # your accelerator is functioning properly.  | ||||
| # | ||||
| SSLCryptoDevice builtin | ||||
| #SSLCryptoDevice ubsec | ||||
|  | ||||
| ## | ||||
| ## SSL Virtual Host Context | ||||
| ## | ||||
|  | ||||
| <VirtualHost _default_:443> | ||||
|  | ||||
| # General setup for the virtual host, inherited from global configuration | ||||
| #DocumentRoot "/var/www/html" | ||||
| #ServerName www.example.com:443 | ||||
|  | ||||
| # Use separate log files for the SSL virtual host; note that LogLevel | ||||
| # is not inherited from httpd.conf. | ||||
| ErrorLog logs/ssl_error_log | ||||
| TransferLog logs/ssl_access_log | ||||
| LogLevel warn | ||||
|  | ||||
| #   SSL Engine Switch: | ||||
| #   Enable/Disable SSL for this virtual host. | ||||
| SSLEngine on | ||||
|  | ||||
| #   List the protocol versions which clients are allowed to connect with. | ||||
| #   The OpenSSL system profile is configured by default.  See | ||||
| #   update-crypto-policies(8) for more details. | ||||
| #SSLProtocol all -SSLv3 | ||||
| #SSLProxyProtocol all -SSLv3 | ||||
|  | ||||
| #   User agents such as web browsers are not configured for the user's | ||||
| #   own preference of either security or performance, therefore this | ||||
| #   must be the prerogative of the web server administrator who manages | ||||
| #   cpu load versus confidentiality, so enforce the server's cipher order. | ||||
| SSLHonorCipherOrder on | ||||
|  | ||||
| #   SSL Cipher Suite: | ||||
| #   List the ciphers that the client is permitted to negotiate. | ||||
| #   See the mod_ssl documentation for a complete list. | ||||
| #   The OpenSSL system profile is configured by default.  See | ||||
| #   update-crypto-policies(8) for more details. | ||||
| SSLCipherSuite PROFILE=SYSTEM | ||||
| SSLProxyCipherSuite PROFILE=SYSTEM | ||||
|  | ||||
| #   Point SSLCertificateFile at a PEM encoded certificate.  If | ||||
| #   the certificate is encrypted, then you will be prompted for a | ||||
| #   pass phrase.  Note that restarting httpd will prompt again.  Keep | ||||
| #   in mind that if you have both an RSA and a DSA certificate you | ||||
| #   can configure both in parallel (to also allow the use of DSA | ||||
| #   ciphers, etc.) | ||||
| #   Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt) | ||||
| #   require an ECC certificate which can also be configured in | ||||
| #   parallel. | ||||
| SSLCertificateFile /etc/pki/tls/certs/localhost.crt | ||||
|  | ||||
| #   Server Private Key: | ||||
| #   If the key is not combined with the certificate, use this | ||||
| #   directive to point at the key file.  Keep in mind that if | ||||
| #   you've both a RSA and a DSA private key you can configure | ||||
| #   both in parallel (to also allow the use of DSA ciphers, etc.) | ||||
| #   ECC keys, when in use, can also be configured in parallel | ||||
| SSLCertificateKeyFile /etc/pki/tls/private/localhost.key | ||||
|  | ||||
| #   Server Certificate Chain: | ||||
| #   Point SSLCertificateChainFile at a file containing the | ||||
| #   concatenation of PEM encoded CA certificates which form the | ||||
| #   certificate chain for the server certificate. Alternatively | ||||
| #   the referenced file can be the same as SSLCertificateFile | ||||
| #   when the CA certificates are directly appended to the server | ||||
| #   certificate for convenience. | ||||
| #SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt | ||||
|  | ||||
| #   Certificate Authority (CA): | ||||
| #   Set the CA certificate verification path where to find CA | ||||
| #   certificates for client authentication or alternatively one | ||||
| #   huge file containing all of them (file must be PEM encoded) | ||||
| #SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt | ||||
|  | ||||
| #   Client Authentication (Type): | ||||
| #   Client certificate verification type and depth.  Types are | ||||
| #   none, optional, require and optional_no_ca.  Depth is a | ||||
| #   number which specifies how deeply to verify the certificate | ||||
| #   issuer chain before deciding the certificate is not valid. | ||||
| #SSLVerifyClient require | ||||
| #SSLVerifyDepth  10 | ||||
|  | ||||
| #   Access Control: | ||||
| #   With SSLRequire you can do per-directory access control based | ||||
| #   on arbitrary complex boolean expressions containing server | ||||
| #   variable checks and other lookup directives.  The syntax is a | ||||
| #   mixture between C and Perl.  See the mod_ssl documentation | ||||
| #   for more details. | ||||
| #<Location /> | ||||
| #SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \ | ||||
| #            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \ | ||||
| #            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \ | ||||
| #            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \ | ||||
| #            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \ | ||||
| #           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/ | ||||
| #</Location> | ||||
|  | ||||
| #   SSL Engine Options: | ||||
| #   Set various options for the SSL engine. | ||||
| #   o FakeBasicAuth: | ||||
| #     Translate the client X.509 into a Basic Authorisation.  This means that | ||||
| #     the standard Auth/DBMAuth methods can be used for access control.  The | ||||
| #     user name is the `one line' version of the client's X.509 certificate. | ||||
| #     Note that no password is obtained from the user. Every entry in the user | ||||
| #     file needs this password: `xxj31ZMTZzkVA'. | ||||
| #   o ExportCertData: | ||||
| #     This exports two additional environment variables: SSL_CLIENT_CERT and | ||||
| #     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the | ||||
| #     server (always existing) and the client (only existing when client | ||||
| #     authentication is used). This can be used to import the certificates | ||||
| #     into CGI scripts. | ||||
| #   o StdEnvVars: | ||||
| #     This exports the standard SSL/TLS related `SSL_*' environment variables. | ||||
| #     Per default this exportation is switched off for performance reasons, | ||||
| #     because the extraction step is an expensive operation and is usually | ||||
| #     useless for serving static content. So one usually enables the | ||||
| #     exportation for CGI and SSI requests only. | ||||
| #   o StrictRequire: | ||||
| #     This denies access when "SSLRequireSSL" or "SSLRequire" applied even | ||||
| #     under a "Satisfy any" situation, i.e. when it applies access is denied | ||||
| #     and no other module can change it. | ||||
| #   o OptRenegotiate: | ||||
| #     This enables optimized SSL connection renegotiation handling when SSL | ||||
| #     directives are used in per-directory context.  | ||||
| #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire | ||||
| <FilesMatch "\.(cgi|shtml|phtml|php)$"> | ||||
|     SSLOptions +StdEnvVars | ||||
| </FilesMatch> | ||||
| <Directory "/var/www/cgi-bin"> | ||||
|     SSLOptions +StdEnvVars | ||||
| </Directory> | ||||
|  | ||||
| #   SSL Protocol Adjustments: | ||||
| #   The safe and default but still SSL/TLS standard compliant shutdown | ||||
| #   approach is that mod_ssl sends the close notify alert but doesn't wait for | ||||
| #   the close notify alert from client. When you need a different shutdown | ||||
| #   approach you can use one of the following variables: | ||||
| #   o ssl-unclean-shutdown: | ||||
| #     This forces an unclean shutdown when the connection is closed, i.e. no | ||||
| #     SSL close notify alert is sent or allowed to be received.  This violates | ||||
| #     the SSL/TLS standard but is needed for some brain-dead browsers. Use | ||||
| #     this when you receive I/O errors because of the standard approach where | ||||
| #     mod_ssl sends the close notify alert. | ||||
| #   o ssl-accurate-shutdown: | ||||
| #     This forces an accurate shutdown when the connection is closed, i.e. a | ||||
| #     SSL close notify alert is sent and mod_ssl waits for the close notify | ||||
| #     alert of the client. This is 100% SSL/TLS standard compliant, but in | ||||
| #     practice often causes hanging connections with brain-dead browsers. Use | ||||
| #     this only for browsers where you know that their SSL implementation | ||||
| #     works correctly.  | ||||
| #   Notice: Most problems of broken clients are also related to the HTTP | ||||
| #   keep-alive facility, so you usually additionally want to disable | ||||
| #   keep-alive for those clients, too. Use variable "nokeepalive" for this. | ||||
| #   Similarly, one has to force some clients to use HTTP/1.0 to workaround | ||||
| #   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and | ||||
| #   "force-response-1.0" for this. | ||||
| BrowserMatch "MSIE [2-5]" \ | ||||
|          nokeepalive ssl-unclean-shutdown \ | ||||
|          downgrade-1.0 force-response-1.0 | ||||
|  | ||||
| #   Per-Server Logging: | ||||
| #   The home of a custom SSL log file. Use this when you want a | ||||
| #   compact non-error SSL logfile on a virtual host basis. | ||||
| CustomLog logs/ssl_request_log \ | ||||
|           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" | ||||
|  | ||||
| </VirtualHost> | ||||
|  | ||||
							
								
								
									
										36
									
								
								templates/Fedora/37/etc/httpd/conf.d/userdir.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								templates/Fedora/37/etc/httpd/conf.d/userdir.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| # | ||||
| # UserDir: The name of the directory that is appended onto a user's home | ||||
| # directory if a ~user request is received. | ||||
| # | ||||
| # The path to the end user account 'public_html' directory must be | ||||
| # accessible to the webserver userid.  This usually means that ~userid | ||||
| # must have permissions of 711, ~userid/public_html must have permissions | ||||
| # of 755, and documents contained therein must be world-readable. | ||||
| # Otherwise, the client will only receive a "403 Forbidden" message. | ||||
| # | ||||
| <IfModule mod_userdir.c> | ||||
|     # | ||||
|     # UserDir is disabled by default since it can confirm the presence | ||||
|     # of a username on the system (depending on home directory | ||||
|     # permissions). | ||||
|     # | ||||
|     UserDir disabled | ||||
|  | ||||
|     # | ||||
|     # To enable requests to /~user/ to serve the user's public_html | ||||
|     # directory, remove the "UserDir disabled" line above, and uncomment | ||||
|     # the following line instead: | ||||
|     #  | ||||
|     #UserDir public_html | ||||
| </IfModule> | ||||
|  | ||||
| # | ||||
| # Control access to UserDir directories.  The following is an example | ||||
| # for a site where these directories are restricted to read-only. | ||||
| # | ||||
| <Directory "/home/*/public_html"> | ||||
|     AllowOverride FileInfo AuthConfig Limit Indexes | ||||
|     Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec | ||||
|     Require method GET POST OPTIONS | ||||
| </Directory> | ||||
|  | ||||
							
								
								
									
										72
									
								
								templates/Fedora/37/etc/httpd/conf.d/vhost.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								templates/Fedora/37/etc/httpd/conf.d/vhost.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | ||||
| MDBaseServer on | ||||
| MDCertificateAgreement accepted | ||||
| MDCertificateAuthority {{ lets_encrypt_url }} | ||||
| MDContactEmail {{ lets_encrypt_admin }} | ||||
| MDPrivateKeys secp384r1 secp256r1 RSA 4096 | ||||
| MDRequireHttps temporary | ||||
| MDStoreDir md | ||||
|  | ||||
| <Directory "/srv/http"> | ||||
|     AllowOverride None | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| {% for item in http_vhost %} | ||||
| <Directory "/srv/http/{{ item.fqdn }}"> | ||||
|     Options Indexes FollowSymLinks | ||||
|     AllowOverride None | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| <VirtualHost *:80> | ||||
|   ServerName {{ item.fqdn }} | ||||
| {% if item.aliases is defined %} | ||||
| {% for item_alias in item.aliases %} | ||||
|   ServerAlias {{ item_alias }} | ||||
| {% endfor %} | ||||
| {% endif %} | ||||
|   ServerAdmin webmaster@{{ item.fqdn }} | ||||
|   DocumentRoot /srv/http/{{ item.fqdn }} | ||||
| {% if item.redirect is defined %} | ||||
|   RedirectMatch "^(?!/\.well-known/).*" {{ item.redirect }} | ||||
| {% endif %} | ||||
| </VirtualHost> | ||||
|  | ||||
| MDomain {{ item.fqdn }} | ||||
|  | ||||
| <VirtualHost *:443> | ||||
|   SSLEngine on | ||||
|   SSLProtocol all -TLSv1.1 | ||||
|   SSLProxyProtocol all -TLSv1.1 | ||||
|   SSLHonorCipherOrder on | ||||
|   SSLCipherSuite PROFILE=SYSTEM | ||||
|   SSLProxyCipherSuite PROFILE=SYSTEM | ||||
|   ServerName {{ item.fqdn }} | ||||
| {% if item.aliases is defined %} | ||||
| {% for item_alias in item.aliases %} | ||||
|   ServerAlias {{ item_alias }} | ||||
| {% endfor %} | ||||
| {% endif %} | ||||
|   ServerAdmin webmaster@{{ item.fqdn }} | ||||
|   DocumentRoot /srv/http/{{ item.fqdn }} | ||||
|   Alias /error/ "/var/www/error/" | ||||
| {% if item.proxy is defined %} | ||||
|   ProxyPass "/.well-known" "!" | ||||
|   ProxyPass "/phpMyAdmin" "!" | ||||
|   ProxyPass "/phpmyadmin" "!" | ||||
|   ProxyPass "/" "{{ item.proxy }}" | ||||
|   ProxyPassReverse "/" "{{ item.proxy }}" | ||||
|   ProxyTimeout 300 | ||||
| {% endif %} | ||||
| {% if item.redirect is defined %} | ||||
|   RedirectMatch "^(?!/\.well-known/).*" {{ item.redirect }} | ||||
| {% endif %} | ||||
|   <Location /.env> | ||||
|     Require all denied | ||||
|   </Location> | ||||
|   <Location /.git> | ||||
|     Require all denied | ||||
|   </Location> | ||||
| </VirtualHost> | ||||
|  | ||||
| {% endfor %} | ||||
							
								
								
									
										20
									
								
								templates/Fedora/37/etc/httpd/conf.d/welcome.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/Fedora/37/etc/httpd/conf.d/welcome.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| #  | ||||
| # This configuration file enables the default "Welcome" page if there | ||||
| # is no default index page present for the root URL.  To disable the | ||||
| # Welcome page, comment out all the lines below.  | ||||
| # | ||||
| # NOTE: if this file is removed, it will be restored on upgrades. | ||||
| # | ||||
| <LocationMatch "^/+$"> | ||||
|     Options -Indexes | ||||
|     ErrorDocument 403 /.noindex.html | ||||
| </LocationMatch> | ||||
|  | ||||
| <Directory /usr/share/httpd/noindex> | ||||
|     AllowOverride None | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| Alias /.noindex.html /usr/share/httpd/noindex/index.html | ||||
| Alias /poweredby.png /usr/share/httpd/icons/apache_pb3.png | ||||
| Alias /system_noindex_logo.png /usr/share/httpd/icons/system_noindex_logo.png | ||||
							
								
								
									
										69
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-base.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-base.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,69 @@ | ||||
| # | ||||
| # This file loads most of the modules included with the Apache HTTP | ||||
| # Server itself. | ||||
| # | ||||
|  | ||||
| LoadModule access_compat_module modules/mod_access_compat.so | ||||
| LoadModule actions_module modules/mod_actions.so | ||||
| LoadModule alias_module modules/mod_alias.so | ||||
| LoadModule allowmethods_module modules/mod_allowmethods.so | ||||
| LoadModule auth_basic_module modules/mod_auth_basic.so | ||||
| LoadModule auth_digest_module modules/mod_auth_digest.so | ||||
| LoadModule authn_anon_module modules/mod_authn_anon.so | ||||
| LoadModule authn_core_module modules/mod_authn_core.so | ||||
| LoadModule authn_dbd_module modules/mod_authn_dbd.so | ||||
| LoadModule authn_dbm_module modules/mod_authn_dbm.so | ||||
| LoadModule authn_file_module modules/mod_authn_file.so | ||||
| LoadModule authn_socache_module modules/mod_authn_socache.so | ||||
| LoadModule authz_core_module modules/mod_authz_core.so | ||||
| LoadModule authz_dbd_module modules/mod_authz_dbd.so | ||||
| LoadModule authz_dbm_module modules/mod_authz_dbm.so | ||||
| LoadModule authz_groupfile_module modules/mod_authz_groupfile.so | ||||
| LoadModule authz_host_module modules/mod_authz_host.so | ||||
| LoadModule authz_owner_module modules/mod_authz_owner.so | ||||
| LoadModule authz_user_module modules/mod_authz_user.so | ||||
| LoadModule autoindex_module modules/mod_autoindex.so | ||||
| LoadModule brotli_module modules/mod_brotli.so | ||||
| LoadModule cache_module modules/mod_cache.so | ||||
| LoadModule cache_disk_module modules/mod_cache_disk.so | ||||
| LoadModule cache_socache_module modules/mod_cache_socache.so | ||||
| LoadModule data_module modules/mod_data.so | ||||
| LoadModule dbd_module modules/mod_dbd.so | ||||
| LoadModule deflate_module modules/mod_deflate.so | ||||
| LoadModule dir_module modules/mod_dir.so | ||||
| LoadModule dumpio_module modules/mod_dumpio.so | ||||
| LoadModule echo_module modules/mod_echo.so | ||||
| LoadModule env_module modules/mod_env.so | ||||
| LoadModule expires_module modules/mod_expires.so | ||||
| LoadModule ext_filter_module modules/mod_ext_filter.so | ||||
| LoadModule filter_module modules/mod_filter.so | ||||
| LoadModule headers_module modules/mod_headers.so | ||||
| LoadModule include_module modules/mod_include.so | ||||
| LoadModule info_module modules/mod_info.so | ||||
| LoadModule log_config_module modules/mod_log_config.so | ||||
| LoadModule logio_module modules/mod_logio.so | ||||
| LoadModule macro_module modules/mod_macro.so | ||||
| LoadModule mime_magic_module modules/mod_mime_magic.so | ||||
| LoadModule mime_module modules/mod_mime.so | ||||
| LoadModule negotiation_module modules/mod_negotiation.so | ||||
| LoadModule remoteip_module modules/mod_remoteip.so | ||||
| LoadModule reqtimeout_module modules/mod_reqtimeout.so | ||||
| LoadModule request_module modules/mod_request.so | ||||
| LoadModule rewrite_module modules/mod_rewrite.so | ||||
| LoadModule setenvif_module modules/mod_setenvif.so | ||||
| LoadModule slotmem_plain_module modules/mod_slotmem_plain.so | ||||
| LoadModule slotmem_shm_module modules/mod_slotmem_shm.so | ||||
| LoadModule socache_dbm_module modules/mod_socache_dbm.so | ||||
| LoadModule socache_memcache_module modules/mod_socache_memcache.so | ||||
| LoadModule socache_redis_module modules/mod_socache_redis.so | ||||
| LoadModule socache_shmcb_module modules/mod_socache_shmcb.so | ||||
| LoadModule status_module modules/mod_status.so | ||||
| LoadModule substitute_module modules/mod_substitute.so | ||||
| LoadModule suexec_module modules/mod_suexec.so | ||||
| LoadModule unique_id_module modules/mod_unique_id.so | ||||
| LoadModule unixd_module modules/mod_unixd.so | ||||
| LoadModule userdir_module modules/mod_userdir.so | ||||
| LoadModule version_module modules/mod_version.so | ||||
| LoadModule vhost_alias_module modules/mod_vhost_alias.so | ||||
| LoadModule watchdog_module modules/mod_watchdog.so | ||||
|  | ||||
							
								
								
									
										3
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-dav.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-dav.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| LoadModule dav_module modules/mod_dav.so | ||||
| LoadModule dav_fs_module modules/mod_dav_fs.so | ||||
| LoadModule dav_lock_module modules/mod_dav_lock.so | ||||
							
								
								
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-lua.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-lua.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| LoadModule lua_module modules/mod_lua.so | ||||
							
								
								
									
										23
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-mpm.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-mpm.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| # Select the MPM module which should be used by uncommenting exactly | ||||
| # one of the following LoadModule lines.  See the httpd.conf(5) man | ||||
| # page for more information on changing the MPM. | ||||
|  | ||||
| # prefork MPM: Implements a non-threaded, pre-forking web server | ||||
| # See: http://httpd.apache.org/docs/2.4/mod/prefork.html | ||||
| # | ||||
| # NOTE: If enabling prefork, the httpd_graceful_shutdown SELinux | ||||
| # boolean should be enabled, to allow graceful stop/shutdown. | ||||
| # | ||||
| #LoadModule mpm_prefork_module modules/mod_mpm_prefork.so | ||||
|  | ||||
| # worker MPM: Multi-Processing Module implementing a hybrid | ||||
| # multi-threaded multi-process web server | ||||
| # See: http://httpd.apache.org/docs/2.4/mod/worker.html | ||||
| # | ||||
| #LoadModule mpm_worker_module modules/mod_mpm_worker.so | ||||
|  | ||||
| # event MPM: A variant of the worker MPM with the goal of consuming | ||||
| # threads only for connections with active processing | ||||
| # See: http://httpd.apache.org/docs/2.4/mod/event.html | ||||
| # | ||||
| LoadModule mpm_event_module modules/mod_mpm_event.so | ||||
| @@ -0,0 +1,18 @@ | ||||
| # | ||||
| # This file lists modules included with the Apache HTTP Server | ||||
| # which are not enabled by default. | ||||
| #  | ||||
|  | ||||
| #LoadModule asis_module modules/mod_asis.so | ||||
| #LoadModule buffer_module modules/mod_buffer.so | ||||
| #LoadModule heartbeat_module modules/mod_heartbeat.so | ||||
| #LoadModule heartmonitor_module modules/mod_heartmonitor.so | ||||
| #LoadModule usertrack_module modules/mod_usertrack.so | ||||
| #LoadModule dialup_module modules/mod_dialup.so | ||||
| #LoadModule charset_lite_module modules/mod_charset_lite.so | ||||
| #LoadModule log_debug_module modules/mod_log_debug.so | ||||
| #LoadModule log_forensic_module modules/mod_log_forensic.so | ||||
| #LoadModule ratelimit_module modules/mod_ratelimit.so | ||||
| #LoadModule reflector_module modules/mod_reflector.so | ||||
| #LoadModule sed_module modules/mod_sed.so | ||||
| #LoadModule speling_module modules/mod_speling.so | ||||
							
								
								
									
										18
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-proxy.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-proxy.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| # This file configures all the proxy modules: | ||||
| LoadModule proxy_module modules/mod_proxy.so | ||||
| LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so | ||||
| LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so | ||||
| LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so | ||||
| LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so | ||||
| LoadModule proxy_ajp_module modules/mod_proxy_ajp.so | ||||
| LoadModule proxy_balancer_module modules/mod_proxy_balancer.so | ||||
| LoadModule proxy_connect_module modules/mod_proxy_connect.so | ||||
| LoadModule proxy_express_module modules/mod_proxy_express.so | ||||
| LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so | ||||
| LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so | ||||
| LoadModule proxy_ftp_module modules/mod_proxy_ftp.so | ||||
| LoadModule proxy_http_module modules/mod_proxy_http.so | ||||
| LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so | ||||
| LoadModule proxy_scgi_module modules/mod_proxy_scgi.so | ||||
| LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so | ||||
| LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so | ||||
							
								
								
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-ssl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/00-ssl.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| LoadModule ssl_module modules/mod_ssl.so | ||||
| @@ -0,0 +1,2 @@ | ||||
| # This file configures systemd module: | ||||
| LoadModule systemd_module modules/mod_systemd.so | ||||
							
								
								
									
										11
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/01-cgi.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/01-cgi.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| # This configuration file loads a CGI module appropriate to the MPM | ||||
| # which has been configured in 00-mpm.conf.  mod_cgid should be used | ||||
| # with a threaded MPM; mod_cgi with the prefork MPM. | ||||
|  | ||||
| <IfModule !mpm_prefork_module> | ||||
|    LoadModule cgid_module modules/mod_cgid.so | ||||
| </IfModule> | ||||
| <IfModule mpm_prefork_module> | ||||
|    LoadModule cgi_module modules/mod_cgi.so | ||||
| </IfModule> | ||||
|  | ||||
							
								
								
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/01-md.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/01-md.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| LoadModule md_module modules/mod_md.so | ||||
							
								
								
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/10-h2.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/10-h2.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| LoadModule http2_module modules/mod_http2.so | ||||
| @@ -0,0 +1 @@ | ||||
| LoadModule proxy_http2_module modules/mod_proxy_http2.so | ||||
							
								
								
									
										10
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/README
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								templates/Fedora/37/etc/httpd/conf.modules.d/README
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
|  | ||||
| This directory holds configuration files for the Apache HTTP Server; | ||||
| any files in this directory which have the ".conf" extension will be | ||||
| processed as httpd configuration files.  This directory contains | ||||
| configuration fragments necessary only to load modules. | ||||
| Administrators should use the directory "/etc/httpd/conf.d" to modify | ||||
| the configuration of httpd, or any modules. | ||||
|  | ||||
| Files are processed in sorted order and should have a two digit | ||||
| numeric prefix.  See httpd.conf(5) for more information. | ||||
							
								
								
									
										358
									
								
								templates/Fedora/37/etc/httpd/conf/httpd.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										358
									
								
								templates/Fedora/37/etc/httpd/conf/httpd.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,358 @@ | ||||
| # | ||||
| # This is the main Apache HTTP server configuration file.  It contains the | ||||
| # configuration directives that give the server its instructions. | ||||
| # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | ||||
| # In particular, see  | ||||
| # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | ||||
| # for a discussion of each configuration directive. | ||||
| # | ||||
| # See the httpd.conf(5) man page for more information on this configuration, | ||||
| # and httpd.service(8) on using and configuring the httpd service. | ||||
| # | ||||
| # Do NOT simply read the instructions in here without understanding | ||||
| # what they do.  They're here only as hints or reminders.  If you are unsure | ||||
| # consult the online docs. You have been warned.   | ||||
| # | ||||
| # Configuration and logfile names: If the filenames you specify for many | ||||
| # of the server's control files begin with "/" (or "drive:/" for Win32), the | ||||
| # server will use that explicit path.  If the filenames do *not* begin | ||||
| # with "/", the value of ServerRoot is prepended -- so 'log/access_log' | ||||
| # with ServerRoot set to '/www' will be interpreted by the | ||||
| # server as '/www/log/access_log', where as '/log/access_log' will be | ||||
| # interpreted as '/log/access_log'. | ||||
|  | ||||
| # | ||||
| # ServerRoot: The top of the directory tree under which the server's | ||||
| # configuration, error, and log files are kept. | ||||
| # | ||||
| # Do not add a slash at the end of the directory path.  If you point | ||||
| # ServerRoot at a non-local disk, be sure to specify a local disk on the | ||||
| # Mutex directive, if file-based mutexes are used.  If you wish to share the | ||||
| # same ServerRoot for multiple httpd daemons, you will need to change at | ||||
| # least PidFile. | ||||
| # | ||||
| ServerRoot "/etc/httpd" | ||||
|  | ||||
| # | ||||
| # Listen: Allows you to bind Apache to specific IP addresses and/or | ||||
| # ports, instead of the default. See also the <VirtualHost> | ||||
| # directive. | ||||
| # | ||||
| # Change this to Listen on a specific IP address, but note that if | ||||
| # httpd.service is enabled to run at boot time, the address may not be | ||||
| # available when the service starts.  See the httpd.service(8) man | ||||
| # page for more information. | ||||
| # | ||||
| #Listen 12.34.56.78:80 | ||||
| Listen 80 | ||||
|  | ||||
| # | ||||
| # Dynamic Shared Object (DSO) Support | ||||
| # | ||||
| # To be able to use the functionality of a module which was built as a DSO you | ||||
| # have to place corresponding `LoadModule' lines at this location so the | ||||
| # directives contained in it are actually available _before_ they are used. | ||||
| # Statically compiled modules (those listed by `httpd -l') do not need | ||||
| # to be loaded here. | ||||
| # | ||||
| # Example: | ||||
| # LoadModule foo_module modules/mod_foo.so | ||||
| # | ||||
| Include conf.modules.d/*.conf | ||||
|  | ||||
| # | ||||
| # If you wish httpd to run as a different user or group, you must run | ||||
| # httpd as root initially and it will switch.   | ||||
| # | ||||
| # User/Group: The name (or #number) of the user/group to run httpd as. | ||||
| # It is usually good practice to create a dedicated user and group for | ||||
| # running httpd, as with most system services. | ||||
| # | ||||
| User apache | ||||
| Group apache | ||||
|  | ||||
| # 'Main' server configuration | ||||
| # | ||||
| # The directives in this section set up the values used by the 'main' | ||||
| # server, which responds to any requests that aren't handled by a | ||||
| # <VirtualHost> definition.  These values also provide defaults for | ||||
| # any <VirtualHost> containers you may define later in the file. | ||||
| # | ||||
| # All of these directives may appear inside <VirtualHost> containers, | ||||
| # in which case these default settings will be overridden for the | ||||
| # virtual host being defined. | ||||
| # | ||||
|  | ||||
| # | ||||
| # ServerAdmin: Your address, where problems with the server should be | ||||
| # e-mailed.  This address appears on some server-generated pages, such | ||||
| # as error documents.  e.g. admin@your-domain.com | ||||
| # | ||||
| ServerAdmin root@localhost | ||||
|  | ||||
| # | ||||
| # ServerName gives the name and port that the server uses to identify itself. | ||||
| # This can often be determined automatically, but we recommend you specify | ||||
| # it explicitly to prevent problems during startup. | ||||
| # | ||||
| # If your host doesn't have a registered DNS name, enter its IP address here. | ||||
| # | ||||
| #ServerName www.example.com:80 | ||||
|  | ||||
| # | ||||
| # Deny access to the entirety of your server's filesystem. You must | ||||
| # explicitly permit access to web content directories in other  | ||||
| # <Directory> blocks below. | ||||
| # | ||||
| <Directory /> | ||||
|     AllowOverride none | ||||
|     Require all denied | ||||
| </Directory> | ||||
|  | ||||
| # | ||||
| # Note that from this point forward you must specifically allow | ||||
| # particular features to be enabled - so if something's not working as | ||||
| # you might expect, make sure that you have specifically enabled it | ||||
| # below. | ||||
| # | ||||
|  | ||||
| # | ||||
| # DocumentRoot: The directory out of which you will serve your | ||||
| # documents. By default, all requests are taken from this directory, but | ||||
| # symbolic links and aliases may be used to point to other locations. | ||||
| # | ||||
| DocumentRoot "/var/www/html" | ||||
|  | ||||
| # | ||||
| # Relax access to content within /var/www. | ||||
| # | ||||
| <Directory "/var/www"> | ||||
|     AllowOverride None | ||||
|     # Allow open access: | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| # Further relax access to the default document root: | ||||
| <Directory "/var/www/html"> | ||||
|     # | ||||
|     # Possible values for the Options directive are "None", "All", | ||||
|     # or any combination of: | ||||
|     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews | ||||
|     # | ||||
|     # Note that "MultiViews" must be named *explicitly* --- "Options All" | ||||
|     # doesn't give it to you. | ||||
|     # | ||||
|     # The Options directive is both complicated and important.  Please see | ||||
|     # http://httpd.apache.org/docs/2.4/mod/core.html#options | ||||
|     # for more information. | ||||
|     # | ||||
|     Options Indexes FollowSymLinks | ||||
|  | ||||
|     # | ||||
|     # AllowOverride controls what directives may be placed in .htaccess files. | ||||
|     # It can be "All", "None", or any combination of the keywords: | ||||
|     #   Options FileInfo AuthConfig Limit | ||||
|     # | ||||
|     AllowOverride None | ||||
|  | ||||
|     # | ||||
|     # Controls who can get stuff from this server. | ||||
|     # | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| # | ||||
| # DirectoryIndex: sets the file that Apache will serve if a directory | ||||
| # is requested. | ||||
| # | ||||
| <IfModule dir_module> | ||||
|     DirectoryIndex index.html | ||||
| </IfModule> | ||||
|  | ||||
| # | ||||
| # The following lines prevent .htaccess and .htpasswd files from being  | ||||
| # viewed by Web clients.  | ||||
| # | ||||
| <Files ".ht*"> | ||||
|     Require all denied | ||||
| </Files> | ||||
|  | ||||
| # | ||||
| # ErrorLog: The location of the error log file. | ||||
| # If you do not specify an ErrorLog directive within a <VirtualHost> | ||||
| # container, error messages relating to that virtual host will be | ||||
| # logged here.  If you *do* define an error logfile for a <VirtualHost> | ||||
| # container, that host's errors will be logged there and not here. | ||||
| # | ||||
| ErrorLog "logs/error_log" | ||||
|  | ||||
| # | ||||
| # LogLevel: Control the number of messages logged to the error_log. | ||||
| # Possible values include: debug, info, notice, warn, error, crit, | ||||
| # alert, emerg. | ||||
| # | ||||
| LogLevel warn | ||||
|  | ||||
| <IfModule log_config_module> | ||||
|     # | ||||
|     # The following directives define some format nicknames for use with | ||||
|     # a CustomLog directive (see below). | ||||
|     # | ||||
|     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined | ||||
|     LogFormat "%h %l %u %t \"%r\" %>s %b" common | ||||
|  | ||||
|     <IfModule logio_module> | ||||
|       # You need to enable mod_logio.c to use %I and %O | ||||
|       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio | ||||
|     </IfModule> | ||||
|  | ||||
|     # | ||||
|     # The location and format of the access logfile (Common Logfile Format). | ||||
|     # If you do not define any access logfiles within a <VirtualHost> | ||||
|     # container, they will be logged here.  Contrariwise, if you *do* | ||||
|     # define per-<VirtualHost> access logfiles, transactions will be | ||||
|     # logged therein and *not* in this file. | ||||
|     # | ||||
|     #CustomLog "logs/access_log" common | ||||
|  | ||||
|     # | ||||
|     # If you prefer a logfile with access, agent, and referer information | ||||
|     # (Combined Logfile Format) you can use the following directive. | ||||
|     # | ||||
|     CustomLog "logs/access_log" combined | ||||
| </IfModule> | ||||
|  | ||||
| <IfModule alias_module> | ||||
|     # | ||||
|     # Redirect: Allows you to tell clients about documents that used to  | ||||
|     # exist in your server's namespace, but do not anymore. The client  | ||||
|     # will make a new request for the document at its new location. | ||||
|     # Example: | ||||
|     # Redirect permanent /foo http://www.example.com/bar | ||||
|  | ||||
|     # | ||||
|     # Alias: Maps web paths into filesystem paths and is used to | ||||
|     # access content that does not live under the DocumentRoot. | ||||
|     # Example: | ||||
|     # Alias /webpath /full/filesystem/path | ||||
|     # | ||||
|     # If you include a trailing / on /webpath then the server will | ||||
|     # require it to be present in the URL.  You will also likely | ||||
|     # need to provide a <Directory> section to allow access to | ||||
|     # the filesystem path. | ||||
|  | ||||
|     # | ||||
|     # ScriptAlias: This controls which directories contain server scripts.  | ||||
|     # ScriptAliases are essentially the same as Aliases, except that | ||||
|     # documents in the target directory are treated as applications and | ||||
|     # run by the server when requested rather than as documents sent to the | ||||
|     # client.  The same rules about trailing "/" apply to ScriptAlias | ||||
|     # directives as to Alias. | ||||
|     # | ||||
|     ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" | ||||
|  | ||||
| </IfModule> | ||||
|  | ||||
| # | ||||
| # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased | ||||
| # CGI directory exists, if you have that configured. | ||||
| # | ||||
| <Directory "/var/www/cgi-bin"> | ||||
|     AllowOverride None | ||||
|     Options None | ||||
|     Require all granted | ||||
| </Directory> | ||||
|  | ||||
| <IfModule mime_module> | ||||
|     # | ||||
|     # TypesConfig points to the file containing the list of mappings from | ||||
|     # filename extension to MIME-type. | ||||
|     # | ||||
|     TypesConfig /etc/mime.types | ||||
|  | ||||
|     # | ||||
|     # AddType allows you to add to or override the MIME configuration | ||||
|     # file specified in TypesConfig for specific file types. | ||||
|     # | ||||
|     #AddType application/x-gzip .tgz | ||||
|     # | ||||
|     # AddEncoding allows you to have certain browsers uncompress | ||||
|     # information on the fly. Note: Not all browsers support this. | ||||
|     # | ||||
|     #AddEncoding x-compress .Z | ||||
|     #AddEncoding x-gzip .gz .tgz | ||||
|     # | ||||
|     # If the AddEncoding directives above are commented-out, then you | ||||
|     # probably should define those extensions to indicate media types: | ||||
|     # | ||||
|     AddType application/x-compress .Z | ||||
|     AddType application/x-gzip .gz .tgz | ||||
|  | ||||
|     # | ||||
|     # AddHandler allows you to map certain file extensions to "handlers": | ||||
|     # actions unrelated to filetype. These can be either built into the server | ||||
|     # or added with the Action directive (see below) | ||||
|     # | ||||
|     # To use CGI scripts outside of ScriptAliased directories: | ||||
|     # (You will also need to add "ExecCGI" to the "Options" directive.) | ||||
|     # | ||||
|     #AddHandler cgi-script .cgi | ||||
|  | ||||
|     # For type maps (negotiated resources): | ||||
|     #AddHandler type-map var | ||||
|  | ||||
|     # | ||||
|     # Filters allow you to process content before it is sent to the client. | ||||
|     # | ||||
|     # To parse .shtml files for server-side includes (SSI): | ||||
|     # (You will also need to add "Includes" to the "Options" directive.) | ||||
|     # | ||||
|     AddType text/html .shtml | ||||
|     AddOutputFilter INCLUDES .shtml | ||||
| </IfModule> | ||||
|  | ||||
| # | ||||
| # Specify a default charset for all content served; this enables | ||||
| # interpretation of all content as UTF-8 by default.  To use the  | ||||
| # default browser choice (ISO-8859-1), or to allow the META tags | ||||
| # in HTML content to override this choice, comment out this | ||||
| # directive: | ||||
| # | ||||
| AddDefaultCharset UTF-8 | ||||
|  | ||||
| <IfModule mime_magic_module> | ||||
|     # | ||||
|     # The mod_mime_magic module allows the server to use various hints from the | ||||
|     # contents of the file itself to determine its type.  The MIMEMagicFile | ||||
|     # directive tells the module where the hint definitions are located. | ||||
|     # | ||||
|     MIMEMagicFile conf/magic | ||||
| </IfModule> | ||||
|  | ||||
| # | ||||
| # Customizable error responses come in three flavors: | ||||
| # 1) plain text 2) local redirects 3) external redirects | ||||
| # | ||||
| # Some examples: | ||||
| #ErrorDocument 500 "The server made a boo boo." | ||||
| #ErrorDocument 404 /missing.html | ||||
| #ErrorDocument 404 "/cgi-bin/missing_handler.pl" | ||||
| #ErrorDocument 402 http://www.example.com/subscription_info.html | ||||
| # | ||||
|  | ||||
| # | ||||
| # EnableMMAP and EnableSendfile: On systems that support it,  | ||||
| # memory-mapping or the sendfile syscall may be used to deliver | ||||
| # files.  This usually improves server performance, but must | ||||
| # be turned off when serving from networked-mounted  | ||||
| # filesystems or if support for these functions is otherwise | ||||
| # broken on your system. | ||||
| # Defaults if commented: EnableMMAP On, EnableSendfile Off | ||||
| # | ||||
| #EnableMMAP off | ||||
| EnableSendfile on | ||||
|  | ||||
| # Supplemental configuration | ||||
| # | ||||
| # Load config files in the "/etc/httpd/conf.d" directory, if any. | ||||
| IncludeOptional conf.d/*.conf | ||||
							
								
								
									
										385
									
								
								templates/Fedora/37/etc/httpd/conf/magic
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										385
									
								
								templates/Fedora/37/etc/httpd/conf/magic
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,385 @@ | ||||
| # Magic data for mod_mime_magic Apache module (originally for file(1) command) | ||||
| # The module is described in /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		 | ||||
| #					- WAVE format | ||||
| >8	string		WAVE		audio/x-wav | ||||
| # MPEG audio. | ||||
| 0   beshort&0xfff0  0xfff0  audio/mpeg | ||||
| # C64 SID Music files, from Linus Walleij <triad@df.lth.se> | ||||
| 0   string      PSID        audio/prs.sid | ||||
|  | ||||
| #------------------------------------------------------------------------------ | ||||
| # 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 | ||||
|  | ||||
| # XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se> | ||||
| 0   string      \<?xml      text/xml | ||||
|  | ||||
| #------------------------------------------------------------------------------ | ||||
| # 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 | ||||
|  | ||||
| 0	string		\x89PNG		image/png | ||||
| 0	string		FWS		application/x-shockwave-flash | ||||
| 0	string		CWS		application/x-shockwave-flash | ||||
|  | ||||
| #------------------------------------------------------------------------------ | ||||
| # 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 | ||||
| # Quicktime video, from Linus Walleij <triad@df.lth.se> | ||||
| # from Apple quicktime file format documentation. | ||||
| 4   string      moov        video/quicktime | ||||
| 4   string      mdat        video/quicktime | ||||
|  | ||||
		Reference in New Issue
	
	Block a user