Re: Web serving on OS X Server

2017-06-09 Thread Ronald Rosell via 4D_Tech
Note, by the way, that while my server is running El Capitan my development 
system is running Sierra.  I also use this technique when locally testing 
changes, proxying through Apache.  The changes I described still work fine in 
the most current version of the OS (10.12.5)  and the server app (5.3.1)

__

Ron Rosell
President
StreamLMS


> On Jun 9, 2017, at 1:13 PM, Ronald Rosell via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I’ve done this for multiple sites (domains) accessing a 4D instance.  I’ve 
> done it through several OS versions;  currently my server’s running El 
> Capitan (10.11.8)

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

LDAP user validation

2017-06-09 Thread Justin Leavens via 4D_Tech
Can someone please help me understand the mechanisms I would use if I wanted
to authenticate a user/password combination against an LDAP server? Do I...

1) use the user-supplied username/password to log into the LDAP server and
see if the login works?

or 

2) use a system username/password to log into the LDAP server, and the
verify that the user-supplied username/password validates?

If it's #1, I assume I could use the 4D LDAP Login and Logout to accomplish.
If it's #2 (and I'm guessing it is) then what do I use to validate the
user-supplied username / password? Am I doing an LDAP search of some kind
using the 4D command LDAP Search? Or is there some other operation that
needs to take place? I'm in v16 for reference.

thanks in advance!



--
View this message in context: 
http://4d.1045681.n5.nabble.com/LDAP-user-validation-tp5752526.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Lee Hinde via 4D_Tech
Thanks Ron and Jim for the great help.

On Fri, Jun 9, 2017 at 3:05 PM, James Crate via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The easy way is to set up a webapp plist, and then just turn on that
> webapp for the appropriate domain (website).
>
> Here’s a sample plist. You should be able to mostly use the httpd.conf
> options you use behind Apache normally.
>
> 
>  http://www.apple.com/DTDs/PropertyList-1.0.dtd;>
>
> 
> 
> includeFiles
> 
> /Library/WebServer/exa
> mple.com/my_app/config/server_webapp.httpd.conf
> 
> name
> com.example.my_app
> displayName
> My WebApp
> installationIndicatorFilePath
> /Library/WebServer/example.com/my_app/config/server_
> webapp.httpd.conf
> sslPolicy
> 0
> 
> 
> 
> 
> 
> 
>
> 

AS400 & 4D...

2017-06-09 Thread Robert ListMail via 4D_Tech
I have an existing client that is purchasing another company that’s using an 
AS400.  What are my connectivity options via 4D?  ODBC?

Thanks,

Robert

 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Ronald Rosell via 4D_Tech
Lee,

I’ve done this for multiple sites (domains) accessing a 4D instance.  I’ve done 
it through several OS versions;  currently my server’s running El Capitan 
(10.11.8)

Here’s a step by step guide for a domain I’ll call “mydomain.com 
”. 


1) Set up the sites with the server app, and in the “Store Web Files In” field 
have them reference the webdata folder where all of your 4D web content is 
stored (rather than the default folder that the server app would try to 
reference).

2) After creating a site (or multiple sites), go to Library -> Server -> Web -> 
Config -> apache2 -> sites and look for the configuration (.conf) file ending 
with the name of the domain name you created.  (I do this in TextWrangler, 
entering an admin password as prompted to save my changes). So in this example, 
I’m looking for the file name ending in mydomain.com.conf

At this point you have a bit of flexibility … you can put some of your code in 
an external file and “include” it in the .conf file, or you can put everything 
directly into the .conf file… but either way you basically want to set up some 
ProxyPass directives.  I do these in an external file (actually, two files), 
then reference those in the conf file for the site instance.  

I’ll first show you the two external text files I create, then show you how to 
edit the conf file for the virtual domain (mydomain.com.conf) to reference 
those files.

3) Create a separate text file, in the same Sites folder, called 
mydomainincludes.config 

In the text file write the following lines:

ProxyPass / http://mydomain.com:8080/
ProxyPassReverse / http://mydomain.com:8080/

Note that this example assumes that 4D is configured to serve web content on 
port 8080.  Adjust the web settings or config file as necessary to reference 
the correct port, and of course use the actual domain name.  I create one of 
these .config files for each domain name that I’m proxying; very simple, two 
lines of code.

4) Optionally, you can also create a config file that will be shared by all of 
your sites that are being proxied, with some settings they’ll all share.  I do 
that to tell Apache to ignore proxy settings for static content, allowing the 
Apache server to send out things like jpegs without bothering (proxying to) 
4D’s web server.

So I have a second text file in the sites directory called allsites.config, and 
it contains instructions to NOT proxy several directories. (The name of the 
config file doesn’t matter; you’ll be referencing it by name later.)  Vary the 
list of directories below according to the content of your site; include any 
directories where accessing the content directly via Apache, rather than going 
through 4D, will not affect the outcome.  You wouldn’t want to include a 
directory of dynamic pages here, unless your design sends out all dynamic pages 
using Web Send File.  What you want to avoid including on the bypass list are 
dynamic .shtml pages that are directly called by a URL 
(http://mydomain.com/mypages/mypage.shtml) and contain code in them that 
executes 4D methods; those are pages you want served by 4D.

ProxyPass /media/ !
ProxyPass /js/ !
Proxypass /logos/ !

Note that if you have any directories that can be bypassed but that are 
specific to one domain, you can include those at the top of your 
domain-specific config file rather than in this shared file used by all 
domains.  (These “except for these directories” commands need to be read by 
Apache before the ProxyPass commands to route things over to 4D on port 8080.) 
So, if I have a directory called mydomainStaticStuff, which contains only 
static content relevant to that one domain, I could include the following 
directive before the first ProxyPass line in mydomain.config, described in step 
3 above, instead of putting it in a separate shared file. 

ProxyPass /mydomainStaticStuff/ !

Indeed, if you wish you can handle all of the static content that way, 
including the bypass directives in the same file as the ProxyPass directives; I 
just use the shared file because I have about a dozen directories of static 
content that are shared by several sites.

5) Now we include the above config files in the mydomain.conf file.  Open that 
file in your text editor, go to the line right after 
ErrorLog /var/log/apache2/error_log and add the following lines.  (When you 
start typing, you’ll be asked if it’s okay to unlock the file.  Say yes).

ProxyPreserveHost on
Include "/Library/Server/Web/Config/apache2/sites/allsites.config"
Include 
"/Library/Server/Web/Config/apache2/sites/mydomainincludes.config”

Of course, if you chose not to create a separate config file with directives 
shared by several sites, you can skip that “Include” line.

If you would rather put all of the code into the conf file, instead of creating 
some external config files, then your edit would look more like this:


Re: Web serving on OS X Server

2017-06-09 Thread James Crate via 4D_Tech
The easy way is to set up a webapp plist, and then just turn on that webapp for 
the appropriate domain (website).

Here’s a sample plist. You should be able to mostly use the httpd.conf options 
you use behind Apache normally.


http://www.apple.com/DTDs/PropertyList-1.0.dtd;>



includeFiles


/Library/WebServer/example.com/my_app/config/server_webapp.httpd.conf

name
com.example.my_app
displayName
My WebApp
installationIndicatorFilePath

/Library/WebServer/example.com/my_app/config/server_webapp.httpd.conf
sslPolicy
0








HTTP Get when a domain name returns multiple IP addresses

2017-06-09 Thread lists--- via 4D_Tech
Hi,
we’re running a serverless API using Amazon Lambda, and 4D seems to fail on the 
DNS lookup as it returns multiple IP addesses
A dig gives you
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.226
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.186
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.19
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.198
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.164
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.224
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.57
api.universalcodes.msupply.org.nz. 25 IN A  52.84.207.209

A simple browser query works fine
https://api.universalcodes.msupply.org.nz/v1/items?name=amo=false 


but not from 4D
Any ideas appreciated.

Cheers,
Craig

-
Sustainable Solutions
Kathmandu, Nepal & Auckland, New Zealand
Nepal: +977 1 5548021
New Zealand: +64 9 9506778
cr...@sussol.net  skype://craigdrown
http://www.sussol.net   http://www.msupply.org.nz

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Client Can't Connect - Server won't "Quit"

2017-06-09 Thread 4dialog via 4D_Tech
Had the same problems for some time ago, OSX server, 4dv12.x.
It was duplicatet 4d processes on the osx server, seems that an "old" 4d
process hanging and it made the problem. Restarted the OSX server fixed the
problem :)



-
Hilsen
--
Helge Antonsen
4Dialog as
Tel: +47 64 000 164
Mob: +47 90 15 56 19
Web: www.4dialog.no 
--
View this message in context: 
http://4d.1045681.n5.nabble.com/Client-Can-t-Connect-Server-won-t-Quit-tp5730930p5752508.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: HTTP Get when a domain name returns multiple IP addresses

2017-06-09 Thread Keisuke Miyako via 4D_Tech
I would invite you to test the latest nightly build which fixes ACI0096586

http://bugs.4d.fr/fixedbugslist?Branch=16

"HTTP Get" request fails with certain https web sites

> 2017/06/09 16:03、lists--- via 4D_Tech <4d_tech@lists.4d.com> のメール:
> but not from 4D Any ideas appreciated.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

[ANN] HotFix of AC_Backup Component

2017-06-09 Thread Herr Alexander Heintz via 4D_Tech
Hi Folks,

in case any of you thought about using my AC_Backup component, please head 
right over to

http://blog.heintz.net/to-backup-or-not-to-backup/ 


There is an essential Update available that you ABSOLUTELY need.
Sorry for the inconvenience,
Alex
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread John Harrington via 4D_Tech
Wow, awesome post Ron!  Thanks for such a detailed guide.  I’m looking forward 
to giving your procedure a try.  

-John

> Here’s a step by step guide
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Web serving on OS X Server

2017-06-09 Thread Lee Hinde via 4D_Tech
I've setup apache as a front end to 4D on 'regular' macs without issue. But
now I need to do it on a Mac running the Server software and I'm not clear
where/how to configure that and my google fu is failing me.

Has anyone done that and can you point to directions?

I'd settle for having 4D serve directly, but OS X Server is running apache
even with Websites off.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Chip Scheide via 4D_Tech
OS X server is OS X with a server application.

On Fri, 9 Jun 2017 11:14:02 -0700, Lee Hinde via 4D_Tech wrote:
> I've setup apache as a front end to 4D on 'regular' macs without issue. But
> now I need to do it on a Mac running the Server software and I'm not clear
> where/how to configure that and my google fu is failing me.
> 
> Has anyone done that and can you point to directions?
> 
> I'd settle for having 4D serve directly, but OS X Server is running apache
> even with Websites off.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Lee Hinde via 4D_Tech
Correct, I need other parts of OS X Server on this computer.

> On Jun 9, 2017, at 11:54 AM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> OS X server is OS X with a server application.
> 
> On Fri, 9 Jun 2017 11:14:02 -0700, Lee Hinde via 4D_Tech wrote:
>> I've setup apache as a front end to 4D on 'regular' macs without issue. But
>> now I need to do it on a Mac running the Server software and I'm not clear
>> where/how to configure that and my google fu is failing me.
>> 
>> Has anyone done that and can you point to directions?
>> 
>> I'd settle for having 4D serve directly, but OS X Server is running apache
>> even with Websites off.


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Chip Scheide via 4D_Tech
Ive not setup apache - but what I was trying to get to is..
whatever you have done in the past for apache (and maybe I mis-read 
your question), just do that, the 'server' part should not make 
anything change.


On Fri, 9 Jun 2017 12:03:05 -0700, Lee Hinde via 4D_Tech wrote:
> Correct, I need other parts of OS X Server on this computer.
> 
>> On Jun 9, 2017, at 11:54 AM, Chip Scheide 
>> <4d_o...@pghrepository.org> wrote:
>> 
>> OS X server is OS X with a server application.
>> 
>> On Fri, 9 Jun 2017 11:14:02 -0700, Lee Hinde via 4D_Tech wrote:
>>> I've setup apache as a front end to 4D on 'regular' macs without 
>>> issue. But
>>> now I need to do it on a Mac running the Server software and I'm not clear
>>> where/how to configure that and my google fu is failing me.
>>> 
>>> Has anyone done that and can you point to directions?
>>> 
>>> I'd settle for having 4D serve directly, but OS X Server is running apache
>>> even with Websites off.
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Lee Hinde via 4D_Tech
For reasons that aren’t clear, Server uses different configuration files and 
processes.I.e, it’s not https.conf anymore.

 Sorting through what’s new to me is the basis for the request for help here.


> On Jun 9, 2017, at 12:06 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> Ive not setup apache - but what I was trying to get to is..
> whatever you have done in the past for apache (and maybe I mis-read 
> your question), just do that, the 'server' part should not make 
> anything change.
> 
> 
> On Fri, 9 Jun 2017 12:03:05 -0700, Lee Hinde via 4D_Tech wrote:
>> Correct, I need other parts of OS X Server on this computer.
>> 
>>> On Jun 9, 2017, at 11:54 AM, Chip Scheide 
>>> <4d_o...@pghrepository.org> wrote:
>>> 
>>> OS X server is OS X with a server application.
>>> 
>>> On Fri, 9 Jun 2017 11:14:02 -0700, Lee Hinde via 4D_Tech wrote:
 I've setup apache as a front end to 4D on 'regular' macs without 
 issue. But
 now I need to do it on a Mac running the Server software and I'm not clear
 where/how to configure that and my google fu is failing me.
 
 Has anyone done that and can you point to directions?
 
 I'd settle for having 4D serve directly, but OS X Server is running apache
 even with Websites off.
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Web serving on OS X Server

2017-06-09 Thread David Ringsmuth via 4D_Tech
Lee,

I’ve done a lot with nginx, very very little with apache.

https://engineering.datica.com/local-web-development-with-nginx-on-el-capitan.html

David Ringsmuth

From: Lee Hinde via 4D_Tech
Sent: Friday, June 9, 2017 1:14 PM
To: 4D iNug Tech
Cc: Lee Hinde
Subject: Web serving on OS X Server

I've setup apache as a front end to 4D on 'regular' macs without issue. But
now I need to do it on a Mac running the Server software and I'm not clear
where/how to configure that and my google fu is failing me.

Has anyone done that and can you point to directions?

I'd settle for having 4D serve directly, but OS X Server is running apache
even with Websites off.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Web serving on OS X Server

2017-06-09 Thread John Harrington via 4D_Tech
Lee - I personally had no success in getting the new version of OS X Server to 
easily handle a reverse proxy to 4D’s port 8080 or 8443.  Snow Leopard Server 
(SLS 10.6.8) is the last version that included this granular feature and a 
simple interface to set things up with.  As of yet, I have found no good 3rd 
party alternative.  (We currently run a 4D 2004 legacy system, behind Apache on 
SLS 10.6.8, on a new Mini running OS X 10.11.6.)

Tech support at MacStadium was only able to confirm they knew of no easy way to 
get OS X 10.11.6 to handle a reverse proxy to the 4D port.  Here are some 
server setup videos they produced that you may find helpful:  

Hosted Mountain Lion Server Part 1: Setting Up Your Server
https://www.youtube.com/watch?v=OeJ_wwCT4tM 


If you’re okay with it, you should be able to have 4D serve directly by just 
opening the related 4D web-port(s) in your firewall.  

Hosted Mountain Lion Server Part 3: Built In Firewall
https://www.youtube.com/watch?v=AaWWmH_6oAY 


Looking forward to hearing thoughts about Apache reverse proxy on newer 
machines and solutions that may be working well for others.   -John
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

4D Web Store Approach...

2017-06-09 Thread Robert ListMail via 4D_Tech
So, I have Mac-based 4D v15 desktop application that’s supporting about 10 
users via client/server on a local LAN. There is a need to create a 
public-facing web presence that would allow access to the data managed by 4D 
(254 GBs of externally referenced TIFFs).  The client wants to sell access to 
these documents where each page is a separate TIFF. The web customer would need 
to do a search on the documents index in 4D and then view the chosen image 
(page). At this point, I’d like to work out the best way to accomplish: 
customer login (account creation), searching the database, loading the TIFF 
images. For now, the billing and working out how to charge can come later. The 
data is very valuable so it must be kept secure. So, how would you structure 
this? 

Plan A: My original though was to activate the 4D web server and let the local 
server become the web server. Currently the 4D server is not using a public 
IP….  What would need to change regarding ports being opened and such to allow 
the LAN users and the 4D web server to operate too? The client is very security 
conscious about incoming connections.

Plan B: move the whole system to the cloud. I have another system running on 
MacMiniVault which is 100% web access and it has it’s own public IP. With this 
approach, the current LAN users could possibly connect with 4D over the 
internet…. Possible security and performance problems with that idea.

Plan C: Something super-awesome that you suggest that I never thought about!  :)

Thanks for your input!

Robert



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Web Store Approach...

2017-06-09 Thread Herr Alexander Heintz via 4D_Tech

> Am 09.06.2017 um 21:40 schrieb Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com>:
> 
> So, I have Mac-based 4D v15 desktop application that’s supporting about 10 
> users via client/server on a local LAN. There is a need to create a 
> public-facing web presence that would allow access to the data managed by 4D 
> (254 GBs of externally referenced TIFFs).  The client wants to sell access to 
> these documents where each page is a separate TIFF. The web customer would 
> need to do a search on the documents index in 4D and then view the chosen 
> image (page). At this point, I’d like to work out the best way to accomplish: 
> customer login (account creation), searching the database, loading the TIFF 
> images. For now, the billing and working out how to charge can come later. 
> The data is very valuable so it must be kept secure. So, how would you 
> structure this? 
> 
> Plan A: My original though was to activate the 4D web server and let the 
> local server become the web server. Currently the 4D server is not using a 
> public IP….  What would need to change regarding ports being opened and such 
> to allow the LAN users and the 4D web server to operate too? The client is 
> very security conscious about incoming connections.
> 
> Plan B: move the whole system to the cloud. I have another system running on 
> MacMiniVault which is 100% web access and it has it’s own public IP. With 
> this approach, the current LAN users could possibly connect with 4D over the 
> internet…. Possible security and performance problems with that idea.
> 
> Plan C: Something super-awesome that you suggest that I never thought about!  
> :)

Hi Robert,

Plan C with a twist : Use Active4D as middelware and rite the front-end in a 
standard JS framework ( JQWidgets and Bootstrap are great).
Get a static IP for the server.
Oh, and ditch using Macs as Servers, sorry but they s..k big time as servers…

Done a full WebShop for car spare parts this way and it’s a dream.

Achieving what you intend to is actually not that big a deal, including the 
security part.

Contact me vie PM if you want more specifics : awheintz(at)heintz.net.

I do this for a living, so I offer outsourcing services for 
bringing 4D into the web

Cheers
Alex
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Web Store Approach...

2017-06-09 Thread John Baughman via 4D_Tech
I recently completed a similar project where I needed to serve over 300gb of 
pdfs managed by 4D. I used a Xojo web app as the front end web server. With 4D 
listening on a port not accessible from the outside, Xojo passes search 
criteria as an http request via local host to 4D and 4D returns via local host 
the file path to the requested PDF. Xojo creates a "webfile" of the PDF file 
and displays the "webfile" (PDF) in the users browser. The file path to the PDF 
is  never exposed to the internet. 

> On Jun 9, 2017, at 9:40 AM, Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> So, I have Mac-based 4D v15 desktop application that’s supporting about 10 
> users via client/server on a local LAN. There is a need to create a 
> public-facing web presence that would allow access to the data managed by 4D 
> (254 GBs of externally referenced TIFFs).  The client wants to sell access to 
> these documents where each page is a separate TIFF. The web customer would 
> need to do a search on the documents index in 4D and then view the chosen 
> image (page). At this point, I’d like to work out the best way to accomplish: 
> customer login (account creation), searching the database, loading the TIFF 
> images. For now, the billing and working out how to charge can come later. 
> The data is very valuable so it must be kept secure. So, how would you 
> structure this? 
> 
> Plan A: My original though was to activate the 4D web server and let the 
> local server become the web server. Currently the 4D server is not using a 
> public IP….  What would need to change regarding ports being opened and such 
> to allow the LAN users and the 4D web server to operate too? The client is 
> very security conscious about incoming connections.
> 
> Plan B: move the whole system to the cloud. I have another system running on 
> MacMiniVault which is 100% web access and it has it’s own public IP. With 
> this approach, the current LAN users could possibly connect with 4D over the 
> internet…. Possible security and performance problems with that idea.
> 
> Plan C: Something super-awesome that you suggest that I never thought about!  
> :)
> 
> Thanks for your input!
> 
> Robert
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web serving on OS X Server

2017-06-09 Thread Lee Hinde via 4D_Tech
Hi John;

Thanks for the links!

I'm punting for now and found this to just turn off the Apple Apache httpd
instances:

https://discussions.apple.com/thread/7247358?tstart=0

This has 4D doing all the serving, which i'm not keen on, especially with
this app which is graphic intensive.


I'm running Sierra server. Hopefully an update will make this easier.  (one
lives in hope.)



On Fri, Jun 9, 2017 at 12:33 PM, John Harrington via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Lee - I personally had no success in getting the new version of OS X
> Server to easily handle a reverse proxy to 4D’s port 8080 or 8443.  Snow
> Leopard Server (SLS 10.6.8) is the last version that included this granular
> feature and a simple interface to set things up with.  As of yet, I have
> found no good 3rd party alternative.  (We currently run a 4D 2004 legacy
> system, behind Apache on SLS 10.6.8, on a new Mini running OS X 10.11.6.)
>
> Tech support at MacStadium was only able to confirm they knew of no easy
> way to get OS X 10.11.6 to handle a reverse proxy to the 4D port.  Here are
> some server setup videos they produced that you may find helpful:
>
> Hosted Mountain Lion Server Part 1: Setting Up Your Server
> https://www.youtube.com/watch?v=OeJ_wwCT4tM  watch?v=OeJ_wwCT4tM>
>
> If you’re okay with it, you should be able to have 4D serve directly by
> just opening the related 4D web-port(s) in your firewall.
>
> Hosted Mountain Lion Server Part 3: Built In Firewall
> https://www.youtube.com/watch?v=AaWWmH_6oAY  watch?v=AaWWmH_6oAY>
>
> Looking forward to hearing thoughts about Apache reverse proxy on newer
> machines and solutions that may be working well for others.   -John
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**