summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Andersson <sebastian@bittr.nu>2020-10-13 17:48:50 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-14 07:43:38 +0200
commiteeea53759bc3dfce932e901ee6eec18e9fae546e (patch)
tree79b105a2c0f37e0481bc49cffab5ce7acfb13fb2
parenta39f1e0f9b63833b2d34ae96e0aa176338e0a0c7 (diff)
Add apache httpd.conf example
-rw-r--r--tests/syntax-tests/highlighted/Apache/httpd.conf42
-rw-r--r--tests/syntax-tests/source/Apache/httpd.conf42
2 files changed, 84 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Apache/httpd.conf b/tests/syntax-tests/highlighted/Apache/httpd.conf
new file mode 100644
index 00000000..80eb01ff
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Apache/httpd.conf
@@ -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>
diff --git a/tests/syntax-tests/source/Apache/httpd.conf b/tests/syntax-tests/source/Apache/httpd.conf
new file mode 100644
index 00000000..66287352
--- /dev/null
+++ b/tests/syntax-tests/source/Apache/httpd.conf
@@ -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>