These are instructions for how to configure the HTTPD service on a Bombplates band site hosting server.
See also: Creating a Band Site Hosting Server
Install some modules
# yum install mod_ssl
edit /etc/httpd/conf/httpd.conf
Make sure it includes (at the end)
#individual site rewrite rules RewriteEngine On
And (with the other module loads)
LoadModule rewrite_module modules/mod_rewrite.so LoadModule filter_module modules/mod_filter.so
In the <Directory "/var/www/html"> block
AllowOverride All
Update any instances of MaxRequestsPerChild to prevent memory leaks.
MaxRequestsPerChild 4096
Enable virtual hosts on port 80 by uncommenting out (or inserting)
NameVirtualHost *:80
Configure compression (per https://github.com/h5bp/server-configs-apache/blob/master/src/web_perfor...)
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font-ttf" \
"application/x-javascript" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/eot" \
"font/opentype" \
"image/bmp" \
"image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
"text/x-cross-domain-policy" \
"text/xml"
</IfModule>
<IfModule mod_mime.c>
AddEncoding gzip svgz
</IfModule>
</IfModule>
Restart Apache and ensure it auto-starts on reboot
# /etc/init.d/httpd restart # /sbin/chkconfig httpd on