4D Remote default directory in 7.0r3

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

4D Remote default directory in 7.0r3

Doug Hall-6
I'm getting Unauthorized Access (403) errors when trying to access my
Active4D host, when served from 4D Remote. Everything works fine from a
local database on my development machine, and from a development 4D server.

I moved all of my library files into the <project_folder>/Active4D folder,
as required by v7.

From my Active4D log:

Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
/Library/Application Support/4D/com.aparajita/Active4D

This particular "directory" is actually a symlink to
~/Documents/<project_folder>

Later in the log:

Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
safe script dirs:
/Users/<user>/Documents/<project_folder>/<web_root>/index.a4d
...

My safe scripts, from Active4D.ini:
safe script dirs = <default>/<web_root1>;<default>/<web_root2>

As you can see, I'm serving two sites, and both sites give me Unauthorized
access errors to their web root.

It's just a guess, but it appears that defining the default folder with a
symlink does not work like it did in Active4D 6.4.

Doug
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D Remote default directory in 7.0r3

Doug Hall-6
Can someone else verify or deny this, please?

On Wed, Nov 1, 2017 at 2:05 PM, Doug Hall <[hidden email]> wrote:

> I'm getting Unauthorized Access (403) errors when trying to access my
> Active4D host, when served from 4D Remote. Everything works fine from a
> local database on my development machine, and from a development 4D server.
>
> I moved all of my library files into the <project_folder>/Active4D folder,
> as required by v7.
>
> From my Active4D log:
>
> Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
> /Library/Application Support/4D/com.aparajita/Active4D
>
> This particular "directory" is actually a symlink to
> ~/Documents/<project_folder>
>
> Later in the log:
>
> Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
> safe script dirs: /Users/<user>/Documents/<project_folder>/<web_root>/
> index.a4d
> ...
>
> My safe scripts, from Active4D.ini:
> safe script dirs = <default>/<web_root1>;<default>/<web_root2>
>
> As you can see, I'm serving two sites, and both sites give me Unauthorized
> access errors to their web root.
>
> It's just a guess, but it appears that defining the default folder with a
> symlink does not work like it did in Active4D 6.4.
>
> Doug
>
>
>
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D Remote default directory in 7.0r3

Aparajita Fishman
In reply to this post by Doug Hall-6
Symlinks definitely work on the default folder. But in your case it’s showing the default folder as non-symlinked, and in the system /Library. Are you sure you weren’t try to symlink from the user library at ~/Library/Application Support/4D/com.aparajita/Active4D?

If you’re serving two sites using virtual hosts, you don’t need to (and shouldn’t) modify 'safe script dirs’.

All the best,

  - Aparajita

> On Nov 1, 2017, at 12:05 PM, Doug Hall <[hidden email]> wrote:
>
> I'm getting Unauthorized Access (403) errors when trying to access my
> Active4D host, when served from 4D Remote. Everything works fine from a
> local database on my development machine, and from a development 4D server.
>
> I moved all of my library files into the <project_folder>/Active4D folder,
> as required by v7.
>
> From my Active4D log:
>
> Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
> /Library/Application Support/4D/com.aparajita/Active4D
>
> This particular "directory" is actually a symlink to
> ~/Documents/<project_folder>
>
> Later in the log:
>
> Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
> safe script dirs:
> /Users/<user>/Documents/<project_folder>/<web_root>/index.a4d
> ...
>
> My safe scripts, from Active4D.ini:
> safe script dirs = <default>/<web_root1>;<default>/<web_root2>
>
> As you can see, I'm serving two sites, and both sites give me Unauthorized
> access errors to their web root.
>
> It's just a guess, but it appears that defining the default folder with a
> symlink does not work like it did in Active4D 6.4.
>
> Doug
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D Remote default directory in 7.0r3

Doug Hall-6
Thanks for responding. I'll definitely clear out my safe script dirs in
Active4D.ini. It's definitely in my system /Library (not ~/Library) folder.
Here is an edited console dump:

~ cd /Library/Application\ Support/4D/com.aparajita
➜  com.aparajita ls -la
total 8
drwxr-xr-x  3 <WebClientUser>  admin   102B Sep 13 11:47 .
drwxr-xr-x  5 <WebClientUser>  admin   170B Sep 13 09:46 ..
lrwxr-xr-x  1 <WebClientUser>  admin    32B Sep 13 05:23 Active4D ->
/Users/<WebClientUser>/Documents/<project_root>
➜  com.aparajita cd Active4D
➜  Active4D git:(4Dv15) ✗ pwd
/Library/Application Support/4D/com.aparajita/Active4D
➜  Active4D git:(4Dv15) ✗ ls -l
total 32
drwxr-xr-x  71 <WebClientUser>  staff  2414 Nov  2 12:09 Active4D
drwxr-xr-x   4 <WebClientUser>  staff   136 Oct 26 10:05 Active4D uploads
-rw-r--r--   1 <WebClientUser>  staff    66 Aug 30 16:27 Gemfile
-rw-r--r--   1 <WebClientUser>  staff   768 Oct 26 10:05 Gemfile.lock
drwxr-xr-x   5 <WebClientUser>  staff   170 Sep 18 10:56 Logs
drwxr-xr-x   5 <WebClientUser>  staff   170 Aug 30 16:27 bin
drwxr-xr-x   3 <WebClientUser>  staff   102 Oct 26 10:05 config
drwxr-xr-x  37 <WebClientUser>  staff  1258 Oct 26 10:05 jobs2
drwxr-xr-x  13 <WebClientUser>  staff   442 Oct 26 10:05 web_static
drwxr-xr-x  34 <WebClientUser>  staff  1156 Oct 26 10:05 weba4d

-----

Notice that when I cd into Active4D, then do a pwd, it still thinks I'm in
/Library/Application Support/4D/com.aparajita. (Not sure if that's proper
or not.) I tried deleting and recreating the symlink, but this had no
effect. I still get 403 errors to both sites. I did notice that the error
on one of the sites was from Active4D, while the error from the other site
was a plain, unstyled text error.

:-(

Let me know if you think of anything. I can't make any progress on my new
(future) production setup until I get past this problem.

Many thanks!
Doug

On Thu, Nov 2, 2017 at 12:32 PM, Aparajita Fishman <[hidden email]>
wrote:

> Symlinks definitely work on the default folder. But in your case it’s
> showing the default folder as non-symlinked, and in the system /Library.
> Are you sure you weren’t try to symlink from the user library at
> ~/Library/Application Support/4D/com.aparajita/Active4D?
>
> If you’re serving two sites using virtual hosts, you don’t need to (and
> shouldn’t) modify 'safe script dirs’.
>
> All the best,
>
>   - Aparajita
>
> > On Nov 1, 2017, at 12:05 PM, Doug Hall <[hidden email]> wrote:
> >
> > I'm getting Unauthorized Access (403) errors when trying to access my
> > Active4D host, when served from 4D Remote. Everything works fine from a
> > local database on my development machine, and from a development 4D
> server.
> >
> > I moved all of my library files into the <project_folder>/Active4D
> folder,
> > as required by v7.
> >
> > From my Active4D log:
> >
> > Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
> > /Library/Application Support/4D/com.aparajita/Active4D
> >
> > This particular "directory" is actually a symlink to
> > ~/Documents/<project_folder>
> >
> > Later in the log:
> >
> > Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
> > safe script dirs:
> > /Users/<user>/Documents/<project_folder>/<web_root>/index.a4d
> > ...
> >
> > My safe scripts, from Active4D.ini:
> > safe script dirs = <default>/<web_root1>;<default>/<web_root2>
> >
> > As you can see, I'm serving two sites, and both sites give me
> Unauthorized
> > access errors to their web root.
> >
> > It's just a guess, but it appears that defining the default folder with a
> > symlink does not work like it did in Active4D 6.4.
> >
> > Doug
> > _______________________________________________
> > Active4D-dev mailing list
> > [hidden email]
> > http://list.aparajitaworld.com/listinfo/active4d-dev
> > Archives: http://active4d-nabble.aparajitaworld.com/
>
>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D Remote default directory in 7.0r3

Aparajita Fishman
Are you using virtual hosts? Do you have debug logging on for Active4D? If not, turn debug logging on and look closely at the log, paying attention to when it’s reading in Active4D.ini and VirtualHosts.ini. That should tell you what’s going wrong. And remove the ‘safe script dirs’ entry.

All the best,

  - Aparajita

> On Nov 2, 2017, at 11:29 AM, Doug Hall <[hidden email]> wrote:
>
> Thanks for responding. I'll definitely clear out my safe script dirs in
> Active4D.ini. It's definitely in my system /Library (not ~/Library) folder.
> Here is an edited console dump:
>
> ~ cd /Library/Application\ Support/4D/com.aparajita
> ➜  com.aparajita ls -la
> total 8
> drwxr-xr-x  3 <WebClientUser>  admin   102B Sep 13 11:47 .
> drwxr-xr-x  5 <WebClientUser>  admin   170B Sep 13 09:46 ..
> lrwxr-xr-x  1 <WebClientUser>  admin    32B Sep 13 05:23 Active4D ->
> /Users/<WebClientUser>/Documents/<project_root>
> ➜  com.aparajita cd Active4D
> ➜  Active4D git:(4Dv15) ✗ pwd
> /Library/Application Support/4D/com.aparajita/Active4D
> ➜  Active4D git:(4Dv15) ✗ ls -l
> total 32
> drwxr-xr-x  71 <WebClientUser>  staff  2414 Nov  2 12:09 Active4D
> drwxr-xr-x   4 <WebClientUser>  staff   136 Oct 26 10:05 Active4D uploads
> -rw-r--r--   1 <WebClientUser>  staff    66 Aug 30 16:27 Gemfile
> -rw-r--r--   1 <WebClientUser>  staff   768 Oct 26 10:05 Gemfile.lock
> drwxr-xr-x   5 <WebClientUser>  staff   170 Sep 18 10:56 Logs
> drwxr-xr-x   5 <WebClientUser>  staff   170 Aug 30 16:27 bin
> drwxr-xr-x   3 <WebClientUser>  staff   102 Oct 26 10:05 config
> drwxr-xr-x  37 <WebClientUser>  staff  1258 Oct 26 10:05 jobs2
> drwxr-xr-x  13 <WebClientUser>  staff   442 Oct 26 10:05 web_static
> drwxr-xr-x  34 <WebClientUser>  staff  1156 Oct 26 10:05 weba4d
>
> -----
>
> Notice that when I cd into Active4D, then do a pwd, it still thinks I'm in
> /Library/Application Support/4D/com.aparajita. (Not sure if that's proper
> or not.) I tried deleting and recreating the symlink, but this had no
> effect. I still get 403 errors to both sites. I did notice that the error
> on one of the sites was from Active4D, while the error from the other site
> was a plain, unstyled text error.
>
> :-(
>
> Let me know if you think of anything. I can't make any progress on my new
> (future) production setup until I get past this problem.
>
> Many thanks!
> Doug
>
> On Thu, Nov 2, 2017 at 12:32 PM, Aparajita Fishman <[hidden email]>
> wrote:
>
>> Symlinks definitely work on the default folder. But in your case it’s
>> showing the default folder as non-symlinked, and in the system /Library.
>> Are you sure you weren’t try to symlink from the user library at
>> ~/Library/Application Support/4D/com.aparajita/Active4D?
>>
>> If you’re serving two sites using virtual hosts, you don’t need to (and
>> shouldn’t) modify 'safe script dirs’.
>>
>> All the best,
>>
>>  - Aparajita
>>
>>> On Nov 1, 2017, at 12:05 PM, Doug Hall <[hidden email]> wrote:
>>>
>>> I'm getting Unauthorized Access (403) errors when trying to access my
>>> Active4D host, when served from 4D Remote. Everything works fine from a
>>> local database on my development machine, and from a development 4D
>> server.
>>>
>>> I moved all of my library files into the <project_folder>/Active4D
>> folder,
>>> as required by v7.
>>>
>>> From my Active4D log:
>>>
>>> Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
>>> /Library/Application Support/4D/com.aparajita/Active4D
>>>
>>> This particular "directory" is actually a symlink to
>>> ~/Documents/<project_folder>
>>>
>>> Later in the log:
>>>
>>> Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
>>> safe script dirs:
>>> /Users/<user>/Documents/<project_folder>/<web_root>/index.a4d
>>> ...
>>>
>>> My safe scripts, from Active4D.ini:
>>> safe script dirs = <default>/<web_root1>;<default>/<web_root2>
>>>
>>> As you can see, I'm serving two sites, and both sites give me
>> Unauthorized
>>> access errors to their web root.
>>>
>>> It's just a guess, but it appears that defining the default folder with a
>>> symlink does not work like it did in Active4D 6.4.
>>>
>>> Doug
>>> _______________________________________________
>>> Active4D-dev mailing list
>>> [hidden email]
>>> http://list.aparajitaworld.com/listinfo/active4d-dev
>>> Archives: http://active4d-nabble.aparajitaworld.com/
>>
>>
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D Remote default directory in 7.0r3

Doug Hall-6
Yes, I'm using virtual hosts. I sent you my log file and virtualhosts.ini
in a private email. I'm still poking around with it. Let me know if you
spot something strange.

On Thu, Nov 2, 2017 at 1:51 PM, Aparajita Fishman <[hidden email]>
wrote:

> Are you using virtual hosts? Do you have debug logging on for Active4D? If
> not, turn debug logging on and look closely at the log, paying attention to
> when it’s reading in Active4D.ini and VirtualHosts.ini. That should tell
> you what’s going wrong. And remove the ‘safe script dirs’ entry.
>
> All the best,
>
>   - Aparajita
>
> > On Nov 2, 2017, at 11:29 AM, Doug Hall <[hidden email]> wrote:
> >
> > Thanks for responding. I'll definitely clear out my safe script dirs in
> > Active4D.ini. It's definitely in my system /Library (not ~/Library)
> folder.
> > Here is an edited console dump:
> >
> > ~ cd /Library/Application\ Support/4D/com.aparajita
> > ➜  com.aparajita ls -la
> > total 8
> > drwxr-xr-x  3 <WebClientUser>  admin   102B Sep 13 11:47 .
> > drwxr-xr-x  5 <WebClientUser>  admin   170B Sep 13 09:46 ..
> > lrwxr-xr-x  1 <WebClientUser>  admin    32B Sep 13 05:23 Active4D ->
> > /Users/<WebClientUser>/Documents/<project_root>
> > ➜  com.aparajita cd Active4D
> > ➜  Active4D git:(4Dv15) ✗ pwd
> > /Library/Application Support/4D/com.aparajita/Active4D
> > ➜  Active4D git:(4Dv15) ✗ ls -l
> > total 32
> > drwxr-xr-x  71 <WebClientUser>  staff  2414 Nov  2 12:09 Active4D
> > drwxr-xr-x   4 <WebClientUser>  staff   136 Oct 26 10:05 Active4D uploads
> > -rw-r--r--   1 <WebClientUser>  staff    66 Aug 30 16:27 Gemfile
> > -rw-r--r--   1 <WebClientUser>  staff   768 Oct 26 10:05 Gemfile.lock
> > drwxr-xr-x   5 <WebClientUser>  staff   170 Sep 18 10:56 Logs
> > drwxr-xr-x   5 <WebClientUser>  staff   170 Aug 30 16:27 bin
> > drwxr-xr-x   3 <WebClientUser>  staff   102 Oct 26 10:05 config
> > drwxr-xr-x  37 <WebClientUser>  staff  1258 Oct 26 10:05 jobs2
> > drwxr-xr-x  13 <WebClientUser>  staff   442 Oct 26 10:05 web_static
> > drwxr-xr-x  34 <WebClientUser>  staff  1156 Oct 26 10:05 weba4d
> >
> > -----
> >
> > Notice that when I cd into Active4D, then do a pwd, it still thinks I'm
> in
> > /Library/Application Support/4D/com.aparajita. (Not sure if that's proper
> > or not.) I tried deleting and recreating the symlink, but this had no
> > effect. I still get 403 errors to both sites. I did notice that the error
> > on one of the sites was from Active4D, while the error from the other
> site
> > was a plain, unstyled text error.
> >
> > :-(
> >
> > Let me know if you think of anything. I can't make any progress on my new
> > (future) production setup until I get past this problem.
> >
> > Many thanks!
> > Doug
> >
> > On Thu, Nov 2, 2017 at 12:32 PM, Aparajita Fishman <
> [hidden email]>
> > wrote:
> >
> >> Symlinks definitely work on the default folder. But in your case it’s
> >> showing the default folder as non-symlinked, and in the system /Library.
> >> Are you sure you weren’t try to symlink from the user library at
> >> ~/Library/Application Support/4D/com.aparajita/Active4D?
> >>
> >> If you’re serving two sites using virtual hosts, you don’t need to (and
> >> shouldn’t) modify 'safe script dirs’.
> >>
> >> All the best,
> >>
> >>  - Aparajita
> >>
> >>> On Nov 1, 2017, at 12:05 PM, Doug Hall <[hidden email]> wrote:
> >>>
> >>> I'm getting Unauthorized Access (403) errors when trying to access my
> >>> Active4D host, when served from 4D Remote. Everything works fine from a
> >>> local database on my development machine, and from a development 4D
> >> server.
> >>>
> >>> I moved all of my library files into the <project_folder>/Active4D
> >> folder,
> >>> as required by v7.
> >>>
> >>> From my Active4D log:
> >>>
> >>> Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
> >>> /Library/Application Support/4D/com.aparajita/Active4D
> >>>
> >>> This particular "directory" is actually a symlink to
> >>> ~/Documents/<project_folder>
> >>>
> >>> Later in the log:
> >>>
> >>> Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
> >>> safe script dirs:
> >>> /Users/<user>/Documents/<project_folder>/<web_root>/index.a4d
> >>> ...
> >>>
> >>> My safe scripts, from Active4D.ini:
> >>> safe script dirs = <default>/<web_root1>;<default>/<web_root2>
> >>>
> >>> As you can see, I'm serving two sites, and both sites give me
> >> Unauthorized
> >>> access errors to their web root.
> >>>
> >>> It's just a guess, but it appears that defining the default folder
> with a
> >>> symlink does not work like it did in Active4D 6.4.
> >>>
> >>> Doug
> >>> _______________________________________________
> >>> Active4D-dev mailing list
> >>> [hidden email]
> >>> http://list.aparajitaworld.com/listinfo/active4d-dev
> >>> Archives: http://active4d-nabble.aparajitaworld.com/
> >>
> >>
> >> _______________________________________________
> >> Active4D-dev mailing list
> >> [hidden email]
> >> http://list.aparajitaworld.com/listinfo/active4d-dev
> >> Archives: http://active4d-nabble.aparajitaworld.com/
> > _______________________________________________
> > Active4D-dev mailing list
> > [hidden email]
> > http://list.aparajitaworld.com/listinfo/active4d-dev
> > Archives: http://active4d-nabble.aparajitaworld.com/
>
>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
>
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: 4D Remote default directory in 7.0r3

Aparajita Fishman
I found the problem. In some cases symlinks are not being resolved. I’ll roll out a fix shortly.
 
All the best,

  - Aparajita

> On Nov 3, 2017, at 6:06 AM, Doug Hall <[hidden email]> wrote:
>
> Yes, I'm using virtual hosts. I sent you my log file and virtualhosts.ini
> in a private email. I'm still poking around with it. Let me know if you
> spot something strange.
>
> On Thu, Nov 2, 2017 at 1:51 PM, Aparajita Fishman <[hidden email]>
> wrote:
>
>> Are you using virtual hosts? Do you have debug logging on for Active4D? If
>> not, turn debug logging on and look closely at the log, paying attention to
>> when it’s reading in Active4D.ini and VirtualHosts.ini. That should tell
>> you what’s going wrong. And remove the ‘safe script dirs’ entry.
>>
>> All the best,
>>
>>  - Aparajita
>>
>>> On Nov 2, 2017, at 11:29 AM, Doug Hall <[hidden email]> wrote:
>>>
>>> Thanks for responding. I'll definitely clear out my safe script dirs in
>>> Active4D.ini. It's definitely in my system /Library (not ~/Library)
>> folder.
>>> Here is an edited console dump:
>>>
>>> ~ cd /Library/Application\ Support/4D/com.aparajita
>>> ➜  com.aparajita ls -la
>>> total 8
>>> drwxr-xr-x  3 <WebClientUser>  admin   102B Sep 13 11:47 .
>>> drwxr-xr-x  5 <WebClientUser>  admin   170B Sep 13 09:46 ..
>>> lrwxr-xr-x  1 <WebClientUser>  admin    32B Sep 13 05:23 Active4D ->
>>> /Users/<WebClientUser>/Documents/<project_root>
>>> ➜  com.aparajita cd Active4D
>>> ➜  Active4D git:(4Dv15) ✗ pwd
>>> /Library/Application Support/4D/com.aparajita/Active4D
>>> ➜  Active4D git:(4Dv15) ✗ ls -l
>>> total 32
>>> drwxr-xr-x  71 <WebClientUser>  staff  2414 Nov  2 12:09 Active4D
>>> drwxr-xr-x   4 <WebClientUser>  staff   136 Oct 26 10:05 Active4D uploads
>>> -rw-r--r--   1 <WebClientUser>  staff    66 Aug 30 16:27 Gemfile
>>> -rw-r--r--   1 <WebClientUser>  staff   768 Oct 26 10:05 Gemfile.lock
>>> drwxr-xr-x   5 <WebClientUser>  staff   170 Sep 18 10:56 Logs
>>> drwxr-xr-x   5 <WebClientUser>  staff   170 Aug 30 16:27 bin
>>> drwxr-xr-x   3 <WebClientUser>  staff   102 Oct 26 10:05 config
>>> drwxr-xr-x  37 <WebClientUser>  staff  1258 Oct 26 10:05 jobs2
>>> drwxr-xr-x  13 <WebClientUser>  staff   442 Oct 26 10:05 web_static
>>> drwxr-xr-x  34 <WebClientUser>  staff  1156 Oct 26 10:05 weba4d
>>>
>>> -----
>>>
>>> Notice that when I cd into Active4D, then do a pwd, it still thinks I'm
>> in
>>> /Library/Application Support/4D/com.aparajita. (Not sure if that's proper
>>> or not.) I tried deleting and recreating the symlink, but this had no
>>> effect. I still get 403 errors to both sites. I did notice that the error
>>> on one of the sites was from Active4D, while the error from the other
>> site
>>> was a plain, unstyled text error.
>>>
>>> :-(
>>>
>>> Let me know if you think of anything. I can't make any progress on my new
>>> (future) production setup until I get past this problem.
>>>
>>> Many thanks!
>>> Doug
>>>
>>> On Thu, Nov 2, 2017 at 12:32 PM, Aparajita Fishman <
>> [hidden email]>
>>> wrote:
>>>
>>>> Symlinks definitely work on the default folder. But in your case it’s
>>>> showing the default folder as non-symlinked, and in the system /Library.
>>>> Are you sure you weren’t try to symlink from the user library at
>>>> ~/Library/Application Support/4D/com.aparajita/Active4D?
>>>>
>>>> If you’re serving two sites using virtual hosts, you don’t need to (and
>>>> shouldn’t) modify 'safe script dirs’.
>>>>
>>>> All the best,
>>>>
>>>> - Aparajita
>>>>
>>>>> On Nov 1, 2017, at 12:05 PM, Doug Hall <[hidden email]> wrote:
>>>>>
>>>>> I'm getting Unauthorized Access (403) errors when trying to access my
>>>>> Active4D host, when served from 4D Remote. Everything works fine from a
>>>>> local database on my development machine, and from a development 4D
>>>> server.
>>>>>
>>>>> I moved all of my library files into the <project_folder>/Active4D
>>>> folder,
>>>>> as required by v7.
>>>>>
>>>>> From my Active4D log:
>>>>>
>>>>> Nov 01 13:28:14 Active4D: [info] interpreter: default directory:
>>>>> /Library/Application Support/4D/com.aparajita/Active4D
>>>>>
>>>>> This particular "directory" is actually a symlink to
>>>>> ~/Documents/<project_folder>
>>>>>
>>>>> Later in the log:
>>>>>
>>>>> Nov 01 13:28:39 Active4D: [error] server: requested file not in root or
>>>>> safe script dirs:
>>>>> /Users/<user>/Documents/<project_folder>/<web_root>/index.a4d
>>>>> ...
>>>>>
>>>>> My safe scripts, from Active4D.ini:
>>>>> safe script dirs = <default>/<web_root1>;<default>/<web_root2>
>>>>>
>>>>> As you can see, I'm serving two sites, and both sites give me
>>>> Unauthorized
>>>>> access errors to their web root.
>>>>>
>>>>> It's just a guess, but it appears that defining the default folder
>> with a
>>>>> symlink does not work like it did in Active4D 6.4.
>>>>>
>>>>> Doug
>>>>> _______________________________________________
>>>>> Active4D-dev mailing list
>>>>> [hidden email]
>>>>> http://list.aparajitaworld.com/listinfo/active4d-dev
>>>>> Archives: http://active4d-nabble.aparajitaworld.com/
>>>>
>>>>
>>>> _______________________________________________
>>>> Active4D-dev mailing list
>>>> [hidden email]
>>>> http://list.aparajitaworld.com/listinfo/active4d-dev
>>>> Archives: http://active4d-nabble.aparajitaworld.com/
>>> _______________________________________________
>>> Active4D-dev mailing list
>>> [hidden email]
>>> http://list.aparajitaworld.com/listinfo/active4d-dev
>>> Archives: http://active4d-nabble.aparajitaworld.com/
>>
>>
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
>>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/