Multiple Sites, One IP Address

58 views
Skip to first unread message

Boon

unread,
Jul 2, 2011, 7:45:32 PM7/2/11
to farcry-user
Hi there

I am trying to host multiple sites from one IP address, and am having
some problems configuring the sites so that I can login using a
configured domain name. I can login using a local addreses.

The environment is: 1. Farcry 6.11; 2. SQL 2005; 3. IIS 7, and 4. I
have Farcry Sites "A" and "B" setup and ready to publish.

I can login to the webtop using the ip address for the local network,
192.168.1.10:91/farcry (there is a separate site configured in IIS for
this to the the domainname). I go to www.thedomainname.com/farcry.
After ensuring both sites (A & B) are running, the dropdown list on
the webtop show both sites which I can choose from to login. When I go
to login to the webtop, the login details do not work.

The message is that the username and password are incorrect - but I
can login using the local network address.

Would anyone be able to help out?

Regards
Boon

Sean Coyne

unread,
Jul 7, 2011, 9:03:23 AM7/7/11
to farcr...@googlegroups.com
Any reason you are going to http://domain.com/farcry?  On a FarCry 5 or 6 site you should be logging in at http://domain.com/webtop

You should NOT have a web server virtual directory called "/farcry" on a FC 5+ site.  You should have a "/farcry" mapping defined in the CF admin if you are using the advanced install, but not a web server virtual directory.

Remove the /farcry VD and create a /webtop one.  Point it at /farcry/core/webtop.

Also make sure you have J2EE sessions turned on in the CF Admin.

If that doesn't fix it, please provide some additional details on your setup, IE where is each IIS site pointed (what directory), what virtual directories and mappings do you have, etc so we can try to help.

Leigh Ellis

unread,
Jul 9, 2011, 8:39:28 PM7/9/11
to farcr...@googlegroups.com
Thank you very much for this.
 
Here is a bit more background for other newbies.
 
0. there was no VD for farcry on the webserver or CF. Going to thedomainname.com/farcry was just redirecting to www.thedomainname/farcry/core/webtop/login.cfm?RETURNURL=%2Ffarcry%2Fcore%2Fwebtop%2Findex%2Ecfm, due to the redirect in the index.cfm of that directory.
1. The install of Farcry was the install option for Multiple Site using a single Farcry core. It is not the "advanced" set-up or the setup for a single site to be used with FaryCry.
2. an IIS Site named "FarCrySites" was setup using the local IP address in IIS (192.168.1.10). This was setup when I first started checking out Farcy.
3. When I had Site A ready to publish, I bought a domain name (I'll call it siteA.com). I then thought, hey, I'm going to be publishing another website shortly, and I'll have to buy the domain name siteB.com. I'll just set up an IIS site for siteA.com for now (in addtion to the one referred to at paragreph 2 above), and when I get the domain name for siteB.com, I'll just add another IIS Site when I buy it (siteB.com).
 
So, when I set up that siteA.com, the problems referred to in my initial post starting happening - I could not login to the webtop.
 
It was the J2EE setting which was causing the problem.
 
-------------------------
As a post script:
 
Since that time I have kind of made progress, but not really. Bearing in the configuration above, I thought I would try the following which occurred to me after reading your post above to see what would happen. The changes were:
(a) setup a CF Virtual directory to /farcry (I appreciate that this is not recommended practice, or otherwise a "big no-no"), and
(b) changed the home directory for siteA.com to the d:\wwwroot\FarCrySites\siteA. The home directory for siteA.com was originally d:\wwwroot\FarCrySites. I thought I could use IIS7 URL rewriting somehow to make requests to siteA.com "redirect" so that the user would not have "www.thedomainname.com/siteA/index.cfm..." appear in the address bar.
 
It was an interesting result. I can browse to the siteA.com and siteB.com, but the CSS cannot be found. This seems to be because application.url.webroot which is set by FarCry is "/siteA_name".
 
It seems the ultimate problem may be that if I want to have multiple sites on the same server, I need to:
1. point the thedomainame.com to the home directory of siteA.com on the server (so that the /siteA_name does not appear ).
2. have another dedicated IP address for administration of farcry websites.
 
But to do this, I somehow need to change the value of the variable application.url.webroot from "/siteA_Name" to "/" in accordance with best practice? I am sure that I can hack it, but prefer to use bets practice. 
 
Would anyone be able to offer any tips on how to do this?
 
----------------------------------------- 
 
Boon
 
 


 
--
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/farcry-user/-/wXeUQfr6uhUJ.
To post to this group, send email to farcr...@googlegroups.com.
To unsubscribe from this group, send email to farcry-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en.

Reply all
Reply to author
Forward
0 new messages