Browse Source

Remove old and unused configuration files

master
Peter J. Jones 5 months ago
parent
commit
def77698f9
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 0 additions and 43 deletions
  1. 0
    43
      etc/httpd.conf

+ 0
- 43
etc/httpd.conf View File

@@ -1,43 +0,0 @@
<VirtualHost *:80>

##############################################################################
ServerName effectiveruby.com
ServerAlias www.effectiveruby.com
ErrorLog /var/log/apache2/effrb-error.log
CustomLog /var/log/apache2/effbr-access.log combined

##############################################################################
DocumentRoot /home/pjones/websites/effectiveruby.com/www

<Directory "/home/pjones/websites/effectiveruby.com/www">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

##############################################################################
# Enable mod_rewrite
RewriteEngine On
# RewriteLog "/var/log/apache2/rewrite.log"
# RewriteLogLevel 3

##############################################################################
# Force all traffic to www.
RewriteCond %{HTTP_HOST} !^www\.effectiveruby\.com$ [NC]
RewriteRule ^(.*)$ http://www.effectiveruby.com$1 [R=301,L,QSA]

##############################################################################
# Serve pre-gzipped versions of files.
RewriteCond %{REQUEST_FILENAME}.gz -s
RewriteRule ^(.+)$ $1.gz [L,PT]

# Without this, Content-Type will be "application/x-gzip"
<FilesMatch .*\.css\.gz>
ForceType text/css
</FilesMatch>

<FilesMatch .*\.js\.gz>
ForceType text/javascript
</FilesMatch>
</VirtualHost>

Loading…
Cancel
Save