IIS configuration problems

1
I am struggling with setting up an IIS server to work properly. First of all when navigating to URL:8080 (where the Mendix Windows Service is running) all works fine. When I navigated to URL:80 (IIS website) I would get a semi-blank index.html page instead of the login.html. (semi-blank = top pane and bottom pane only, so no menu structure. And when I press the top pane icons like home or logout it displays a: "mx is not defined" error) I fixed that by adding the following line to the ManagedFusion.Rewriter.txt file: RewriteRule ^/$ /login.html I can now properly login but after that it navigates to index3.html, which doesn't exist but it, again, seems to display a semi-blank index.html page. If I navigate to URL/index.html it throws the following errors (firebug): "NetworkError: 500 Internal Server Error - http://ap17/mxclientsystem/dojo/dojo.js" dojo.js "NetworkError: 500 Internal Server Error - http://ap17/mxclientsystem/mendix/mendix.js" mendix.js "NetworkError: 500 Internal Server Error - http://ap17/mxclientsystem/dijit/themes/tundra/tundra.css" tundra.css "NetworkError: 500 Internal Server Error - http://ap17/mxclientsystem/mendix/ui/base.css" base.css "NetworkError: 500 Internal Server Error - http://ap17/mxclientsystem/mendix/ui/tundra.css" tundra.css I tried fixing this by adding the following line to the ManagedFusion.Rewriter.txt file: RewriteRule /index3.html /index.html But this doesn't work unfortunately. Does someone have any idea what configuration errors I made or how I can get it to navigate to index.html automatically? Furthermore I would like to know if it possible to hide the /*.html in IIS? I'd prefer the user to always just see http(s)://URL/ and nothing else. ps. I followed the Mendix on a Windows server deployment guide to the letter (or have tried to anyway).
asked
4 answers
2

EDIT

Fixed it, there was an old web.config flying around in the mxclientsystem directory. After removing it, it still navigates to index3.html (which I still find strange) but now it actually works.

Now it throws @ index3.html (but it doesn't seem to affect anything):

"NetworkError: 404 Not Found - http://ap17/config.json"

ANd when I enter a wrong login/password I get an internal server error with the following error thrown:

"NetworkError: 500 Internal Server Error - http://ap17/xas/"

Will start looking into that now :-)

EDIT2

The above error has been resolved by removing:

[location path="xas"]
    [system.webServer]
        [httpErrors errorMode="Detailed" /]
    [/system.webServer]
[/location]

From the web.config file. Curious to see whether this will cause trouble anywhere else.

/EDIT2

/EDIT

As stated above "it navigates to index3.html, which doesn't exist". (ie. dir/s index3.html returns nothing)

And index.html is configured as the "default document".

Nothing in Mendix log. Nothing in the Windows log.

IIS log after logging in (ie. after succesful login from login.html).

2011-06-08 09:14:16 fe80::2119:5ba5:ef77:210%12 GET / - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 200 0 0 1281
2011-06-08 09:14:16 fe80::2119:5ba5:ef77:210%12 GET /ui/js/logini18n.js - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:14:16 fe80::2119:5ba5:ef77:210%12 GET /ui/theme-ebn/login.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:14:16 fe80::2119:5ba5:ef77:210%12 GET /ui/theme-ebn/images/layout/loginbg.png - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 POST /xas/ - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 200 0 0 31
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /index3.html - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 200 0 0 62
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /mxclientsystem/dojo/dojo.js - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 62
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /mxclientsystem/mendix/mendix.js - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 62
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /ui/base-ebn.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /ui/theme-ebn/images/layout/toolbar.png - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /mxclientsystem/dijit/themes/tundra/tundra.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 0
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /mxclientsystem/mendix/ui/base.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 0
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /mxclientsystem/mendix/ui/tundra.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 0
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /ui/theme-ebn/layout.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /ui/theme-ebn/custom.css - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:14:20 fe80::2119:5ba5:ef77:210%12 GET /ui/theme-ebn/images/layout/logo.png - 80 - fe80::2119:5ba5:ef77:210%12 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15
2011-06-08 09:16:28 ::1 GET / - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 200 0 0 1046
2011-06-08 09:16:28 ::1 GET /ui/js/logini18n.js - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 46
2011-06-08 09:16:28 ::1 GET /ui/theme-ebn/login.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:16:28 ::1 GET /ui/theme-ebn/images/layout/loginbg.png - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15
2011-06-08 09:16:32 ::1 POST /xas/ - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 200 0 0 15
2011-06-08 09:16:32 ::1 GET /index3.html - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 200 0 0 46
2011-06-08 09:16:32 ::1 GET /mxclientsystem/dojo/dojo.js - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 78
2011-06-08 09:16:32 ::1 GET /mxclientsystem/mendix/mendix.js - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 46
2011-06-08 09:16:32 ::1 GET /ui/base-ebn.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15
2011-06-08 09:16:32 ::1 GET /ui/theme-ebn/images/layout/toolbar.png - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15
2011-06-08 09:16:32 ::1 GET /mxclientsystem/dijit/themes/tundra/tundra.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 15
2011-06-08 09:16:32 ::1 GET /mxclientsystem/mendix/ui/base.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 0
2011-06-08 09:16:32 ::1 GET /mxclientsystem/mendix/ui/tundra.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 500 19 183 0
2011-06-08 09:16:32 ::1 GET /ui/theme-ebn/layout.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:16:32 ::1 GET /ui/theme-ebn/custom.css - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 0
2011-06-08 09:16:32 ::1 GET /ui/theme-ebn/images/layout/logo.png - 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+rv:2.0.1)+Gecko/20100101+Firefox/4.0.1 304 0 0 15

answered
1

You cannot hide the index.html thing.

To navigate automatically to index.html just define it as documentroot. (but my guess is that that is the default already).

Are the internal server errors thrown by IIS or by the Mendix Server? (you should check their logs)

RewriteRule /index3.html /index.html

This kind of rewrite rules can make things really and very confusing when debugging/ deploying the app in the future. Just rename the index3.html file to index.html and you'll have the same effect.

answered
1

(again, to much for a comment ;-))

So it redirects to index3.html after the login. That probably means that you have an configuration error somewhere (do you use single sign or deeplinking?), or you have an old client somewhere in the cache, which defines index3.html as the client page.

As a work around, I would copy index.html to index3.html instead of rewriting the url. So you at least know whats going on.

answered
0

If you use IIS 7 ARR (Application Request Routing) is easier to configure.

answered