| Author |
Topic Search Topic Options
|
aladin11
Groupie
Joined: 10 October 2009
Status: Offline
Points: 70
|
Post Options
Thanks(0)
Quote Reply
Topic: Access forum via sub domain Posted: 12 April 2010 at 3:11pm |
|
I notice that if you access WWF via http://www.mydomain.com/forum/ and sub-domain http://forum.mydomain.com/, you'll likely get different results in active users list Ex: http://www.lapdanceriders.com/forum/ http://forum.lapdanceriders.com/ Any ideas?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2010 at 3:38pm |
|
It all depends on how you have the websites setup in IIS.
If you have them setup as two separate websites then they will use different application for each website and so will show different results in the active users list which uses application variable to work.
If you setup the second domain name to point to the same IIS website they will both share the same application and this show the same results.
|
|
|
 |
aladin11
Groupie
Joined: 10 October 2009
Status: Offline
Points: 70
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2010 at 5:36pm |
|
Thanks Bruce, For example, I want my users can access forum via the main domain: http://www.mydomain.com/forum/default.asp and sub-domain: http://forum.mydomain.com/default.asp Is there any way that I can point both to the same IIS Website?
I wonder why WWF can only access via http://forums.webwiz.net not
http://forums.webwiz.net/
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2010 at 5:53pm |
|
I would suggest only having one domain point to your forum, otherwise Google will mark you down and members who receive post notification may find that they need to keep logging back in if they use a different domain to that in the post notifications.
When you create a website in IIS you can add bindings. However one of your domains is a folder in a website and the other a forum, so you would not be able to set this up as a single IIS web site for the forum.
You ask why this forum can not be accessed through www.webwiz.net/forums/, thats because this forum is setup as it's own website. This is how sub domains should be setup but some web hosts simply point the sub domain at a folder on your main website. It sounds like this is the setup that you are using.
|
|
|
 |
aladin11
Groupie
Joined: 10 October 2009
Status: Offline
Points: 70
|
Post Options
Thanks(0)
Quote Reply
Posted: 13 April 2010 at 12:37pm |
|
I understand your points, but I still cannot figure out how to set it up in IIS 6. I want my forum can only access via: http://forum.mydomain.com, like this forum. I create: - A "main website", Home directory point to C:\Inetpub\wwwroot, Host header: www.mydomain.com, mydomain.com - A "forum website", Home directory point to C:\Inetpub\wwwroot\forum\, Host header: forum.mydomain.com - In DNS domain settings, there are 3 A (Address) records: www, @, forum point to this server IP.
Now I can access my forum via both: http://www.mydomain.com/forum/, http://forum.mydomain.com that I don't want to. What's wrong with my settings?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 13 April 2010 at 1:00pm |
|
The problem is all to do with the way you have your directories setup. You do not need to use the inetpub\wwwroot directory for websites, IIS just sets this directory up for the default website.
At the moment you have your main website pointing to wwwroot and your sub domain pointing at a sub folder off wwwroot.
You need to place the sub domain in it's own folder and not a sub folder.
For example you may use:-
Main website c:\HostingSpaces\mydomain.com\wwwroot
Sub domain c:\HostingSpaces\forum.mydomain.com\wwwroot
Thus placing both webites in completely different and separate folders.
|
|
|
 |