Managing Portals

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/3/2005 2:10:26 PM
Gravatar
Total Posts 38

Managing Portals

I have created 2 additional portals. How do I login and maintain the portals?

Is it possible to login using Localhost?


Thanks

David.........
5/3/2005 3:28:05 PM
Gravatar
Total Posts 18439

Re: Managing Portals

Typically I work in VS.NET at http://localhost/mojoportal but to test 2 sites I do this:

Go into IIS and create a new Web Site (not a virtual directory) and point it to the same folder where localhost/mojoportal points. Leave the ip address the same as your default Web site usually "All Unassigned".  Right next to this is the "Advanced" button, click that and enter a host header for the site. For me I put mojo1.joeaudette.home, you can make it up it doesn't have to be a real domain on your local network. Now create another site and do the same thing but put mojo2.whatever.home for the host header.  Now edit your hosts file so that the browser can resolve those host names. The hosts file lives in the Windows\System32\Drivers\etc\ folder and is just a text file. Open it with a text editor and put your ip address on a new line then some space and the host name like this

192.168.0.8   mojo1.joeaudette.home
192.168.0.8   mojo2.whatever.home

save the file and navigate to the first site in the browser, open another browser and browse to the second site. It is the same site as the first site until you go into the admin page and add the host for the second site

Hope that helps,

Joe
2/26/2008 4:19:20 PM
Gravatar
Total Posts 37

Re: Managing Portals

Having just started to use mojoportal (excellent I might add so far) I have been developing on my XP Pro laptop for mobility and you can't run multiple websites as suggested above on XP Pro however I have used iisadmin (www.firstserved.net/help/downloads) which is excellent and a free utility.

I have also copied the text from another useful link to help which also mentions the iisadmin utility.

Windows XP Professional does not support multiple websites. You cannot create new websites using IIS Manager for Windows XP, as you can on a server edition. It is however possible to create a new website on Windows XP by code, so the limition is in the GUI. This can be done using ADSI or WMI. IIS on Windows XP does however not allow you to run multiple websites simultaneously, and if you try to start a second website using IIS Manager, when there is already one running, you will get this error message: 

The request is not supported

If you truly need to run multiple websites simultaneously, you should look into using a server edition such as Windows Server 2003.

For a developer, it is a bit troublesome to work on multiple websites, when the development machine does not support multiple websites. There is however several ways around this.

The most elegant (when writing this) is to use IIS Admin, developed by a third-party developer for this purpose. It is simple to use, to create, delete, start and stop websites. A second option is to use adsutil.vbs, located in the folder C:\Inetpub\AdminScripts (Windows XP, default installation). The command to use is (from a command prompt):

C:\Inetpub\AdminScripts> cscript.exe adsutil.vbs create_vserv W3SVC/2
C:\Inetpub\AdminScripts> cscript.exe adsutil.vbs copy W3SVC/1 W3SVC/2


The number (2) is the website ID of the new website. If you create multiple websites, you will need to use a unique ID each time. The first of these commands will create a new website. The second will copy all the necessary data from the default website, to your new website.

A third option is to use Metabase Explorer from the IIS 6.0 Resource Kit Tools (yes, you can install the tool on Windows XP). Copy the default website (/LM/W3SVC/1/) and then paste it. This will also give you another website, ready to use.

The fourth option is to use WMI/ADSI and create the website by code. Use the IIS SDK available at MSDN to get more help for this.

After you have created a new website on Windows XP (depending on how you did), you will notice that you have a red error icon in front of the website in IIS Manager. This is because IIS tried to start the website, but was not able to do so (because of the limitation).

When you are ready to delete the website, you will notice another problem...you cannot delete the website! (from IIS Manager). Since the GUI does not allow you create websites, why would it allow you to delete websites? Luckily enough, we can delete the website using adsutil.vbs, Metabase Explorer or ADSI/WMI. To delete a website using adsutil.vbs, write this in a command prompt:

C:\Inetpub\AdminScripts> cscript.exe adsutil.vbs delete W3SVC/2

Multiple websites at the same time
IIS on Windows XP supports ISAPI filters, and with the help of one, you can create multiple websites. Or, it is not really multiple websites, but it will act as if it were. MultiSite Filter Version 2 is a free ISAPI filter which gives you this functionality.

 

You must sign in to post in the forums. This thread is closed to new posts.