Lasso Directive [Hh][Tt][Mm][Ll]

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

Lasso Directive [Hh][Tt][Mm][Ll]

maricel
Hi Everybody!

I have a question and hope any of you can answer...

I have an Apache server and I have added a lasso directive to a .conf file. (only need this lasso directive for this site)... Well, I am having issues with the server every time I edit the conf. file. As soon as I do that, (through Terminal and Pico code) the server behaves ok, but when I need to add a site using the server admin, the server crashes. Then, what fixes the crash is to delete the site / record that I have added the Lasso directive to and then the server starts with no problem.

This is the lasso directive I add.

<Location ~ "^.*\.[Hh][Tt][Mm][Ll]$">
        SetHandler lasso8-handler
</Location>

Do any of  you have an idea why this is happening? or maybe I need to add it in a different file?

Anything helps! Thanks so much!!


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso Directive [Hh][Tt][Mm][Ll]

Tim Taplin
it sounds like your server admin is tripping over the unexpected location directive.

Can you tell us your Os, Apache version, what kind of server admin you are using to add new sites?

Are your sites in the httpd.conf file directly or in an httpd-vhosts.conf file?

I am understanding that you have several sites and only the one site needs the lasso8 handler, so I'm assuming that you have that directive inside the virtual host directive in the conf file?

Hope to be more helpful with more info.

Tim

On Jul 18, 2012, at 12:36 PM, [hidden email] wrote:

> Hi Everybody!
>
> I have a question and hope any of you can answer...
>
> I have an Apache server and I have added a lasso directive to a .conf file. (only need this lasso directive for this site)... Well, I am having issues with the server every time I edit the conf. file. As soon as I do that, (through Terminal and Pico code) the server behaves ok, but when I need to add a site using the server admin, the server crashes. Then, what fixes the crash is to delete the site / record that I have added the Lasso directive to and then the server starts with no problem.
>
> This is the lasso directive I add.
>
> <Location ~ "^.*\.[Hh][Tt][Mm][Ll]$">
>        SetHandler lasso8-handler
> </Location>
>
> Do any of  you have an idea why this is happening? or maybe I need to add it in a different file?
>
> Anything helps! Thanks so much!!
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso Directive [Hh][Tt][Mm][Ll]

maricel
Hi Tim!

Thanks for your response. This is what I have:

OS Server v. 10.5.8
Apache / 2.2.17 (Unix)
my sites are in httpd-vhosts.conf files

The only site I need Lasso to process HTML is being modified (it's site.conf file) to add the lasso8 handler, it works fine until I decide to edit or add a site in the regular Server Admin.

Yes, I have that directive inside the virtual host in it's own .conf file.

Thank you so much!
Reply | Threaded
Open this post in threaded view
|

Re: Lasso Directive [Hh][Tt][Mm][Ll]

Eric Knibbe
In reply to this post by maricel
I've just confirmed this behaviour on Mac OS X Server 10.6.8, albeit with Lasso 9.2.3:

- add the <Location> block to the default .conf file in /etc/apache2/sites and save
- run `sudo apachectl configtest` - returns "Syntax OK"
- add a new site in Server Admin and save
- running `sudo apachectl configtest` now returns "Multiple <Location> arguments not (yet) supported."

Not sure why this is happening, but it can be fixed by using this block instead:

<LocationMatch \.(?i:html)$>
       SetHandler lasso8-handler
</LocationMatch>

Using LocationMatch assumes its argument will be a regular expression, and the ?:i makes the match case-insensitive.
- if you want to have it also handle .htm files, make the "l" optional: <LocationMatch \.(?i:html?)$>
- if you want to capture other suffixes, use the pipe character: <LocationMatch \.(?i:html|css|js)$>
‐‐‐‐‐‐‐‐‐‐✂‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Eric3
 

On 2012-07-18, at 2:36 PM, [hidden email] wrote:

> Hi Everybody!
>
> I have a question and hope any of you can answer...
>
> I have an Apache server and I have added a lasso directive to a .conf file. (only need this lasso directive for this site)... Well, I am having issues with the server every time I edit the conf. file. As soon as I do that, (through Terminal and Pico code) the server behaves ok, but when I need to add a site using the server admin, the server crashes. Then, what fixes the crash is to delete the site / record that I have added the Lasso directive to and then the server starts with no problem.
>
> This is the lasso directive I add.
>
> <Location ~ "^.*\.[Hh][Tt][Mm][Ll]$">
>        SetHandler lasso8-handler
> </Location>
>
> Do any of  you have an idea why this is happening? or maybe I need to add it in a different file?
>
> Anything helps! Thanks so much!!
>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso Directive [Hh][Tt][Mm][Ll]

maricel
In reply to this post by maricel
Thank you Eric3! It works!! I am still using Lasso 8.6 but using the <LocationMatch> worked like a charm! :)


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso Directive [Hh][Tt][Mm][Ll]

maricel
In reply to this post by maricel
Thank you Eric3! It works!! I am still using Lasso 8.6 but using the <LocationMatch> worked like a charm! :)


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>