Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Default Login when using IIS

  1. #11
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    What have you set the Lianja wwwroot directory to?

    https://www.lianja.com/doc/index.php...ger_on_Windows

    You can enable debugging by setting DB_WWWDEBUG to ON in the registry. This will create a firecat_debug_xxxx.txt file which may help you see what’s going on.

    OTOH if you can point to the login.rsp and it runs the issue is not Lianja it’s IIS redirection not behaving as expected.
    Last edited by barrymavin; 2018-05-19 at 00:34.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #12
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Hi Barry,

    The Lianja Server Manager http settings are correct.

    What should the default directory for the IIS Site be? I see no mention of changing it from its default in the IIS setup instructions. Yet that's where the redirect stuff goes.

    thanks,

    Hank

  3. #13
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Hank,

    The ISAPI extension filters requests and if there are any for Lianja Cloud Server it processes them.
    https://www.lianja.com/doc/index.php...ension_for_IIS

    The requests are proxied to the cloud server listening on port 8001.

    From there on it uses its normal settings.

    Any file extensions it cannot handle e.g .aspx are rejected and IIS continues passing the requests down to other extensions until one is found that handles that file extension.

    As I asked previously, if you can access login.rsp when it is specified in the URL then IIS is properly configured.

    The redirection is is an internal IIS configuration issue only to do with changing the default home page.

    If you followed the PHP configuration I posted earlier then it should work exactly the same.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #14
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Hi Barry,

    yes, I can log in with login.rsp when it is specified in the URL. Sorry if I didn't mention that.

    When I specify login.rsp, I get a

    403 - Forbidden: Access is denied.

    You do not have permission to view this directory or page using the credentials that you supplied.


    I hadn't noticed this previously. This is actually closer than I got before. <s>

    Hank

    Here's a more detailed error:

    HTTP Error 403.14 - Forbidden
    The Web server is configured to not list the contents of this directory.
    Detailed Error Information
    Module DirectoryListingModule
    Notification ExecuteRequestHandler
    Handler StaticFile
    Error Code 0x00000000
    Requested URL https://devcloud.dataworksinc.com:443/
    Physical Path C:\inetpub\wwwroot
    Logon Method Anonymous
    Logon User Anonymous
    Failed Request Tracing Log Directory C:\inetpub\logs\FailedReqLogFiles

    Based on some research, I set DefaultAppPool to have rights to the Lianja\cloudserver directory (overkill: I figured I'd see if less worked later, once it worked) using this article (since it's not straight-forward): https://docs.microsoft.com/en-us/iis...ool-identities Step 7 is the key. But, no joy.

    And yes, both web.configs, for the itnetpub/wwwroot and ...public/wwwroot under cloud server, have a default document specified:

    Code:
        
    ...
             <defaultDocument>
                <files>
                    <clear />
                    <add value="login.rsp" />
                </files>
            </defaultDocument>
        </system.webServer>
    Last edited by HankFay; 2018-05-19 at 14:21.

  5. #15
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Try specifying a non existent login.html file instead of login.rsp.

    if you get the same error then place an empty login.html file in the IIS document root.

    If that works, specify login.rsp again and rename the login.html empty file as login.rsp.

    IIS May be possibly looking to see if login.rsp exists before redirecting.

    You May want to look at the log file as detailed in your previous post.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #16
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Hi Barry,

    1) specifying non-existent login.html: same error
    2) empty login.html, default set to login.html. Result: empty page.
    2) empy login.rsp, default set to login.rsp. Result:

    HTTP Error 404.3 - Not Found
    The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
    Module StaticFileModule
    Notification ExecuteRequestHandler
    Handler StaticFile
    Error Code 0x80070032
    Requested URL https://devcloud.dataworksinc.com:443/login.rsp
    Physical Path C:\inetpub\wwwroot\login.rsp
    Logon Method Anonymous
    Logon User Anonymous



    I had to switch tracing on, and so went back to using default of login.rsp without that file in the home directory. I created a rule for 403.14. Restarted IIS, hit the URL in the web browser, got the error, and no file appeared in the specified folder.

    Enough for today...

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us