5 Replies Latest reply on Apr 14, 2016 8:01 AM by beverly

    FileMaker Web Server HTML

      I have a few questions regarding hosting files in my filemaker web server:

       

      I have the following location:

       

      C:\Program Files\FileMaker\FileMaker Server\HTTPServer\conf\carehome\index.html

       

      Which relates to:

       

      https://{SERVERNAME}/carehome/index.html

       

      Is there any way to mask the URL so it just displays https://{SERVERNAME}/carehome/ or you can just type carehome at the end and it goes to my index.html page.

       

      Next question, how would I protect a html page for example with a FileMaker authentication pop dialog box?

        • 1. Re: FileMaker Web Server HTML
          mikebeargie

          Is there any way to mask the URL so it just displays https://{SERVERNAME}/carehome/ or you can just type carehome at the end and it goes to my index.html page.

          You should already be able to just type that in and have it resolve to the index page. Does it do something else?

           

          Next question, how would I protect a html page for example with a FileMaker authentication pop dialog box?

          For that you would need to create something via custom web publishing (writing some PHP that checks a login against filemaker) or webdirect. In either case you'd be replacing the index.html page completely either either an index.php form running CWP, or a redirect to a WebDirect login.


          It's usually not wise to play around with any files inside of the filemaker server folder if you're not sure what you are doing. It might be wise for you to get a mentor to help you out, or ask if there's other alternatives for what you need to do. What web content are you trying to make client-facing?

          • 2. Re: FileMaker Web Server HTML

            Hey mikebeargie

             

            Sorry it took so long to get back to you.

             

            So for example I have an index.html file in the following location:

             

            https://{SERVERNAME}/authentication/docs/examples/theme/

             

            When I go to this link, it doesn't resolve to the index.html page it just displays a blank white screen.

             

            I've managed to create a small password verification script which consists of a two pages

             

            index.html

             

            <form role="form" action="submit.php" method="post">

              

            submit.php

            <?php

             

            include("filemaker.php");

             

            /* Specify database name, server location and post fields from username and password */

             

            $fm = new FileMaker("Database Name", "{SERVERNAME}", $_POST["username"] , $_POST["password"] );

             

            /* Check if username/password is incorrect */

             

              $result = $fm->listLayouts();

             

              if (FileMaker::isError($result)) {

                  

                    header('Location: https://{SERVERNAME}/authentication/docs/examples/theme/failure.html');

             

                    exit();

                 }

             

            /* Extra code here - Add fields to layout etc... */


            header('Location: https://{SERVERNAME}/authentication/docs/examples/theme/success.html');

             

            ?>

            • 3. Re: FileMaker Web Server HTML
              beverly

              web servers have settings to resolve 'default' pages within directories. This may be default.htm, index.htm, etc. If the correct file by name is not on the list, then it will not be able to resolve. Perhaps you need .htm instead of .html, for example.

               

              beverly

              • 4. Re: FileMaker Web Server HTML

                Thanks beverly - I needed to add a server role called Default Docuemnt

                • 5. Re: FileMaker Web Server HTML
                  beverly

                  there can be several in a list. just sort (re-arrange) to make the top one the default. I'm glad you found it!!

                  beverly