Sameer Kekade wrote:
The difficult part I think is to configure virtual hosts/ jrun-apache
connector so that www.site1.com.au translates to http://server-ip/site1
And www.site2.com.au translates to http://server-ip/site2

I posted about this a few weeks back. Create a JRun server instance with only CF installed (get rid of the Remoting EAR and Default WAR that are created by default) and give CF an empty context root. Take note of the server port eg 51003 when you create the server. For apache, use wsconfig as per instructions to install the connector for all sites. Then create a virtual host:


<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /users/robin/sandboxes/rocketbootssite/wwwroot
ServerName rocketboots.local
Options Indexes
<IfModule mod_jrun20.c>
JRunConfig Verbose true
JRunConfig Serverstore /Applications/JRun4/lib/wsconfig/rocketbootssite/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51003
AddHandler jrun-handler .cfm .cfml .cfc .mxml
</IfModule>
</VirtualHost>


In the JRun console make sure the connector port service is running - usually you have to turn it on yourself the first time. Restart apache and the instance and your first virtual site should be in business. When you create second and subsequent server instances they will have different connector ports, just update the relevant sections of the virtual host config to connect to those. You can also have multiple virtual hosts use the same JRun instance.

Robin
http://www.rocketboots.com.au

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to