Re: httpd location question

2024-03-11 Thread Alexis

Michael Hekeler  writes:


Is there any directive or regex for the 'location' directive,


httpd doesn't support regular expressions.
httpd includes lua pattern support.
see patterns(7)


(Though to use patterns(7) syntax, one needs to use the 'match' 
keyword, e.g. "location match" rather than just "location". In the 
latter case, shell globbing rules are used.)



Alexis.



Re: httpd location question

2024-03-11 Thread Michael Hekeler
> Is there any directive or regex for the 'location' directive,

httpd doesn't support regular expressions.
httpd includes lua pattern support.
see patterns(7)



httpd location question

2024-03-08 Thread Mark
Hi,

In httpd, my web portal gives an HTTP 404 error when 'mysite.com/create' is
typed,
however 'mysite.com/create/' works.

In order to *solve* this issue, I added 2 different locations pointing to
the same cgi script, as:

location "/create" {
fastcgi socket "/var/www/run/slowcgi.sock"
root "/usr/local/lib/mailman/cgi-bin/create"
request strip 1
}

location "/create/*" {
fastcgi socket "/var/www/run/slowcgi.sock"
root "/usr/local/lib/mailman/cgi-bin/create"
request strip 1
}

I have lots of cgi and the httpd.conf would grow a lot,

Thus, wondering how to make both way (with ending '/' and without) to work
in a single location?

Is there any directive or regex for the 'location' directive,
so that both requests for '/create' and '/create/' would work?

Best wishes,
Mark.