All pastes #553315 Raw Edit

dmccarthy

public text v1 · immutable
·published 2007-06-09 17:39 UTC
rendered paste body
<VirtualHost *:80>
ServerName forums.techguy.org
ServerAlias mobile.techguy.org
ServerAdmin webmaster@cermak.com
DocumentRoot /home/httpd/vhosts/helponthe.net/forums
ScriptAlias /cgi-bin/ /home/httpd/vhosts/helponthe.net/forums/cgi-bin/
RewriteRule ^/f([0-9]+)-s([^/]+)\.html$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/f([0-9]+)-s\.html$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)$ /showthread.php?threadid=$1 [L]
RewriteRule ^/t([0-9]+)/s([^/]+)\.html$ /redir.php?threadid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)s([^/]+)\.html$ /redir.php?threadid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)/s\.html$ /redir.php?threadid=$1&s=$2 [L]
RewriteRule ^/index-([^/]+)\.html$ /index.php?$1 [L]
RewriteRule ^/index-.html$ /index.php [L]
RewriteRule ^/t([0-9]+)&([^/]+)\.html$ /showthread.php?threadid=$1&$2 [L]
RewriteRule ^/t([0-9]+)\.html$ /showthread.php?threadid=$1 [L]
RewriteRule ^/avatar/file/(.*) /avatar.php?userid=$1
#RewriteRule ^/archive/f-([0-9]+).html$ /archive/index.php?f=$1 [L]
#RewriteRule ^/archive/t-([0-9]+).html$ /archive/index.php?t=$1 [L]
#RewriteRule ^/history/(.*)$ /archive/$1 [L]
RewriteRule ^/history/t-([0-9]+)\.html$ /showthread.php?threadid=$1 [L]
RewriteRule ^/history/f-([0-9]+)\.html$ /forumdisplay.php?forumid=$1 [L]
RewriteRule ^/attachments/(.*)$ http://attachments.techguy.org/attachments/$1 [L]
RewriteRule ^/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ http://www1.techguy.org/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteRule ^/(.*\.php)$ /vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteRule ^/(archive/.*)$ /vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
#not needed? RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.php -f
#not needed? RewriteRule ^(.*)/$ $1/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^/(.+)$ /vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
#ErrorDocument 404 /404.php
### ErrorLog logs/forums.techguy.org_error
# CustomLog logs/forums.techguy.org_access common
<Directory "/home/httpd/vhosts/helponthe.net/forums/">
Options Indexes FollowSymLinks MultiViews
AcceptPathInfo On
AllowOverride All
</Directory>
</VirtualHost>


<VirtualHost *:80>
ServerName beta.techguy.org
ServerAdmin webmaster@cermak.com
DocumentRoot /home/httpd/vhosts/helponthe.net/beta
RewriteEngine On
RewriteRule ^/f([0-9]+)-s([^/]+)\.html$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/f([0-9]+)-s\.html$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)$ /showthread.php?threadid=$1 [L]
RewriteRule ^/t([0-9]+)/s([^/]+)\.html$ /redir.php?threadid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)s([^/]+)\.html$ /redir.php?threadid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)/s\.html$ /redir.php?threadid=$1&s=$2 [L]
RewriteRule ^/index-([^/]+)\.html$ /index.php?$1 [L]
RewriteRule ^/index-.html$ /index.php [L]
RewriteRule ^/t([0-9]+)&([^/]+)\.html$ /showthread.php?threadid=$1&$2 [L]
RewriteRule ^/t([0-9]+)\.html$ /showthread.php?threadid=$1 [L]
RewriteRule ^/avatar/file/(.*) /avatar.php?userid=$1
RewriteRule ^/history/t-([0-9]+)\.html$ /showthread.php?threadid=$1 [L]
RewriteRule ^/history/f-([0-9]+)\.html$ /forumdisplay.php?forumid=$1 [L]
RewriteRule ^/attachments/(.*)$ http://attachments.techguy.org/attachments/$1 [L]
RewriteRule ^/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ http://www1.techguy.org/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteRule ^/(.*\.php)$ /vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteRule ^/(archive/.*)$ /vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^/(.+)$ /vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
ErrorLog logs/beta.techguy.org_error
<Directory "/home/httpd/vhosts/helponthe.net/beta/">
Options Indexes FollowSymLinks MultiViews
AcceptPathInfo On
AllowOverride All
</Directory>
</VirtualHost>


<VirtualHost *:80>

	ServerName  helponthe.net
	ServerAlias www.helponthe.net
	Redirect permanent / http://www.techguy.org/

</VirtualHost>


<VirtualHost *:80>

	ServerName techguy.org
	ServerAlias www.techguy.org
	ServerAdmin webmaster@cermak.com
	DocumentRoot /home/httpd/vhosts/helponthe.net/www
	ScriptAlias /cgi-bin/ /home/httpd/vhosts/helponthe.net/www/cgi-bin/
	ErrorDocument 404 /404.html

	<Directory /home/httpd/vhosts/helponthe.net/www>
		Options Indexes FollowSymLinks MultiViews
		AcceptPathInfo On
		AllowOverride None
	</Directory>

	RewriteEngine on
	RewriteRule ^/index.html(.*)$ /index.php?$1 [L]
	RewriteRule ^/how2help/donate(.*)$ /index.php?page=donate [L]
	RewriteRule ^/how2help(.*)$ /index.php?page=how2help [L]
	RewriteRule ^/news(.*)$ /index.php?page=newsletter [L]
	RewriteRule ^/aboutus(.*)$ /index.php?page=aboutus [L]
	RewriteRule ^/list(.*)$ /index.php?page=list [L]
	RewriteRule ^/(.*).html$ /index.php?page=$1 [L]
	#LOG## CustomLog logs/helponthe.net_log combined

</VirtualHost>


<VirtualHost *:80>

	ServerName techguy.com
	ServerAlias www.techguy.com forums.techguy.com techsupportguy.net www.techsupportguy.net techsupportguy.org www.techsupportguy.org techsupportpeople.com www.techsupportpeople.com techsupportpeople.net www.techsupportpeople.net techsupportgirl.net www.techsupportgirl.net techsupportguy.com www.techsupportguy.com tsgserver.com www.tsgserver.com techsupportforums.org www.techsupportforums.org techsupportforum.org www.techsupportforum.org techguyforums.org www.techguyforums.org techguyforums.com www.techguyforums.com techsupportgirl.com www.techsupportgirl.com techguy.us www.techguy.us techsupportguy.us www.techsupportguy.us randomdiscussion.com www.randomdiscussion.com randomdiscusion.org www.randomdiscussion.org
	ServerAdmin webmaster@cermak.com
	DocumentRoot /home/httpd/vhosts/helponthe.net/alt

	<Directory /home/httpd/vhosts/helponthe.net/alt>
		AllowOverride All
	</Directory>

</VirtualHost>