Style different for localhost and domain access?

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/8/2007 7:00:49 AM
Gravatar
Total Posts 112

Style different for localhost and domain access?

Hi All,

Thanks for a wonderful tool, mojoPortal is GREAT!

When I access my just installed site from http://localHost/mojoPortalWeb the appearance is lovely; but when I come in through my router with http://domain:8080/mojoPortalWeb the appearance and functionallity goes ugly (not all styles info applied) and bad (the 8080 is stripped off and URLs get 404.)

Does anyone have suggestions about how I might easily correct the loss of the 8080 port reference inside mojoPortal?

Many thanks for any suggestions,
Dale E. Moore

6/8/2007 7:44:33 AM
Gravatar
Total Posts 18439

Re: Style different for localhost and domain access?

You might try in web.config setting, MapAlternatePort to false and see if it helps.

Joe

6/8/2007 12:18:44 PM
Gravatar
Total Posts 112

Re: Style different for localhost and domain access?

Thanks Joe for the very prompt reply!

Setting MapAlternatePort to false in web.config did not change the behavior.

Any other suggestions are very much appreciated,
Dale E. Moore

6/8/2007 1:36:37 PM
Gravatar
Total Posts 18439

Re: Style different for localhost and domain access?

Hi Dale,

When I change the IIS settings on my deve machine to use port 8080 and then I view it from another machine on my local network it works fine for me so I suspect something in your web server confguration or if there is a proxy server or firewall in your environment that could also be a factor and/or if your are doing port forwarding in your router using filters that could be causing this.

If you changed IIS to use port 8080 then your local url should be http://localhost:8080/mojoPortalWeb/ not http://localhost/mojoPortalWeb

I tried it both as a root site like http://vistalaptop:8080/ and also as a sub application like http://vistalaptop:8080/mojo/

Both configurations work fine for me.

I just map the name vistalatop to the ip address of my laptop in the hosts file on other machines on my network.

Wish I could be more help but it seems an issue specific to your environment. Maybe knowing more about your setup would give me more ideas.

Joe

6/8/2007 1:41:23 PM
Gravatar
Total Posts 112

Re: Style different for localhost and domain access?

Thanks for the feedback Joe!

I setup my router to port forward 8080 to that PC's port 80. So inside my LAN it's port 80, but coming from the outside it's 8080.

I'm already using port 80 on the router for another machine:(

So what do you think about that, Mr. Smarty Pants:)

Thanks!
Dale E. Moore

6/8/2007 1:56:09 PM
Gravatar
Total Posts 18439

Re: Style different for localhost and domain access?

Why not just change your IIS to run on port 8080 or create an additional site pointing to the same folder but running on port 8080 and remove the port mapping?

Joe

6/8/2007 1:59:42 PM
Gravatar
Total Posts 18439

Re: Style different for localhost and domain access?

I mean I think you wouls still need the port mapping rule but change it to map 8080 to 8080 and run the IIS website on 8080.

Joe

6/8/2007 2:33:10 PM
Gravatar
Total Posts 112

Re: Style different for localhost and domain access?

Mighty Joe;

My home site works fine setting IIS to 8080 and the router to port forward 8080 to that IIS machine.

But, interestingly, my work site still gets the same failure. Even though local LAN browsing to 8080 on the IIS machine works perfectly.

But it sounds like I've got some router bug and I shouldn't bug you with my router bug:)

Metta,
Dale E. Moore

6/8/2007 5:36:33 PM
Gravatar
Total Posts 112

Re: Style different for localhost and domain access?

Dear Joe,

I was confused with mojoportal's lack-of-style behavior for a while until I remembered that I'd set MapAlternatePort to false. When I put it back to true, everything is working fine now!

Metta,
Dale E. Moore

 

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