Running multisite on a dev machine

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/28/2009 12:06:52 AM
Gravatar
Total Posts 5

Running multisite by hostname on a dev machine

I'm looking for information on how to run mojo in development with multisite by hostname.  I read the info in the docs about how to set it up for deployment in production but I'm not sure how you would get the local IIS server on my dev pc to respond to a url that doesn't exist.

6/28/2009 5:23:56 AM
Gravatar
Total Posts 18439

Re: Running multisite on a dev machine

You need to understand about DNS resolution. All machines first try to resolve names from their own hosts file. So you can put hostname to ip mappings there for testing. On Vista you need to run notepad as Administrator then open the file at

c:\Windows\system32\Drivers\etc\hosts

its a text file with no extension.

You will see that it already has a record for localhost. Thats how it knows to respond on localhost.

You can add arbitrary host names like

testhost    127.0.0.1

hamsandwich.com 127.0.0.1

and then you can use these host names for testing.

Hope it helps,

Joe 

6/28/2009 9:33:13 AM
Gravatar
Total Posts 5

Re: Running multisite on a dev machine

Ah yes...I had completely forgotten about that.  Thanks, I'm sure that will work.

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