localhost addressing

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/8/2012 1:44:29 PM
Gravatar
Total Posts 9

localhost addressing

System Information: mojoPortal Version 2.3.8.1 MSSQL, Operating System Microsoft Windows NT 6.1.7601 Service Pack 1,
ASP.NET Info v4.0.30319 Running in Full Trust

 I installed mojoPortal in its own folder and am setting up child sites using host names. But to get a child site to run in a browser I have to add /mojoPortal to the host name, as in childname/mojoportal instead of just childname. And, mojoPortal is adding the /mojoportal to the location of pages as in http://childname/mojoPortal/Admin/PageSettings.aspx?pageid=2. I did the following steps:

From main site:

1. Go to Admin menu, Site List, and enter new site title and click New Site.
2. In same area, go to Host Name Mapping and enter new site name ([childname]) and click Add Host Name.
3. Open Notepad (run as Administrator) and open c:\Windows\System32\drivers\etc\hosts (change Text documents *.txt to All Files in dropdown). Add entry 127.0.0.1 [childname] and save.
4. In IIS, Default Web Site, click Bindings. Click Add. Leave Type: http, IP Address: All Unassigned, Port: 80. Enter Host name as [childname]. Click OK.

 

What did I miss?

2/9/2012 8:06:20 AM
Gravatar
Total Posts 18439

Re: localhost addressing

You are still installing mojoPortal under a virtual directory beneath a web site instead of in the root of the web site. If you instsall it as a root level site there not be a folder like /mojoportal involved.

I feel like I've explained this pretty well in articles and videos I've given you links for in previous posts, but I just updated the article Adding a Host Name to the hosts file for local testing with some more background information. Maybe that will clear it up for you.

Hope that helps,

Joe

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