Using Apache Alias directive with Lasso 9

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

Using Apache Alias directive with Lasso 9

Anibal Escobar
Hello everyone,  I’m trying to set up a server using Lasso 9.3 and CentOS with 2 virtual hosts.  Both of these virtual hosts are included in the Instance Hosts settings in the Instance manager.  I can reach the page domain1.com/test/test.lasso without an error.  In domain2.com I’ve included the following Alias Directive in the .conf file:

Alias "/test" “/path/to/domain1/htmll/test”

But when I go to domain2.com/test/test.lasso I get a Spitfire error page saying:

Error:  An unhandled failure during a web request
Error Code: 404
Error Message:  The file “/test/test.lasso” was not found

I know my Alias Directive is working correctly because when I go to domain2.com/test/image.gif the image displays correctly.  Can anyone help with this setup?

Thanks,
Anibal Escobar
646 502 8821






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

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: Using Apache Alias directive with Lasso 9

Brad Lindsay
The Alias directive tells Apache where to find the requested file to serve. This is great when Apache is the one responsible for generating a response for the request, but Apache is setup to let Lasso generate the response which it will then serve back out.

You might be able to use SetEnv inside a Location block to set LASSOSERVER_DOCUMENT_ROOT to point to the right directory (I believe it will need the full path). Something like this:

<Location /test/>
        SetEnv LASSOSERVER_DOCUMENT_ROOT /absolute/filesystem/path/to/domain1/html/test/
</Location>


HTH,
Brad

On September 7, 2015 at 8:32:51 AM, Anibal Escobar ([hidden email]) wrote:

> Hello everyone, I’m trying to set up a server using Lasso 9.3 and CentOS with 2 virtual  
> hosts. Both of these virtual hosts are included in the Instance Hosts settings in the  
> Instance manager. I can reach the page domain1.com/test/test.lasso without an error.  
> In domain2.com I’ve included the following Alias Directive in the .conf file:
>  
> Alias "/test" “/path/to/domain1/htmll/test”
>  
> But when I go to domain2.com/test/test.lasso I get a Spitfire error page saying:
>  
> Error: An unhandled failure during a web request
> Error Code: 404
> Error Message: The file “/test/test.lasso” was not found
>  
> I know my Alias Directive is working correctly because when I go to domain2.com/test/image.gif  
> the image displays correctly. Can anyone help with this setup?
>  
> Thanks,
> Anibal Escobar
> 646 502 8821
>  
>  
>  
>  
>  
>  
> #############################################################
>  
> 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:  
> Send administrative queries to  


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

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: Using Apache Alias directive with Lasso 9

Brad Lindsay
On second thought, you may not need the Location directive at all if you use SetEnvIf:

http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif


Brad

On September 7, 2015 at 9:10:05 AM, Brad Lindsay ([hidden email]) wrote:

> The Alias directive tells Apache where to find the requested file to serve. This is great  
> when Apache is the one responsible for generating a response for the request, but Apache  
> is setup to let Lasso generate the response which it will then serve back out.
>  
> You might be able to use SetEnv inside a Location block to set LASSOSERVER_DOCUMENT_ROOT  
> to point to the right directory (I believe it will need the full path). Something like  
> this:
>  
>  
> SetEnv LASSOSERVER_DOCUMENT_ROOT /absolute/filesystem/path/to/domain1/html/test/  
>  
>  
>  
> HTH,
> Brad
>  
> On September 7, 2015 at 8:32:51 AM, Anibal Escobar ([hidden email]) wrote:
> > Hello everyone, I’m trying to set up a server using Lasso 9.3 and CentOS with 2 virtual  
> > hosts. Both of these virtual hosts are included in the Instance Hosts settings in the  
> > Instance manager. I can reach the page domain1.com/test/test.lasso without an error.  
> > In domain2.com I’ve included the following Alias Directive in the .conf file:
> >
> > Alias "/test" “/path/to/domain1/htmll/test”
> >
> > But when I go to domain2.com/test/test.lasso I get a Spitfire error page saying:
> >
> > Error: An unhandled failure during a web request
> > Error Code: 404
> > Error Message: The file “/test/test.lasso” was not found
> >
> > I know my Alias Directive is working correctly because when I go to domain2.com/test/image.gif  
> > the image displays correctly. Can anyone help with this setup?
> >
> > Thanks,
> > Anibal Escobar
> > 646 502 8821
> >
> >
> >
> >
> >
> >
> > #############################################################
> >
> > 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:
> > Send administrative queries to
>  
>  


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

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]>