I just installed a clean copy of 4.2.2 on my server. I would like to run this at the same time as running my other install (they are both installed and db's are setup fine) I am just unsure how to get the apache virtual hosts setup to do this. What I want is, my new install to be accessed using www.zedsaid.com (it currently is) and my old Matrix install to be accessed at www.zedsaid.com/old . I tried, but it doesn't seem to be working, any help?
Old:
ServerName www.zedsaid.com/old
ServerAdmin nic@zedsaid.com
DocumentRoot /home/websites/mysource_matrix/core/web
Options -Indexes FollowSymLinks
Order deny,allow
Deny from all
Order allow,deny
Allow from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Alias /__fudge /home/websites/mysource_matrix/fudge
Alias /__data /home/websites/mysource_matrix/data/public
Alias /__lib /home/websites/mysource_matrix/core/lib
Alias /old /home/websites/mysource_matrix/core/web/index.php/
New:
ServerName www.zedsaid.com
ServerAlias zedsaid.com zedsaidstudio.com
ServerAdmin nic@zedsaid.com
DocumentRoot /home/websites/squiz_matrix/core/web
Options -Indexes FollowSymLinks
<Directory /home/websites/squiz_matrix>
Order deny,allow
Deny from all
</Directory>
<DirectoryMatch "^/home/websites/squiz_matrix/(core/(web|lib)|data/public|fudge)">
Order allow,deny
Allow from all
</DirectoryMatch>
<FilesMatch "\.inc$">
Order allow,deny
Deny from all
</FilesMatch>
<LocationMatch "/(CVS|\.FFV)/">
Order allow,deny
Deny from all
</LocationMatch>
# The RewriteCond says "Anything that doesn't match www.domain.com"
RewriteEngine on
RewriteCond %{HTTP_HOST} ^zedsaid.com$ [NC]
# The RewriteRule says "Rewrite to www.domain.com with the original path in place"
RewriteRule ^/(.*)$ http://www.zedsaid.com/$1 [L,R]
Alias /__fudge /home/websites/squiz_matrix/fudge
Alias /__data /home/websites/squiz_matrix/data/public
Alias /__lib /home/websites/squiz_matrix/core/lib
Alias / /home/websites/squiz_matrix/core/web/index.php/
</VirtualHost></pre>
