# apache configuration ServerName www.domain1.com ServerAlias domain1.com ServerAdmin webmaster@domain1.com DocumentRoot /home/virtual/site12/fst/var/www/html RewriteEngine on suexecUserGroup admin12 admin12 RedirectMatch ^/admin/?$ https://192.168.1.96:19638/webhost/services/virtualhosting/siteadmin?ocw_login_domain=domain1.com RedirectMatch ^/user/?$ https://192.168.1.96:19638/webhost/services/virtualhosting/useradmin?ocw_login_domain=domain1.com RewriteRule ^/~([^/]+)(.*) /users/$1$2 [PT] AliasMatch ^/users/([^/]+)/?(.*) /home/virtual/site12/fst/home/$1/public_html/$2 # to redirect users to domain2.com RewriteCond %{HTTP_HOST} domain1.com; RewriteRule ^/(.*)$ http://domain2.com/ [R,L] Allow from all AllowOverride All Order allow,deny Allow from all AllowOverride All Order allow,deny SetEnv SITE_ROOT /home/virtual/site12/fst SetEnv SITE_HTMLROOT /home/virtual/site12/fst/var/www/html # Disable the ability to follow symlinks; # users should use SymlinksIfOwnerMatch instead Options -FollowSymlinks +SymlinksIfOwnerMatch # Don't allow mod_php php_admin_flag engine off php_admin_flag engine off Action php-script /interpreters/php-script AddHandler php-script .php .php4 .php3 Options ExecCGI SetHandler cgi-script Alias /interpreters/ /home/virtual/site12/fst/var/www/interpreters/ Include /etc/httpd/conf/site12