Fallback Resource and file_exists / LP8.6

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

Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
A while back I switched my apache conf to use Fallback Resource (on my local dev machine) for my "clean URL" sites. Today I had to make some changes on an older site. I immediately started getting errors with a bit of code that relies on file_exists. With a little investigating I think I have the error isolated, but have no clue on how to fix it!

Running in LP8.6 on Mac OSX.9.5

Simple code:
<?lassoScript

        inline($authInfo_file, -nothing);
                $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+': /_images/_products/pc_8slt.jpg<br>';
                $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
        /inline;

?>

With FallBack Resource as part of the conf file, both the above statements return true:
true: /_images/_products/pc_8slt.jpg
true: xxx.jpg

Without the Fallback resource (moved into the base Lasso Site in LP8.6):
true: /_images/_products/pc_8slt.jpg
false: xxx.jpg

Any ideas on how to fix this?

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
Local Apache version?

--steve


On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:

> A while back I switched my apache conf to use Fallback Resource (on my local dev machine)
> for my "clean URL" sites. Today I had to make some changes on an older site. I
> immediately started getting errors with a bit of code that relies on file_exists. With a
> little investigating I think I have the error isolated, but have no clue on how to fix
> it!
>
> Running in LP8.6 on Mac OSX.9.5
>
> Simple code:
> <?lassoScript
>
>   inline($authInfo_file, -nothing);
>       $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
> /_images/_products/pc_8slt.jpg<br>';
>       $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>   /inline;
>
> ?>
>
> With FallBack Resource as part of the conf file, both the above statements return true:
> true: /_images/_products/pc_8slt.jpg
> true: xxx.jpg
>
> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
> true: /_images/_products/pc_8slt.jpg
> false: xxx.jpg
>
> Any ideas on how to fix this?
>
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
Apache/2.2.26


On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]> wrote:

> Local Apache version?
>
> --steve
>
>
> On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>
>> A while back I switched my apache conf to use Fallback Resource (on my local dev machine)
>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>> immediately started getting errors with a bit of code that relies on file_exists. With a
>> little investigating I think I have the error isolated, but have no clue on how to fix
>> it!
>>
>> Running in LP8.6 on Mac OSX.9.5
>>
>> Simple code:
>> <?lassoScript
>>
>>  inline($authInfo_file, -nothing);
>>      $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>> /_images/_products/pc_8slt.jpg<br>';
>>      $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>  /inline;
>>
>> ?>
>>
>> With FallBack Resource as part of the conf file, both the above statements return true:
>> true: /_images/_products/pc_8slt.jpg
>> true: xxx.jpg
>>
>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>> true: /_images/_products/pc_8slt.jpg
>> false: xxx.jpg
>>
>> Any ideas on how to fix this?
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
Is the Apache config the only change you made?

Do you have any overriding Apache config stuff that sets or
unsets request headers?

What happens if you specify a file path with a leading "/" while
you have FallbackResource enabled?

     $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';

Finally, I wonder if there is some kind of redirect, error,
etc.  Did you inspect your Apache logs?

--steve


On 12/16/14 at 12:17 PM, [hidden email] (Marc
Pinnell) pronounced:

>Apache/2.2.26
>
>
>On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
>>Local Apache version?
>>
>>--steve
>>
>>
>>On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>
>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>machine)
>>>  for my "clean URL" sites. Today I had to make some changes
>>>on an older site. I  immediately started getting errors with
>>>a bit of code that relies on file_exists. With
>a
>>>  little investigating I think I have the error isolated, but
>>>have no clue on how to fix  it!
>>>   Running in LP8.6 on Mac OSX.9.5
>>>   Simple code:
>>> <?lassoScript
>>>    inline($authInfo_file, -nothing);
>>>       $__HTML_REPLY__ +=
>>>file_exists('/_images/_products/pc_8slt.jpg')+':  /_images/_products/pc_8slt.jpg<br>';
>>>      $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>  /inline;
>>>   ?>
>>>   With FallBack Resource as part of the conf file, both the
>>>above statements return
>true:
>>> true: /_images/_products/pc_8slt.jpg
>>> true: xxx.jpg
>>>   Without the Fallback resource (moved into the base Lasso
>>>Site in LP8.6):
>>> true: /_images/_products/pc_8slt.jpg
>>> false: xxx.jpg
>>>   Any ideas on how to fix this?
>>>   Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>     #############################################################
>>>   This message is sent to you because you are subscribed to
>>>  the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Soquel, CA
>><[hidden email]>               <http://www.StevePiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
No change adding the "/":
true: /_images/_products/pc_8slt.jpg
true: /xxx.jpg

No other changes headers that I can think of.

Apache Error logs:
[Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit SSLMutex

Access Log:
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/ HTTP/1.1" 200 4117
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200 4100
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/prettyPhoto.css HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgBkgd.jpg HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgHead.png HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maHead.png HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maBkgd.png HTTP/1.1" 304 -
127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -




On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder <[hidden email]> wrote:

> Is the Apache config the only change you made?
>
> Do you have any overriding Apache config stuff that sets or unsets request headers?
>
> What happens if you specify a file path with a leading "/" while you have FallbackResource enabled?
>
>    $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>
> Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect your Apache logs?
>
> --steve
>
>
> On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>
>> Apache/2.2.26
>>
>>
>> On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>> Local Apache version?
>>>
>>> --steve
>>>
>>>
>>> On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>
>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>> machine)
>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I  immediately started getting errors with a bit of code that relies on file_exists. With
>> a
>>>> little investigating I think I have the error isolated, but have no clue on how to fix  it!
>>>>  Running in LP8.6 on Mac OSX.9.5
>>>>  Simple code:
>>>> <?lassoScript
>>>>   inline($authInfo_file, -nothing);
>>>>      $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':  /_images/_products/pc_8slt.jpg<br>';
>>>>     $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>> /inline;
>>>>  ?>
>>>>  With FallBack Resource as part of the conf file, both the above statements return
>> true:
>>>> true: /_images/_products/pc_8slt.jpg
>>>> true: xxx.jpg
>>>>  Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>> true: /_images/_products/pc_8slt.jpg
>>>> false: xxx.jpg
>>>>  Any ideas on how to fix this?
>>>>  Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>    #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy              Website Builder              Soquel, CA
>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
With the four lines of Lasso code you originally provided, how
do you get all these log entries?

The OPTIONS request is weird.

--steve


On 12/16/14 at 12:36 PM, [hidden email] (Marc
Pinnell) pronounced:

>No change adding the "/":
>true: /_images/_products/pc_8slt.jpg
>true: /xxx.jpg
>
>No other changes headers that I can think of.
>
>Apache Error logs:
>[Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit SSLMutex
>
>Access Log:
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/Shopping+Cart/Products/Post+Caps/ HTTP/1.1" 200 4117
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200 4100
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_css/prettyPhoto.css HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_scripts/jquery.cycle.min.js HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_pgBkgd.jpg HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_pgHead.png HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_maHead.png HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_maBkgd.png HTTP/1.1" 304 -
>127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>
>
>
>
>On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
>>Is the Apache config the only change you made?
>>
>>Do you have any overriding Apache config stuff that sets or unsets request headers?
>>
>>What happens if you specify a file path with a leading "/" while you have
>FallbackResource enabled?
>>
>>$__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>
>>Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect your
>Apache logs?
>>
>>--steve
>>
>>
>>On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>
>>> Apache/2.2.26
>>>    On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website
>>>Builder <[hidden email]>
>wrote:
>>>
>>>> Local Apache version?
>>>>   --steve
>>>>    On 12/16/14 at 10:23 AM, [hidden email]
>>>>(Marc Pinnell) pronounced:
>>>>
>>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>>> machine)
>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>immediately started getting errors with a bit of code that relies on file_exists. With
>>> a
>>>>> little investigating I think I have the error isolated, but have no clue on how to
>fix  it!
>>>>>  Running in LP8.6 on Mac OSX.9.5
>>>>>  Simple code:
>>>>> <?lassoScript
>>>>>   inline($authInfo_file, -nothing);
>>>>>      $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>/_images/_products/pc_8slt.jpg<br>';
>>>>>     $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>> /inline;
>>>>>  ?>
>>>>>  With FallBack Resource as part of the conf file, both the above statements return
>>> true:
>>>>> true: /_images/_products/pc_8slt.jpg
>>>>> true: xxx.jpg
>>>>>  Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>> true: /_images/_products/pc_8slt.jpg
>>>>> false: xxx.jpg
>>>>>  Any ideas on how to fix this?
>>>>>  Marc Pinnell
>>>>> 1027 Design
>>>>> PO Box 990872
>>>>> Redding, CA 96099-0872
>>>>> 530.941.4706
>>>>> fax: 866.232.5300
>>>>> www.1027Design.com
>>>>>    #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>-- -- --
>>>> Steve Piercy              Website Builder              Soquel, CA
>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>    #############################################################
>>>>   This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>   Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>     #############################################################
>>>   This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Soquel, CA
>><[hidden email]>               <http://www.StevePiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
In reply to this post by stevepiercy
With logs set to [debug]:

[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(397): [client 127.0.0.1] mod_hfs_apple: Allowing access with matching directory. filename = /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/_config/_start.lasso, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(363): [client 127.0.0.1] mod_hfs_apple: compare_paths / vs /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg/, related=1, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(363): [client 127.0.0.1] mod_hfs_apple: compare_paths /Library/WebServer/Documents/ vs /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg/, related=1, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(363): [client 127.0.0.1] mod_hfs_apple: compare_paths /Library/WebServer/CGI-Executables/ vs /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg/, related=0, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(363): [client 127.0.0.1] mod_hfs_apple: compare_paths /usr/share/httpd/icons/ vs /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg/, related=0, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(363): [client 127.0.0.1] mod_hfs_apple: compare_paths /Library/WebServer/share/httpd/manual/ vs /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg/, related=0, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(363): [client 127.0.0.1] mod_hfs_apple: compare_paths .*\\.\\.namedfork/ vs /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg/, related=0, referer: http://reflectaddress.test/
[Tue Dec 16 12:38:44 2014] [debug] mod_hfs_apple2.c(384): [client 127.0.0.1] mod_hfs_apple: Final check compares: /Library/WebServer/Documents/reflectaddress/_Site/__MainSite/xxx.jpg vs /Library/WebServer/Documents/, length 28, referer: http://reflectaddress.test/




On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder <[hidden email]> wrote:

> Is the Apache config the only change you made?
>
> Do you have any overriding Apache config stuff that sets or unsets request headers?
>
> What happens if you specify a file path with a leading "/" while you have FallbackResource enabled?
>
>    $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>
> Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect your Apache logs?
>
> --steve
>
>
> On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>
>> Apache/2.2.26
>>
>>
>> On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>> Local Apache version?
>>>
>>> --steve
>>>
>>>
>>> On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>
>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>> machine)
>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I  immediately started getting errors with a bit of code that relies on file_exists. With
>> a
>>>> little investigating I think I have the error isolated, but have no clue on how to fix  it!
>>>>  Running in LP8.6 on Mac OSX.9.5
>>>>  Simple code:
>>>> <?lassoScript
>>>>   inline($authInfo_file, -nothing);
>>>>      $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':  /_images/_products/pc_8slt.jpg<br>';
>>>>     $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>> /inline;
>>>>  ?>
>>>>  With FallBack Resource as part of the conf file, both the above statements return
>> true:
>>>> true: /_images/_products/pc_8slt.jpg
>>>> true: xxx.jpg
>>>>  Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>> true: /_images/_products/pc_8slt.jpg
>>>> false: xxx.jpg
>>>>  Any ideas on how to fix this?
>>>>  Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>    #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy              Website Builder              Soquel, CA
>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
In reply to this post by stevepiercy
The page with the FallBack is a page in the site, hence all the other requests. I could strip it down to just the one request I guess.

marc


On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website Builder <[hidden email]> wrote:

> With the four lines of Lasso code you originally provided, how do you get all these log entries?
>
> The OPTIONS request is weird.
>
> --steve
>
>
> On 12/16/14 at 12:36 PM, [hidden email] (Marc Pinnell) pronounced:
>
>> No change adding the "/":
>> true: /_images/_products/pc_8slt.jpg
>> true: /xxx.jpg
>>
>> No other changes headers that I can think of.
>>
>> Apache Error logs:
>> [Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit SSLMutex
>>
>> Access Log:
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/ HTTP/1.1" 200 4117
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200 4100
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/prettyPhoto.css HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgBkgd.jpg HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgHead.png HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maHead.png HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maBkgd.png HTTP/1.1" 304 -
>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>> ::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>
>>
>>
>>
>> On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>> Is the Apache config the only change you made?
>>>
>>> Do you have any overriding Apache config stuff that sets or unsets request headers?
>>>
>>> What happens if you specify a file path with a leading "/" while you have
>> FallbackResource enabled?
>>>
>>> $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>
>>> Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect your
>> Apache logs?
>>>
>>> --steve
>>>
>>>
>>> On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>>
>>>> Apache/2.2.26
>>>>   On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]>
>> wrote:
>>>>
>>>>> Local Apache version?
>>>>>  --steve
>>>>>   On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>
>>>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>>>> machine)
>>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>> immediately started getting errors with a bit of code that relies on file_exists. With
>>>> a
>>>>>> little investigating I think I have the error isolated, but have no clue on how to
>> fix  it!
>>>>>> Running in LP8.6 on Mac OSX.9.5
>>>>>> Simple code:
>>>>>> <?lassoScript
>>>>>>  inline($authInfo_file, -nothing);
>>>>>>     $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>> /_images/_products/pc_8slt.jpg<br>';
>>>>>>    $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>> /inline;
>>>>>> ?>
>>>>>> With FallBack Resource as part of the conf file, both the above statements return
>>>> true:
>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>> true: xxx.jpg
>>>>>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>> false: xxx.jpg
>>>>>> Any ideas on how to fix this?
>>>>>> Marc Pinnell
>>>>>> 1027 Design
>>>>>> PO Box 990872
>>>>>> Redding, CA 96099-0872
>>>>>> 530.941.4706
>>>>>> fax: 866.232.5300
>>>>>> www.1027Design.com
>>>>>>   #############################################################
>>>>>> This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>   #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>  Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>    #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy              Website Builder              Soquel, CA
>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
I moved just the testing code (and the one real image) over to LP9 site using FallBack Resource and it works as expected.

$__HTML_REPLY__ += file_exists('/pc_8slt.jpg')+': /pc_8slt.jpg<br>';
$__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';

true: /pc_8slt.jpg
false: xxx.jpg

marc


On Dec 16, 2014, at 12:43 PM, Marc Pinnell <[hidden email]> wrote:

> The page with the FallBack is a page in the site, hence all the other requests. I could strip it down to just the one request I guess.
>
> marc
>
>
> On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
>> With the four lines of Lasso code you originally provided, how do you get all these log entries?
>>
>> The OPTIONS request is weird.
>>
>> --steve
>>
>>
>> On 12/16/14 at 12:36 PM, [hidden email] (Marc Pinnell) pronounced:
>>
>>> No change adding the "/":
>>> true: /_images/_products/pc_8slt.jpg
>>> true: /xxx.jpg
>>>
>>> No other changes headers that I can think of.
>>>
>>> Apache Error logs:
>>> [Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit SSLMutex
>>>
>>> Access Log:
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/ HTTP/1.1" 200 4117
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200 4100
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/prettyPhoto.css HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgBkgd.jpg HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgHead.png HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maHead.png HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maBkgd.png HTTP/1.1" 304 -
>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>> ::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>>
>>>
>>>
>>>
>>> On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>>
>>>> Is the Apache config the only change you made?
>>>>
>>>> Do you have any overriding Apache config stuff that sets or unsets request headers?
>>>>
>>>> What happens if you specify a file path with a leading "/" while you have
>>> FallbackResource enabled?
>>>>
>>>> $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>>
>>>> Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect your
>>> Apache logs?
>>>>
>>>> --steve
>>>>
>>>>
>>>> On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>
>>>>> Apache/2.2.26
>>>>>  On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]>
>>> wrote:
>>>>>
>>>>>> Local Apache version?
>>>>>> --steve
>>>>>>  On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>
>>>>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>>>>> machine)
>>>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>>> immediately started getting errors with a bit of code that relies on file_exists. With
>>>>> a
>>>>>>> little investigating I think I have the error isolated, but have no clue on how to
>>> fix  it!
>>>>>>> Running in LP8.6 on Mac OSX.9.5
>>>>>>> Simple code:
>>>>>>> <?lassoScript
>>>>>>> inline($authInfo_file, -nothing);
>>>>>>>    $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>>> /_images/_products/pc_8slt.jpg<br>';
>>>>>>>   $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>>> /inline;
>>>>>>> ?>
>>>>>>> With FallBack Resource as part of the conf file, both the above statements return
>>>>> true:
>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>> true: xxx.jpg
>>>>>>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>> false: xxx.jpg
>>>>>>> Any ideas on how to fix this?
>>>>>>> Marc Pinnell
>>>>>>> 1027 Design
>>>>>>> PO Box 990872
>>>>>>> Redding, CA 96099-0872
>>>>>>> 530.941.4706
>>>>>>> fax: 866.232.5300
>>>>>>> www.1027Design.com
>>>>>>>  #############################################################
>>>>>>> This message is sent to you because you are subscribed to
>>>>>>> the mailing list Lasso [hidden email]
>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>  #############################################################
>>>>>> This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>> Marc Pinnell
>>>>> 1027 Design
>>>>> PO Box 990872
>>>>> Redding, CA 96099-0872
>>>>> 530.941.4706
>>>>> fax: 866.232.5300
>>>>> www.1027Design.com
>>>>>   #############################################################
>>>>> This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>
>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>> Steve Piercy              Website Builder              Soquel, CA
>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>> Steve Piercy              Website Builder              Soquel, CA
>> <[hidden email]>               <http://www.StevePiercy.com/>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
But the problem site has L8 on it, right?

This smells like you have something different between the two
Apache configs for the virtual hosts, or something overriding in
the global Apache config.  Better brew another pot of coffee.  :/

--steve


On 12/16/14 at 12:50 PM, [hidden email] (Marc
Pinnell) pronounced:

>I moved just the testing code (and the one real image) over to
>LP9 site using FallBack Resource and it works as expected.
>
>$__HTML_REPLY__ += file_exists('/pc_8slt.jpg')+': /pc_8slt.jpg<br>';
>$__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>
>true: /pc_8slt.jpg
>false: xxx.jpg
>
>marc
>
>
>On Dec 16, 2014, at 12:43 PM, Marc Pinnell <[hidden email]> wrote:
>
>>The page with the FallBack is a page in the site, hence all the other requests. I could
>strip it down to just the one request I guess.
>>
>>marc
>>
>>
>>On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website Builder <[hidden email]>
>wrote:
>>
>>> With the four lines of Lasso code you originally provided, how do you get all these
>log entries?
>>>   The OPTIONS request is weird.
>>>   --steve
>>>    On 12/16/14 at 12:36 PM, [hidden email]
>>>(Marc Pinnell) pronounced:
>>>
>>>> No change adding the "/":
>>>> true: /_images/_products/pc_8slt.jpg
>>>> true: /xxx.jpg
>>>>   No other changes headers that I can think of.
>>>>   Apache Error logs:
>>>> [Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit
>SSLMutex
>>>>   Access Log:
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/
>HTTP/1.1" 200 4117
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200
>4100
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/prettyPhoto.css
>HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js
>HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgBkgd.jpg
>HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgHead.png
>HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maHead.png
>HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maBkgd.png
>HTTP/1.1" 304 -
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>> ::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>>>      On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website
>>>>Builder <[hidden email]>
>wrote:
>>>>
>>>>> Is the Apache config the only change you made?
>>>>>   Do you have any overriding Apache config stuff that sets
>>>>>or unsets request headers?
>>>>>   What happens if you specify a file path with a leading
>>>>>"/" while you have
>>>> FallbackResource enabled?
>>>>>   $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>>>   Finally, I wonder if there is some kind of redirect,
>>>>>error, etc.  Did you inspect
>your
>>>> Apache logs?
>>>>>   --steve
>>>>>    On 12/16/14 at 12:17 PM, [hidden email]
>>>>>(Marc Pinnell) pronounced:
>>>>>
>>>>>> Apache/2.2.26
>>>>>>  On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]>
>>>> wrote:
>>>>>>
>>>>>>> Local Apache version?
>>>>>>> --steve
>>>>>>>  On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>
>>>>>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>>>>>> machine)
>>>>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>>>> immediately started getting errors with a bit of code that relies on file_exists.
>With
>>>>>> a
>>>>>>>> little investigating I think I have the error isolated, but have no clue on how
>to
>>>> fix  it!
>>>>>>>> Running in LP8.6 on Mac OSX.9.5
>>>>>>>> Simple code:
>>>>>>>> <?lassoScript
>>>>>>>> inline($authInfo_file, -nothing);
>>>>>>>>    $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>>>> /_images/_products/pc_8slt.jpg<br>';
>>>>>>>>   $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>>>> /inline;
>>>>>>>> ?>
>>>>>>>> With FallBack Resource as part of the conf file, both the above statements return
>>>>>> true:
>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>> true: xxx.jpg
>>>>>>>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>> false: xxx.jpg
>>>>>>>> Any ideas on how to fix this?
>>>>>>>> Marc Pinnell
>>>>>>>> 1027 Design
>>>>>>>> PO Box 990872
>>>>>>>> Redding, CA 96099-0872
>>>>>>>> 530.941.4706
>>>>>>>> fax: 866.232.5300
>>>>>>>> www.1027Design.com
>>>>>>>>  #############################################################
>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>  #############################################################
>>>>>>> This message is sent to you because you are subscribed to
>>>>>>> the mailing list Lasso [hidden email]
>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>> Marc Pinnell
>>>>>> 1027 Design
>>>>>> PO Box 990872
>>>>>> Redding, CA 96099-0872
>>>>>> 530.941.4706
>>>>>> fax: 866.232.5300
>>>>>> www.1027Design.com
>>>>>>   #############################################################
>>>>>> This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>>   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>-- -- --
>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>    #############################################################
>>>>>   This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>     #############################################################
>>>>   This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>-- -- --
>>> Steve Piercy              Website Builder              Soquel, CA
>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>    #############################################################
>>>   This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>Marc Pinnell
>>1027 Design
>>PO Box 990872
>>Redding, CA 96099-0872
>>530.941.4706
>>fax: 866.232.5300
>>www.1027Design.com
>>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
Aha! See the last part of the L8 conf file below. Is this what you asked about before?



L9 site that works:
####================ SO CAL SOCCER =========================
<VirtualHost *:80>
    ServerName scsoccer.test
    DocumentRoot /Library/WebServer/Documents/SoCalHSSoccer/_site2014
    Include /private/etc/apache2/other/mod_lasso9.conf
    FallbackResource /_config/_start.lasso
</VirtualHost>


L8 that doesn't:
###=============== REFLECT ADDRESS ==========================
<VirtualHost *:80>
    ServerName reflectaddress.test
    DocumentRoot /Library/WebServer/Documents/reflectaddress/_Site/__MainSite
    Include /private/etc/apache2/other/lasso8.conf
    FallbackResource /_config/_start.lasso
</VirtualHost>



#
# This is the Apache 2 configuration file for Lasso 9
# Mac OS X 10.6/10.7
#

<IfModule !lasso9_module>
        LoadModule lasso9_module libexec/apache2/mod_lasso9.so
</IfModule>

# all LassoApps routed through here
<Location /lasso9>
        SetHandler lasso9-handler
        Order allow,deny
        Allow from all
</Location>

# instance manager administrative facilities can be disabled by commenting this out
<Location /lasso9/instancemanager>
        SetHandler lasso9-instancemanager
        Order allow,deny
        Allow from all
</Location>

<Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
        SetHandler lasso9-handler
</Location>



L8:
<Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
        SetHandler lasso8-handler
</Location>

<Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo][Aa][Pp][Pp]$">
        SetHandler lasso8-handler
</Location>


########################################################################
#     Following is necessary to accomplish Clean URLs in L8 without atBegin
########################################################################
# If REQUEST_URI environment variable matches the regular expression (.*)
# then set an environment variable X-REQUEST-URI to the value captured by
# the regular expression
SetEnvIf REQUEST_URI (.*) X-REQUEST-URI=$1
# Set a RequestHeader to the environment variable we just set
RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e


On Dec 16, 2014, at 1:00 PM, Steve Piercy - Website Builder <[hidden email]> wrote:

> But the problem site has L8 on it, right?
>
> This smells like you have something different between the two Apache configs for the virtual hosts, or something overriding in the global Apache config.  Better brew another pot of coffee.  :/
>
> --steve
>
>
> On 12/16/14 at 12:50 PM, [hidden email] (Marc Pinnell) pronounced:
>
>> I moved just the testing code (and the one real image) over to LP9 site using FallBack Resource and it works as expected.
>>
>> $__HTML_REPLY__ += file_exists('/pc_8slt.jpg')+': /pc_8slt.jpg<br>';
>> $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>
>> true: /pc_8slt.jpg
>> false: xxx.jpg
>>
>> marc
>>
>>
>> On Dec 16, 2014, at 12:43 PM, Marc Pinnell <[hidden email]> wrote:
>>
>>> The page with the FallBack is a page in the site, hence all the other requests. I could
>> strip it down to just the one request I guess.
>>>
>>> marc
>>>
>>>
>>> On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website Builder <[hidden email]>
>> wrote:
>>>
>>>> With the four lines of Lasso code you originally provided, how do you get all these
>> log entries?
>>>>  The OPTIONS request is weird.
>>>>  --steve
>>>>   On 12/16/14 at 12:36 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>
>>>>> No change adding the "/":
>>>>> true: /_images/_products/pc_8slt.jpg
>>>>> true: /xxx.jpg
>>>>>  No other changes headers that I can think of.
>>>>>  Apache Error logs:
>>>>> [Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit
>> SSLMutex
>>>>>  Access Log:
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/
>> HTTP/1.1" 200 4117
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>> /_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200
>> 4100
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_CMS_Common_v3/_css/prettyPhoto.css
>> HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>> /_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js
>> HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>> /_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>> /_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgBkgd.jpg
>> HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_pgHead.png
>> HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maHead.png
>> HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_images/_pgElements/site_maBkgd.png
>> HTTP/1.1" 304 -
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>> ::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>>>>     On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder <[hidden email]>
>> wrote:
>>>>>
>>>>>> Is the Apache config the only change you made?
>>>>>>  Do you have any overriding Apache config stuff that sets or unsets request headers?
>>>>>>  What happens if you specify a file path with a leading "/" while you have
>>>>> FallbackResource enabled?
>>>>>>  $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>>>>  Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect
>> your
>>>>> Apache logs?
>>>>>>  --steve
>>>>>>   On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>
>>>>>>> Apache/2.2.26
>>>>>>> On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder <[hidden email]>
>>>>> wrote:
>>>>>>>
>>>>>>>> Local Apache version?
>>>>>>>> --steve
>>>>>>>> On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>>
>>>>>>>>> A while back I switched my apache conf to use Fallback Resource (on my local dev
>>>>>>> machine)
>>>>>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>>>>> immediately started getting errors with a bit of code that relies on file_exists.
>> With
>>>>>>> a
>>>>>>>>> little investigating I think I have the error isolated, but have no clue on how
>> to
>>>>> fix  it!
>>>>>>>>> Running in LP8.6 on Mac OSX.9.5
>>>>>>>>> Simple code:
>>>>>>>>> <?lassoScript
>>>>>>>>> inline($authInfo_file, -nothing);
>>>>>>>>>   $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>>>>> /_images/_products/pc_8slt.jpg<br>';
>>>>>>>>>  $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>>>>> /inline;
>>>>>>>>> ?>
>>>>>>>>> With FallBack Resource as part of the conf file, both the above statements return
>>>>>>> true:
>>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>>> true: xxx.jpg
>>>>>>>>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>>> false: xxx.jpg
>>>>>>>>> Any ideas on how to fix this?
>>>>>>>>> Marc Pinnell
>>>>>>>>> 1027 Design
>>>>>>>>> PO Box 990872
>>>>>>>>> Redding, CA 96099-0872
>>>>>>>>> 530.941.4706
>>>>>>>>> fax: 866.232.5300
>>>>>>>>> www.1027Design.com
>>>>>>>>> #############################################################
>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>> #############################################################
>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>> Marc Pinnell
>>>>>>> 1027 Design
>>>>>>> PO Box 990872
>>>>>>> Redding, CA 96099-0872
>>>>>>> 530.941.4706
>>>>>>> fax: 866.232.5300
>>>>>>> www.1027Design.com
>>>>>>>  #############################################################
>>>>>>> This message is sent to you because you are subscribed to
>>>>>>> the mailing list Lasso [hidden email]
>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>   #############################################################
>>>>>>  This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>>  Marc Pinnell
>>>>> 1027 Design
>>>>> PO Box 990872
>>>>> Redding, CA 96099-0872
>>>>> 530.941.4706
>>>>> fax: 866.232.5300
>>>>> www.1027Design.com
>>>>>    #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>> Steve Piercy              Website Builder              Soquel, CA
>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>   #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
On 12/16/14 at 1:15 PM, [hidden email] (Marc
Pinnell) pronounced:

>Aha! See the last part of the L8 conf file below. Is this what you asked about before?

...

>########################################################################
>#     Following is necessary to accomplish Clean URLs in L8 without atBegin
>########################################################################
># If REQUEST_URI environment variable matches the regular expression (.*)
># then set an environment variable X-REQUEST-URI to the value captured by
># the regular expression
>SetEnvIf REQUEST_URI (.*) X-REQUEST-URI=$1
># Set a RequestHeader to the environment variable we just set
>RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e

Yes.

>>>>>>>  Do you have any overriding Apache config stuff that sets or unsets request
>headers?

http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/#configure-virtual-hosts
"choose one of the following implementations, and insert the
corresponding Apache configuration directives into your
***virtual host*** configuration."

...and not server-wide.

Try that and let me know.  If it still does not work, then I'll
try to replicate the issue locally.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
In reply to this post by Marc Pinnell-3
OK, so in the file that you use for FallbackResource, it
includes another file.  See line 18:
http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/#id3

In that file (in my case "index.lasso") put this code:

[file_read('/foo.txt')]

...where foo.txt does not exist on the file system.

See something interesting?  It appears that file_* tags (or at
least file_exist and file_read) ignore the filepath argument and
fallback to the default file when it does not exist.  Wow,
that's a neato Catch-22!

I don't know how to fix that yet, but I reckon it would be some
Apache stuff as I describe about setting request headers in the
introduction of that article.  We might need to add something to
ignore subrequests.

But for me, I'd say screw it, and use the trusty old clean URL
method for Lasso 8.

--steve


On 12/16/14 at 1:15 PM, [hidden email] (Marc
Pinnell) pronounced:

>Aha! See the last part of the L8 conf file below. Is this what you asked about before?
>
>
>
>L9 site that works:
>####================ SO CAL SOCCER =========================
><VirtualHost *:80>
>ServerName scsoccer.test
>DocumentRoot /Library/WebServer/Documents/SoCalHSSoccer/_site2014
>Include /private/etc/apache2/other/mod_lasso9.conf
>FallbackResource /_config/_start.lasso
></VirtualHost>
>
>
>L8 that doesn't:
>###=============== REFLECT ADDRESS ==========================
><VirtualHost *:80>
>ServerName reflectaddress.test
>DocumentRoot /Library/WebServer/Documents/reflectaddress/_Site/__MainSite
>Include /private/etc/apache2/other/lasso8.conf
>FallbackResource /_config/_start.lasso
></VirtualHost>
>
>
>
>#
># This is the Apache 2 configuration file for Lasso 9
># Mac OS X 10.6/10.7
>#
>
><IfModule !lasso9_module>
>LoadModule lasso9_module libexec/apache2/mod_lasso9.so
></IfModule>
>
># all LassoApps routed through here
><Location /lasso9>
>SetHandler lasso9-handler
>Order allow,deny
>Allow from all
></Location>
>
># instance manager administrative facilities can be disabled by commenting this out
><Location /lasso9/instancemanager>
>SetHandler lasso9-instancemanager
>Order allow,deny
>Allow from all
></Location>
>
><Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
>SetHandler lasso9-handler
></Location>
>
>
>
>L8:
><Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
>SetHandler lasso8-handler
></Location>
>
><Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo][Aa][Pp][Pp]$">
>SetHandler lasso8-handler
></Location>
>
>
>########################################################################
>#     Following is necessary to accomplish Clean URLs in L8 without atBegin
>########################################################################
># If REQUEST_URI environment variable matches the regular expression (.*)
># then set an environment variable X-REQUEST-URI to the value captured by
># the regular expression
>SetEnvIf REQUEST_URI (.*) X-REQUEST-URI=$1
># Set a RequestHeader to the environment variable we just set
>RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e
>
>
>On Dec 16, 2014, at 1:00 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
>>But the problem site has L8 on it, right?
>>
>>This smells like you have something different between the two Apache configs for the
>virtual hosts, or something overriding in the global Apache
>config.  Better brew another pot of coffee.  :/
>>
>>--steve
>>
>>
>>On 12/16/14 at 12:50 PM, [hidden email] (Marc Pinnell) pronounced:
>>
>>> I moved just the testing code (and the one real image) over to LP9 site using FallBack
>Resource and it works as expected.
>>>   $__HTML_REPLY__ += file_exists('/pc_8slt.jpg')+': /pc_8slt.jpg<br>';
>>> $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>   true: /pc_8slt.jpg
>>> false: xxx.jpg
>>>   marc
>>>    On Dec 16, 2014, at 12:43 PM, Marc Pinnell
>>><[hidden email]> wrote:
>>>
>>>> The page with the FallBack is a page in the site, hence all the other requests. I
>could
>>> strip it down to just the one request I guess.
>>>>   marc
>>>>    On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website
>>>>Builder <[hidden email]>
>>> wrote:
>>>>
>>>>> With the four lines of Lasso code you originally provided, how do you get all these
>>> log entries?
>>>>>  The OPTIONS request is weird.
>>>>>  --steve
>>>>>   On 12/16/14 at 12:36 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>
>>>>>> No change adding the "/":
>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>> true: /xxx.jpg
>>>>>>  No other changes headers that I can think of.
>>>>>>  Apache Error logs:
>>>>>> [Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit
>>> SSLMutex
>>>>>>  Access Log:
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/
>>> HTTP/1.1" 200 4117
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200
>>> 4100
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_CMS_Common_v3/_css/prettyPhoto.css
>>> HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js
>>> HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_pgBkgd.jpg
>>> HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_pgHead.png
>>> HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_maHead.png
>>> HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>/_images/_pgElements/site_maBkgd.png
>>> HTTP/1.1" 304 -
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>>> ::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>>>>>     On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder
><[hidden email]>
>>> wrote:
>>>>>>
>>>>>>> Is the Apache config the only change you made?
>>>>>>>  Do you have any overriding Apache config stuff that sets or unsets request
>headers?
>>>>>>>  What happens if you specify a file path with a leading "/" while you have
>>>>>> FallbackResource enabled?
>>>>>>>  $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>>>>>  Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect
>>> your
>>>>>> Apache logs?
>>>>>>>  --steve
>>>>>>>   On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>
>>>>>>>> Apache/2.2.26
>>>>>>>> On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder
><[hidden email]>
>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Local Apache version?
>>>>>>>>> --steve
>>>>>>>>> On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>>>
>>>>>>>>>> A while back I switched my apache conf to use Fallback Resource (on my local
>dev
>>>>>>>> machine)
>>>>>>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>>>>>> immediately started getting errors with a bit of code that relies on file_exists.
>>> With
>>>>>>>> a
>>>>>>>>>> little investigating I think I have the error isolated, but have no clue on how
>>> to
>>>>>> fix  it!
>>>>>>>>>> Running in LP8.6 on Mac OSX.9.5
>>>>>>>>>> Simple code:
>>>>>>>>>> <?lassoScript
>>>>>>>>>> inline($authInfo_file, -nothing);
>>>>>>>>>>   $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>>>>>> /_images/_products/pc_8slt.jpg<br>';
>>>>>>>>>>  $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>>>>>> /inline;
>>>>>>>>>> ?>
>>>>>>>>>> With FallBack Resource as part of the conf file, both the above statements
>return
>>>>>>>> true:
>>>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>>>> true: xxx.jpg
>>>>>>>>>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>>>> false: xxx.jpg
>>>>>>>>>> Any ideas on how to fix this?
>>>>>>>>>> Marc Pinnell
>>>>>>>>>> 1027 Design
>>>>>>>>>> PO Box 990872
>>>>>>>>>> Redding, CA 96099-0872
>>>>>>>>>> 530.941.4706
>>>>>>>>>> fax: 866.232.5300
>>>>>>>>>> www.1027Design.com
>>>>>>>>>> #############################################################
>>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>>> #############################################################
>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>> Marc Pinnell
>>>>>>>> 1027 Design
>>>>>>>> PO Box 990872
>>>>>>>> Redding, CA 96099-0872
>>>>>>>> 530.941.4706
>>>>>>>> fax: 866.232.5300
>>>>>>>> www.1027Design.com
>>>>>>>>  #############################################################
>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>   #############################################################
>>>>>>>  This message is sent to you because you are subscribed to
>>>>>>> the mailing list Lasso [hidden email]
>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>  Marc Pinnell
>>>>>> 1027 Design
>>>>>> PO Box 990872
>>>>>> Redding, CA 96099-0872
>>>>>> 530.941.4706
>>>>>> fax: 866.232.5300
>>>>>> www.1027Design.com
>>>>>>    #############################################################
>>>>>>  This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>   #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>     #############################################################
>>>>   This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>   Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>     #############################################################
>>>   This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Soquel, CA
>><[hidden email]>               <http://www.StevePiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

stevepiercy
After further thought and testing, I'm pretty sure that
FallbackResource does not work with the file_* tags in Lasso 8.6.

To reproduce, follow all the configuration steps outlined in my article:
http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/#fallbackresource-for-lasso-8

http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/#id3

And insert this line of code in /path/to/web/root/index.lasso at
line 12.

[file_read('/foo.txt')]

I get the contents of _urlhandler.lasso.

The only explanation I can come up with is that Lasso 8's
[file_*] tags do a subrequest to Apache instead of the local
file system, which in turn uses FallbackResource to say "use
/_urlhandler.lasso instead of the file that you requested and
does not exist".  I know of no way of verifying this, unfortunately.

A workaround would be to drop into os_process.  Here's a
substitution for file_exists.

test -e /path/to/file/foo.txt && echo "True" || echo "False"

However it's a string and not a boolean that gets returned, so
you will need to handle the response accordingly.

I'm not inclined to submit a bug report, but you're welcome to
do so if you want to pursue FallbackResource with Lasso 8.

--steve


On 12/16/14 at 2:00 PM, [hidden email] (Steve Piercy -
Website Builder) pronounced:

>OK, so in the file that you use for FallbackResource, it includes another file.  See line 18:
>http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-
>variables/#id3
>
>In that file (in my case "index.lasso") put this code:
>
>[file_read('/foo.txt')]
>
>...where foo.txt does not exist on the file system.
>
>See something interesting?  It appears that file_* tags (or at
>least file_exist and file_read) ignore the filepath argument
>and fallback to the default file when it does not exist.  Wow,
>that's a neato Catch-22!
>
>I don't know how to fix that yet, but I reckon it would be some
>Apache stuff as I describe about setting request headers in the
>introduction of that article.  We might need to add something
>to ignore subrequests.
>
>But for me, I'd say screw it, and use the trusty old clean URL method for Lasso 8.
>
>--steve
>
>
>On 12/16/14 at 1:15 PM, [hidden email] (Marc Pinnell) pronounced:
>
>>Aha! See the last part of the L8 conf file below. Is this what you asked about before?
>>
>>
>>
>>L9 site that works:
>>####================ SO CAL SOCCER =========================
>><VirtualHost *:80>
>>ServerName scsoccer.test
>>DocumentRoot /Library/WebServer/Documents/SoCalHSSoccer/_site2014
>>Include /private/etc/apache2/other/mod_lasso9.conf
>>FallbackResource /_config/_start.lasso
>></VirtualHost>
>>
>>
>>L8 that doesn't:
>>###=============== REFLECT ADDRESS ==========================
>><VirtualHost *:80>
>>ServerName reflectaddress.test
>>DocumentRoot /Library/WebServer/Documents/reflectaddress/_Site/__MainSite
>>Include /private/etc/apache2/other/lasso8.conf
>>FallbackResource /_config/_start.lasso
>></VirtualHost>
>>
>>
>>
>>#
>># This is the Apache 2 configuration file for Lasso 9
>># Mac OS X 10.6/10.7
>>#
>>
>><IfModule !lasso9_module>
>>LoadModule lasso9_module libexec/apache2/mod_lasso9.so
>></IfModule>
>>
>># all LassoApps routed through here
>><Location /lasso9>
>>SetHandler lasso9-handler
>>Order allow,deny
>>Allow from all
>></Location>
>>
>># instance manager administrative facilities can be disabled by commenting this out
>><Location /lasso9/instancemanager>
>>SetHandler lasso9-instancemanager
>>Order allow,deny
>>Allow from all
>></Location>
>>
>><Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
>>SetHandler lasso9-handler
>></Location>
>>
>>
>>
>>L8:
>><Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
>>SetHandler lasso8-handler
>></Location>
>>
>><Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo][Aa][Pp][Pp]$">
>>SetHandler lasso8-handler
>></Location>
>>
>>
>>########################################################################
>>#     Following is necessary to accomplish Clean URLs in L8 without atBegin
>>########################################################################
>># If REQUEST_URI environment variable matches the regular expression (.*)
>># then set an environment variable X-REQUEST-URI to the value captured by
>># the regular expression
>>SetEnvIf REQUEST_URI (.*) X-REQUEST-URI=$1
>># Set a RequestHeader to the environment variable we just set
>>RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e
>>
>>
>>On Dec 16, 2014, at 1:00 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>>But the problem site has L8 on it, right?
>>>
>>>This smells like you have something different between the two Apache configs for the
>>virtual hosts, or something overriding in the global Apache
>>config.  Better brew another pot of coffee.  :/
>>>
>>>--steve
>>>
>>>
>>>On 12/16/14 at 12:50 PM, [hidden email] (Marc Pinnell) pronounced:
>>>
>>>>I moved just the testing code (and the one real image) over to LP9 site using FallBack
>>Resource and it works as expected.
>>>>  $__HTML_REPLY__ += file_exists('/pc_8slt.jpg')+': /pc_8slt.jpg<br>';
>>>>$__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>  true: /pc_8slt.jpg
>>>>false: xxx.jpg
>>>>  marc
>>>>    On Dec 16, 2014, at 12:43 PM, Marc Pinnell
>>>><[hidden email]> wrote:
>>>>
>>>>>The page with the FallBack is a page in the site, hence all the other requests. I
>>could
>>>>strip it down to just the one request I guess.
>>>>>  marc
>>>>>    On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website
>>>>>Builder <[hidden email]>
>>>>wrote:
>>>>>
>>>>>>With the four lines of Lasso code you originally provided, how do you get all these
>>>>log entries?
>>>>>> The OPTIONS request is weird.
>>>>>> --steve
>>>>>>  On 12/16/14 at 12:36 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>
>>>>>>>No change adding the "/":
>>>>>>>true: /_images/_products/pc_8slt.jpg
>>>>>>>true: /xxx.jpg
>>>>>>> No other changes headers that I can think of.
>>>>>>> Apache Error logs:
>>>>>>>[Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit
>>>>SSLMutex
>>>>>>> Access Log:
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/
>>>>HTTP/1.1" 200 4117
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>/_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200
>>>>4100
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>/_CMS_Common_v3/_css/prettyPhoto.css
>>>>HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>/_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js
>>>>HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>/_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>/_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>/_images/_pgElements/site_pgBkgd.jpg
>>>>HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>/_images/_pgElements/site_pgHead.png
>>>>HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>/_images/_pgElements/site_maHead.png
>>>>HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>/_images/_pgElements/site_maBkgd.png
>>>>HTTP/1.1" 304 -
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>>>>127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>>>>::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>>>>>>    On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder
>><[hidden email]>
>>>>wrote:
>>>>>>>
>>>>>>>>Is the Apache config the only change you made?
>>>>>>>> Do you have any overriding Apache config stuff that sets or unsets request
>>headers?
>>>>>>>> What happens if you specify a file path with a leading "/" while you have
>>>>>>>FallbackResource enabled?
>>>>>>>> $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>>>>>> Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect
>>>>your
>>>>>>>Apache logs?
>>>>>>>> --steve
>>>>>>>>  On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>>
>>>>>>>>>Apache/2.2.26
>>>>>>>>>On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder
>><[hidden email]>
>>>>>>>wrote:
>>>>>>>>>
>>>>>>>>>>Local Apache version?
>>>>>>>>>>--steve
>>>>>>>>>>On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>>>>
>>>>>>>>>>>A while back I switched my apache conf to use Fallback Resource (on my local
>>dev
>>>>>>>>>machine)
>>>>>>>>>>>for my "clean URL" sites. Today I had to make some changes on an older site. I
>>>>>>>immediately started getting errors with a bit of code that relies on file_exists.
>>>>With
>>>>>>>>>a
>>>>>>>>>>>little investigating I think I have the error isolated, but have no clue on how
>>>>to
>>>>>>>fix  it!
>>>>>>>>>>>Running in LP8.6 on Mac OSX.9.5
>>>>>>>>>>>Simple code:
>>>>>>>>>>><?lassoScript
>>>>>>>>>>>inline($authInfo_file, -nothing);
>>>>>>>>>>>  $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>>>>>>>/_images/_products/pc_8slt.jpg<br>';
>>>>>>>>>>> $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>>>>>>>/inline;
>>>>>>>>>>>?>
>>>>>>>>>>>With FallBack Resource as part of the conf file, both the above statements
>>return
>>>>>>>>>true:
>>>>>>>>>>>true: /_images/_products/pc_8slt.jpg
>>>>>>>>>>>true: xxx.jpg
>>>>>>>>>>>Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>>>>>>>true: /_images/_products/pc_8slt.jpg
>>>>>>>>>>>false: xxx.jpg
>>>>>>>>>>>Any ideas on how to fix this?
>>>>>>>>>>>Marc Pinnell
>>>>>>>>>>>1027 Design
>>>>>>>>>>>PO Box 990872
>>>>>>>>>>>Redding, CA 96099-0872
>>>>>>>>>>>530.941.4706
>>>>>>>>>>>fax: 866.232.5300
>>>>>>>>>>>www.1027Design.com
>>>>>>>>>>>#############################################################
>>>>>>>>>>>This message is sent to you because you are subscribed to
>>>>>>>>>>>the mailing list Lasso [hidden email]
>>>>>>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>>>Send administrative queries to  <[hidden email]>
>>>>>>>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>>>>>Steve Piercy              Website Builder              Soquel, CA
>>>>>>>>>><[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>>>>#############################################################
>>>>>>>>>>This message is sent to you because you are subscribed to
>>>>>>>>>>the mailing list Lasso [hidden email]
>>>>>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>>Send administrative queries to  <[hidden email]>
>>>>>>>>>Marc Pinnell
>>>>>>>>>1027 Design
>>>>>>>>>PO Box 990872
>>>>>>>>>Redding, CA 96099-0872
>>>>>>>>>530.941.4706
>>>>>>>>>fax: 866.232.5300
>>>>>>>>>www.1027Design.com
>>>>>>>>> #############################################################
>>>>>>>>>This message is sent to you because you are subscribed to
>>>>>>>>>the mailing list Lasso [hidden email]
>>>>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>Send administrative queries to  <[hidden email]>
>>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>>>Steve Piercy              Website Builder              Soquel, CA
>>>>>>>><[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>>  #############################################################
>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>the mailing list Lasso [hidden email]
>>>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>Send administrative queries to  <[hidden email]>
>>>>>>> Marc Pinnell
>>>>>>>1027 Design
>>>>>>>PO Box 990872
>>>>>>>Redding, CA 96099-0872
>>>>>>>530.941.4706
>>>>>>>fax: 866.232.5300
>>>>>>>www.1027Design.com
>>>>>>>   #############################################################
>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>the mailing list Lasso [hidden email]
>>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>Send administrative queries to  <[hidden email]>
>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>Steve Piercy              Website Builder              Soquel, CA
>>>>>><[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>  #############################################################
>>>>>> This message is sent to you because you are subscribed to
>>>>>>the mailing list Lasso [hidden email]
>>>>>>Official list archives available at http://www.lassotalk.com
>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>Send administrative queries to  <[hidden email]>
>>>>>  Marc Pinnell
>>>>>1027 Design
>>>>>PO Box 990872
>>>>>Redding, CA 96099-0872
>>>>>530.941.4706
>>>>>fax: 866.232.5300
>>>>>www.1027Design.com
>>>>>    #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>>the mailing list Lasso [hidden email]
>>>>>Official list archives available at http://www.lassotalk.com
>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>Send administrative queries to  <[hidden email]>
>>>>  Marc Pinnell
>>>>1027 Design
>>>>PO Box 990872
>>>>Redding, CA 96099-0872
>>>>530.941.4706
>>>>fax: 866.232.5300
>>>>www.1027Design.com
>>>>    #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>>the mailing list Lasso [hidden email]
>>>>Official list archives available at http://www.lassotalk.com
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>
>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>Steve Piercy              Website Builder              Soquel, CA
>>><[hidden email]>               <http://www.StevePiercy.com/>
>>>
>>>
>>>#############################################################
>>>
>>>This message is sent to you because you are subscribed to
>>>the mailing list Lasso [hidden email]
>>>Official list archives available at http://www.lassotalk.com
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>
>>Marc Pinnell
>>1027 Design
>>PO Box 990872
>>Redding, CA 96099-0872
>>530.941.4706
>>fax: 866.232.5300
>>www.1027Design.com
>>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy              Website Builder              Soquel, CA
><[hidden email]>               <http://www.StevePiercy.com/>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Fallback Resource and file_exists / LP8.6

Marc Pinnell-3
Thanks for chasing this. Seems like kind of a fringe case and not really appropriate for a bug report. This is just an old site, and since the problem doesn't repeat in L9, seems pointless to report.

Thanks again,

Marc


On Dec 17, 2014, at 4:00 AM, Steve Piercy - Website Builder <[hidden email]> wrote:

> After further thought and testing, I'm pretty sure that FallbackResource does not work with the file_* tags in Lasso 8.6.
>
> To reproduce, follow all the configuration steps outlined in my article:
> http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/#fallbackresource-for-lasso-8
>
> http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/#id3
>
> And insert this line of code in /path/to/web/root/index.lasso at line 12.
>
> [file_read('/foo.txt')]
>
> I get the contents of _urlhandler.lasso.
>
> The only explanation I can come up with is that Lasso 8's [file_*] tags do a subrequest to Apache instead of the local file system, which in turn uses FallbackResource to say "use /_urlhandler.lasso instead of the file that you requested and does not exist".  I know of no way of verifying this, unfortunately.
>
> A workaround would be to drop into os_process.  Here's a substitution for file_exists.
>
> test -e /path/to/file/foo.txt && echo "True" || echo "False"
>
> However it's a string and not a boolean that gets returned, so you will need to handle the response accordingly.
>
> I'm not inclined to submit a bug report, but you're welcome to do so if you want to pursue FallbackResource with Lasso 8.
>
> --steve
>
>
> On 12/16/14 at 2:00 PM, [hidden email] (Steve Piercy - Website Builder) pronounced:
>
>> OK, so in the file that you use for FallbackResource, it includes another file.  See line 18:
>> http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-
>> variables/#id3
>>
>> In that file (in my case "index.lasso") put this code:
>>
>> [file_read('/foo.txt')]
>>
>> ...where foo.txt does not exist on the file system.
>>
>> See something interesting?  It appears that file_* tags (or at least file_exist and file_read) ignore the filepath argument and fallback to the default file when it does not exist.  Wow, that's a neato Catch-22!
>>
>> I don't know how to fix that yet, but I reckon it would be some Apache stuff as I describe about setting request headers in the introduction of that article.  We might need to add something to ignore subrequests.
>>
>> But for me, I'd say screw it, and use the trusty old clean URL method for Lasso 8.
>>
>> --steve
>>
>>
>> On 12/16/14 at 1:15 PM, [hidden email] (Marc Pinnell) pronounced:
>>
>>> Aha! See the last part of the L8 conf file below. Is this what you asked about before?
>>>
>>>
>>>
>>> L9 site that works:
>>> ####================ SO CAL SOCCER =========================
>>> <VirtualHost *:80>
>>> ServerName scsoccer.test
>>> DocumentRoot /Library/WebServer/Documents/SoCalHSSoccer/_site2014
>>> Include /private/etc/apache2/other/mod_lasso9.conf
>>> FallbackResource /_config/_start.lasso
>>> </VirtualHost>
>>>
>>>
>>> L8 that doesn't:
>>> ###=============== REFLECT ADDRESS ==========================
>>> <VirtualHost *:80>
>>> ServerName reflectaddress.test
>>> DocumentRoot /Library/WebServer/Documents/reflectaddress/_Site/__MainSite
>>> Include /private/etc/apache2/other/lasso8.conf
>>> FallbackResource /_config/_start.lasso
>>> </VirtualHost>
>>>
>>>
>>>
>>> #
>>> # This is the Apache 2 configuration file for Lasso 9
>>> # Mac OS X 10.6/10.7
>>> #
>>>
>>> <IfModule !lasso9_module>
>>> LoadModule lasso9_module libexec/apache2/mod_lasso9.so
>>> </IfModule>
>>>
>>> # all LassoApps routed through here
>>> <Location /lasso9>
>>> SetHandler lasso9-handler
>>> Order allow,deny
>>> Allow from all
>>> </Location>
>>>
>>> # instance manager administrative facilities can be disabled by commenting this out
>>> <Location /lasso9/instancemanager>
>>> SetHandler lasso9-instancemanager
>>> Order allow,deny
>>> Allow from all
>>> </Location>
>>>
>>> <Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
>>> SetHandler lasso9-handler
>>> </Location>
>>>
>>>
>>>
>>> L8:
>>> <Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo]$">
>>> SetHandler lasso8-handler
>>> </Location>
>>>
>>> <Location ~ "^.*\.[Ll][Aa][Ss][Ss][Oo][Aa][Pp][Pp]$">
>>> SetHandler lasso8-handler
>>> </Location>
>>>
>>>
>>> ########################################################################
>>> #     Following is necessary to accomplish Clean URLs in L8 without atBegin
>>> ########################################################################
>>> # If REQUEST_URI environment variable matches the regular expression (.*)
>>> # then set an environment variable X-REQUEST-URI to the value captured by
>>> # the regular expression
>>> SetEnvIf REQUEST_URI (.*) X-REQUEST-URI=$1
>>> # Set a RequestHeader to the environment variable we just set
>>> RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e
>>>
>>>
>>> On Dec 16, 2014, at 1:00 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>>
>>>> But the problem site has L8 on it, right?
>>>>
>>>> This smells like you have something different between the two Apache configs for the
>>> virtual hosts, or something overriding in the global Apache config.  Better brew another pot of coffee.  :/
>>>>
>>>> --steve
>>>>
>>>>
>>>> On 12/16/14 at 12:50 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>
>>>>> I moved just the testing code (and the one real image) over to LP9 site using FallBack
>>> Resource and it works as expected.
>>>>> $__HTML_REPLY__ += file_exists('/pc_8slt.jpg')+': /pc_8slt.jpg<br>';
>>>>> $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>> true: /pc_8slt.jpg
>>>>> false: xxx.jpg
>>>>> marc
>>>>>   On Dec 16, 2014, at 12:43 PM, Marc Pinnell <[hidden email]> wrote:
>>>>>
>>>>>> The page with the FallBack is a page in the site, hence all the other requests. I
>>> could
>>>>> strip it down to just the one request I guess.
>>>>>> marc
>>>>>>   On Dec 16, 2014, at 12:41 PM, Steve Piercy - Website Builder <[hidden email]>
>>>>> wrote:
>>>>>>
>>>>>>> With the four lines of Lasso code you originally provided, how do you get all these
>>>>> log entries?
>>>>>>> The OPTIONS request is weird.
>>>>>>> --steve
>>>>>>> On 12/16/14 at 12:36 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>
>>>>>>>> No change adding the "/":
>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>> true: /xxx.jpg
>>>>>>>> No other changes headers that I can think of.
>>>>>>>> Apache Error logs:
>>>>>>>> [Tue Dec 16 12:31:59 2014] [warn] (2)No such file or directory: Cannot reinit
>>>>> SSLMutex
>>>>>>>> Access Log:
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /Shopping+Cart/Products/Post+Caps/
>>>>> HTTP/1.1" 200 4117
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>> /_CMS_Common_v3/_css/resetandcommon.min.css HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_css/sitestyles.css HTTP/1.1" 200
>>>>> 4100
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_CMS_Common_v3/_css/prettyPhoto.css
>>>>> HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>> /_CMS_Common_v3/_scripts/jquery.prettyPhoto.js HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET /_scripts/jquery.cycle.min.js
>>>>> HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>> /_CMS_Common_v3/_scripts/jquery.min.js HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>>>> /_images/_pgElements/sidebarNumbers.png HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_images/_pgElements/site_pgBkgd.jpg
>>>>> HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_images/_pgElements/site_pgHead.png
>>>>> HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_images/_pgElements/site_maHead.png
>>>>> HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:58 -0800] "GET
>>> /_images/_pgElements/site_maBkgd.png
>>>>> HTTP/1.1" 304 -
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>>>>> 127.0.0.1 - - [16/Dec/2014:12:31:59 -0800] "GET /favicon.ico HTTP/1.1" 200 4955
>>>>>>>> ::1 - - [16/Dec/2014:12:32:06 -0800] "OPTIONS * HTTP/1.0" 200 -
>>>>>>>>   On Dec 16, 2014, at 12:28 PM, Steve Piercy - Website Builder
>>> <[hidden email]>
>>>>> wrote:
>>>>>>>>
>>>>>>>>> Is the Apache config the only change you made?
>>>>>>>>> Do you have any overriding Apache config stuff that sets or unsets request
>>> headers?
>>>>>>>>> What happens if you specify a file path with a leading "/" while you have
>>>>>>>> FallbackResource enabled?
>>>>>>>>> $__HTML_REPLY__ += file_exists('/xxx.jpg')+': xxx.jpg<br>';
>>>>>>>>> Finally, I wonder if there is some kind of redirect, error, etc.  Did you inspect
>>>>> your
>>>>>>>> Apache logs?
>>>>>>>>> --steve
>>>>>>>>> On 12/16/14 at 12:17 PM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>>>
>>>>>>>>>> Apache/2.2.26
>>>>>>>>>> On Dec 16, 2014, at 12:10 PM, Steve Piercy - Website Builder
>>> <[hidden email]>
>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Local Apache version?
>>>>>>>>>>> --steve
>>>>>>>>>>> On 12/16/14 at 10:23 AM, [hidden email] (Marc Pinnell) pronounced:
>>>>>>>>>>>
>>>>>>>>>>>> A while back I switched my apache conf to use Fallback Resource (on my local
>>> dev
>>>>>>>>>> machine)
>>>>>>>>>>>> for my "clean URL" sites. Today I had to make some changes on an older site. I
>>>>>>>> immediately started getting errors with a bit of code that relies on file_exists.
>>>>> With
>>>>>>>>>> a
>>>>>>>>>>>> little investigating I think I have the error isolated, but have no clue on how
>>>>> to
>>>>>>>> fix  it!
>>>>>>>>>>>> Running in LP8.6 on Mac OSX.9.5
>>>>>>>>>>>> Simple code:
>>>>>>>>>>>> <?lassoScript
>>>>>>>>>>>> inline($authInfo_file, -nothing);
>>>>>>>>>>>> $__HTML_REPLY__ += file_exists('/_images/_products/pc_8slt.jpg')+':
>>>>>>>> /_images/_products/pc_8slt.jpg<br>';
>>>>>>>>>>>> $__HTML_REPLY__ += file_exists('xxx.jpg')+': xxx.jpg<br>';
>>>>>>>>>>>> /inline;
>>>>>>>>>>>> ?>
>>>>>>>>>>>> With FallBack Resource as part of the conf file, both the above statements
>>> return
>>>>>>>>>> true:
>>>>>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>>>>>> true: xxx.jpg
>>>>>>>>>>>> Without the Fallback resource (moved into the base Lasso Site in LP8.6):
>>>>>>>>>>>> true: /_images/_products/pc_8slt.jpg
>>>>>>>>>>>> false: xxx.jpg
>>>>>>>>>>>> Any ideas on how to fix this?
>>>>>>>>>>>> Marc Pinnell
>>>>>>>>>>>> 1027 Design
>>>>>>>>>>>> PO Box 990872
>>>>>>>>>>>> Redding, CA 96099-0872
>>>>>>>>>>>> 530.941.4706
>>>>>>>>>>>> fax: 866.232.5300
>>>>>>>>>>>> www.1027Design.com
>>>>>>>>>>>> #############################################################
>>>>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>>>>> #############################################################
>>>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>>>> Marc Pinnell
>>>>>>>>>> 1027 Design
>>>>>>>>>> PO Box 990872
>>>>>>>>>> Redding, CA 96099-0872
>>>>>>>>>> 530.941.4706
>>>>>>>>>> fax: 866.232.5300
>>>>>>>>>> www.1027Design.com
>>>>>>>>>> #############################################################
>>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>>>> #############################################################
>>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>>> Marc Pinnell
>>>>>>>> 1027 Design
>>>>>>>> PO Box 990872
>>>>>>>> Redding, CA 96099-0872
>>>>>>>> 530.941.4706
>>>>>>>> fax: 866.232.5300
>>>>>>>> www.1027Design.com
>>>>>>>>  #############################################################
>>>>>>>> This message is sent to you because you are subscribed to
>>>>>>>> the mailing list Lasso [hidden email]
>>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>> Steve Piercy              Website Builder              Soquel, CA
>>>>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>>>> #############################################################
>>>>>>> This message is sent to you because you are subscribed to
>>>>>>> the mailing list Lasso [hidden email]
>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>> Marc Pinnell
>>>>>> 1027 Design
>>>>>> PO Box 990872
>>>>>> Redding, CA 96099-0872
>>>>>> 530.941.4706
>>>>>> fax: 866.232.5300
>>>>>> www.1027Design.com
>>>>>>   #############################################################
>>>>>> This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>> Marc Pinnell
>>>>> 1027 Design
>>>>> PO Box 990872
>>>>> Redding, CA 96099-0872
>>>>> 530.941.4706
>>>>> fax: 866.232.5300
>>>>> www.1027Design.com
>>>>>   #############################################################
>>>>> This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>
>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>> Steve Piercy              Website Builder              Soquel, CA
>>>> <[hidden email]>               <http://www.StevePiercy.com/>
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>> Steve Piercy              Website Builder              Soquel, CA
>> <[hidden email]>               <http://www.StevePiercy.com/>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>