Rewrite and Optimize

Rewrite and Optimize

am 08.07.2007 22:46:01 von mikeydonges

Here it is
-------------------------------
# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/
mod_placeholder.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/
mod_proxy_http.so
LoadModule cache_module /usr/lib/apache2/modules/mod_cache.so
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so



#LoadModule disk_cache_module /usr/lib/apache2/modules/
mod_disk_cache.so

CacheRoot c:/cacheroot
CacheSize 256
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3


LoadModule mem_cache_module /usr/lib/apache2/modules/mod_mem_cache.so

CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048



NameVirtualHost *

ServerAdmin webmaster@ipalaces.org
DocumentRoot /var/www/

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


ErrorLog /var/log/apache2/error.log
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.ipalaces\.org$
RewriteCond /home/%1/ -d
RewriteRule ^(.+) %{HTTP_HOST}$1
RewriteRule ^([^.]+)\.ipalaces\.org/media/(.*) /home/$1/palace/media/
$2
RewriteRule ^([^.]+)\.ipalaces\.org(.*) /home/$1/www$2

RewriteCond %{HTTP_HOST} freepalaces\.com$ [NC]
RewriteRule ^(.*)$ http://www.ipalaces.org/home/free.html [R=302]




#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} avatarisland\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/avatarisland/www$1

RewriteCond %{HTTP_HOST} avatarisland\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/avatarisland/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} sprites-paradise\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/sprites-paradise/www$1

RewriteCond %{HTTP_HOST} sprites-paradise\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/sprites-paradise/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} bombshellacademy\.net$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/bombshellacademy/www$1

RewriteCond %{HTTP_HOST} bombshellacademy\.net$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/bombshellacademy/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} redhennessy\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/redhennessy/www$1

RewriteCond %{HTTP_HOST} redhennessy\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/redhennessy/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} angelicvisions\.net$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/angelicvisions/www$1

RewriteCond %{HTTP_HOST} angelicvisions\.net$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/angelicvisions/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} stormpalace\.net$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/stormpalace/www$1

RewriteCond %{HTTP_HOST} stormpalace\.net$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/stormpalace/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} sharkland\.org$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/sharkland/www$1

RewriteCond %{HTTP_HOST} sharkland\.org$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/sharkland/palace/media/$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} plasticcreationsdecaying\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/plasticcreationsdecaying/www$1

RewriteCond %{HTTP_HOST} plasticcreationsdecaying\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/plasticcreationsdecaying/palace/media/
$1
#----------------------------------------------------------- ------------------------------------------
RewriteCond %{HTTP_HOST} artisticassaultz\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/media/
RewriteRule ^(.*)$ /home/artisticassaultz/www$1

RewriteCond %{HTTP_HOST} artisticassaultz\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^/media/(.*)$ /home/artisticassaultz/palace/media/$1




ServerName panel.ipalaces.org
ProxyPass / http://panel.ipalaces.org:10000/
ProxyPassReverse / http://panel.ipalaces.org:10000/