SearchSearch   

Rewrite and Optimize

 
   Webmaster Forums (Home) -> Apache RSS
Next:  htaccess problem?  
Author Message
mikeydonges

External


Since: Jul 08, 2007
Posts: 1



(Msg. 1) Posted: Sun Jul 08, 2007 1:46 pm
Post subject: Rewrite and Optimize
Archived from groups: alt>apache>configuration (more info?)

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


<IfModule mod_cache.c>
#LoadModule disk_cache_module /usr/lib/apache2/modules/
mod_disk_cache.so
<IfModule mod_disk_cache.c>
CacheRoot c:/cacheroot
CacheSize 256
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
</IfModule>

LoadModule mem_cache_module /usr/lib/apache2/modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
</IfModule>
</IfModule>

NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster.RemoveThis@ipalaces.org
DocumentRoot /var/www/
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

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

</VirtualHost>

<VirtualHost *>
ServerName panel.ipalaces.org
ProxyPass / http://panel.ipalaces.org:10000/
ProxyPassReverse / http://panel.ipalaces.org:10000/
</VirtualHost>
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Apache
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum