Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Are there ways to make route or rewrite a domain name to 1 given IWP database?


This topic is 2520 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Are there ways to make route or rewrite a domain name to 1 given IWP database?

Posted

I've attached two examples of custom login forms that will specify a database to be logging into, with and without a guest login option.  I *think* you can also do this via a URL, embedding the login information, using the same parameters as in the form.  This is going back quite a ways now and my memory isn't 100% on all of it.

Note you can also use javascript redirects in the iwp resources pages (login + logout) to rewrite the login and logout page URLs based on the (sub)domain being used to access, to avoid the default pages.

- John

loginforcedatabase.html

loginwithguestforcedatabase.html

  • Thanks 1
  • 2 weeks later...
Posted (edited)

Right now I'm doing a rewrite in Apache, however I assume there are ways to proxy a file using nginx.

Your example is quite nice, it can make a custom looking login page. Perhaps that is more purposeful for some cases.

My bad I forget that the current iteration of IWP is named webd: https://fmhelp.filemaker.com/docs/16/en/fmwd/index.html#accessing_linking

Edited by ggt667
Posted
   server {
        server_name sub.domain.tld;

      location / {
        proxy_pass http://10.0.0.10:8080;
        proxy_set_header        Host            $host;
        proxy_set_header        X-Real-IP       $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      }
    }

Above works great for FileMaker 16 Server through nginx as reverse proxy. What I would like to be able to is to stimagtize what has to be mentioned after sub.domain.tld so that this part "/fmi/webd/sub" from here: 10.0.0.10:8080/fmi/webd/sub would no longer be optional.

Posted

You might want to start this thread over in the WebDirect forum. IWP is very different.

This topic is 2520 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.