| w0lver 2004-05-27, 4:28 pm |
| OK, I have a complex environment I need to make changes to here's what
it does:
11 different domains all doing a redirect to a single application,
it's configured in the httpd.conf like this:
<VirtualHost xx.xxx.xxx.143>
ServerAdmin root@localhost
DocumentRoot /home/httpd/htdocs
ServerName www.mydomain1.com
<Directory /home/httpd/htdocs/WEB-INF>
Order allow,deny
Deny from all
</Directory>
RewriteEngine on
RewriteRule ^/$ http://www.maindomain.com/arw/index.jsp?id=1234
</VirtualHost>
So the id piece is different for each of the 11 domains, each handled
by the application loading a different page. Now, we want to have a
second copy of the application running against a different database
instance, on another domain. So the directory structure is like this:
/home/httpd/htdocs/
/home/httpd/htdocs2/
How do I add the VirtualHost in httpd.conf for this new app, other
than changing the server name, document root, and removing the
rewrites.
Then how do I change my resin.conf to handle this? Right now, the main
app config is just between two <web-app> tags… I tried <host
id=www.maindomain.com> and <host id=www.newdomain.com> but resin just
restarting itself, never coming up.
Thanks,
Ross
|