mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Add apache httpd.conf example
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							a39f1e0f9b
						
					
				
				
					commit
					eeea53759b
				
			
							
								
								
									
										42
									
								
								tests/syntax-tests/highlighted/Apache/httpd.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								tests/syntax-tests/highlighted/Apache/httpd.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
[38;2;117;113;94m# This is a comment[0m
 | 
			
		||||
[38;2;117;113;94m#[0m
 | 
			
		||||
[38;2;249;38;114mServerRoot[0m[38;2;248;248;242m ""[0m
 | 
			
		||||
[38;2;249;38;114mListen[0m[38;2;248;248;242m [0m[38;2;190;132;255m80[0m
 | 
			
		||||
[38;2;249;38;114mLoadModule[0m[38;2;248;248;242m mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so[0m
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116munixd_module[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;249;38;114mUser[0m[38;2;248;248;242m daemon[0m
 | 
			
		||||
[38;2;249;38;114mGroup[0m[38;2;248;248;242m daemon[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;249;38;114mServerAdmin[0m[38;2;248;248;242m you@example.com[0m
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mDirectory[0m[38;2;248;248;242m [0m[38;2;230;219;116m/[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mAllowOverride[0m[38;2;248;248;242m none[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mRequire[0m[38;2;248;248;242m all denied[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mDirectory[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;249;38;114mDocumentRoot[0m[38;2;248;248;242m "/usr/share/apache2/default-site/htdocs"[0m
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mDirectory[0m[38;2;248;248;242m [0m[38;2;230;219;116m"/usr/share/apache2/default-site/htdocs"[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mOptions[0m[38;2;248;248;242m Indexes FollowSymLinks[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mAllowOverride[0m[38;2;248;248;242m None[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mRequire[0m[38;2;248;248;242m all granted[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mDirectory[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mFiles[0m[38;2;248;248;242m [0m[38;2;230;219;116m".ht*"[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mRequire[0m[38;2;248;248;242m all denied[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mFiles[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;249;38;114mErrorLog[0m[38;2;248;248;242m "/var/log/apache2/error_log"[0m
 | 
			
		||||
[38;2;249;38;114mLogLevel[0m[38;2;248;248;242m warn[0m
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116mlog_config_module[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mLogFormat[0m[38;2;248;248;242m "%h %l %u %t \"%r\" %>s %b \"[0m[38;2;248;248;242m%{[0m[38;2;248;248;242mReferer[0m[38;2;248;248;242m}[0m[38;2;248;248;242mi\" \"[0m[38;2;248;248;242m%{[0m[38;2;248;248;242mUser-Agent[0m[38;2;248;248;242m}[0m[38;2;248;248;242mi\"" combined[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mCustomLog[0m[38;2;248;248;242m "/var/log/apache2/access_log" common[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
 | 
			
		||||
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116malias_module[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mScriptAlias[0m[38;2;248;248;242m [0m[38;2;230;219;116m/cgi-bin/[0m[38;2;248;248;242m [0m[38;2;230;219;116m"/usr/lib/cgi-bin/"[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
 | 
			
		||||
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116mmime_module[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mTypesConfig[0m[38;2;248;248;242m /etc/apache2/mime.types[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mAddType[0m[38;2;248;248;242m [0m[38;2;166;226;46mapplication/x-compress[0m[38;2;248;248;242m .Z[0m
 | 
			
		||||
[38;2;248;248;242m    [0m[38;2;249;38;114mAddOutputFilter[0m[38;2;248;248;242m INCLUDES .shtml[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;255;255;255m<[0m[38;2;166;226;46mIfModule[0m[38;2;248;248;242m [0m[38;2;230;219;116mproxy_html_module[0m[38;2;255;255;255m>[0m
 | 
			
		||||
[38;2;249;38;114mInclude[0m[38;2;248;248;242m /etc/apache2/extra/proxy-html.conf[0m
 | 
			
		||||
[38;2;255;255;255m</[0m[38;2;166;226;46mIfModule[0m[38;2;255;255;255m>[0m
 | 
			
		||||
							
								
								
									
										42
									
								
								tests/syntax-tests/source/Apache/httpd.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								tests/syntax-tests/source/Apache/httpd.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
# This is a comment
 | 
			
		||||
#
 | 
			
		||||
ServerRoot ""
 | 
			
		||||
Listen 80
 | 
			
		||||
LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
 | 
			
		||||
<IfModule unixd_module>
 | 
			
		||||
User daemon
 | 
			
		||||
Group daemon
 | 
			
		||||
</IfModule>
 | 
			
		||||
ServerAdmin you@example.com
 | 
			
		||||
<Directory />
 | 
			
		||||
    AllowOverride none
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Directory>
 | 
			
		||||
DocumentRoot "/usr/share/apache2/default-site/htdocs"
 | 
			
		||||
<Directory "/usr/share/apache2/default-site/htdocs">
 | 
			
		||||
    Options Indexes FollowSymLinks
 | 
			
		||||
    AllowOverride None
 | 
			
		||||
    Require all granted
 | 
			
		||||
</Directory>
 | 
			
		||||
<Files ".ht*">
 | 
			
		||||
    Require all denied
 | 
			
		||||
</Files>
 | 
			
		||||
ErrorLog "/var/log/apache2/error_log"
 | 
			
		||||
LogLevel warn
 | 
			
		||||
<IfModule log_config_module>
 | 
			
		||||
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
 | 
			
		||||
    CustomLog "/var/log/apache2/access_log" common
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule alias_module>
 | 
			
		||||
    ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"
 | 
			
		||||
</IfModule>
 | 
			
		||||
 | 
			
		||||
<IfModule mime_module>
 | 
			
		||||
    TypesConfig /etc/apache2/mime.types
 | 
			
		||||
    AddType application/x-compress .Z
 | 
			
		||||
    AddOutputFilter INCLUDES .shtml
 | 
			
		||||
</IfModule>
 | 
			
		||||
<IfModule proxy_html_module>
 | 
			
		||||
Include /etc/apache2/extra/proxy-html.conf
 | 
			
		||||
</IfModule>
 | 
			
		||||
		Reference in New Issue
	
	Block a user