Web Servers General Talk - Virtual Hosts, Multiple Domains and Apps: resin.conf and apache.conf

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > May 2004 > Virtual Hosts, Multiple Domains and Apps: resin.conf and apache.conf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Virtual Hosts, Multiple Domains and Apps: resin.conf and apache.conf
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com