Welcome! Log In Create A New Profile

Advanced

Re: Fetching a string by parsing URL

Francis Daly
July 24, 2015 06:54PM
On Thu, Jul 23, 2015 at 03:32:26PM -0400, sudharshanr wrote:

Hi there?

> For some reason, I'm getting it as null. This is my config file:

What, specifically, are you getting as null? What response do you see
that you do not want to see?


If you make a request for /path1/one?name=two, what response do you want?

Is it http 503 with the content of the file /Desktop/error5x.html,
or something else?

Where does "one" and "two" come into the response that you want to get?


> However, if I update the location directive as below:
>
> location ~*/error5x.html? {
> alias /Desktop/error5x.html?name=$arg_name&path=$last_path;
> }
>
> I get a file not found error.

Yes; that is what you have told nginx to do. (Unless you have a file with
a name like /Desktop/error5x.html?name=two&path=one, which you probably
do not.)

If you can describe what you want to have happen, perhaps someone can
tell you how to tell nginx to get that to happen.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Fetching a string by parsing URL

sudharshanr July 22, 2015 12:43AM

Re: Fetching a string by parsing URL

Edho Arief July 22, 2015 12:56AM

Re: Fetching a string by parsing URL

sudharshanr July 22, 2015 02:17AM

Re: Fetching a string by parsing URL

unclepieman July 22, 2015 08:22AM

Re: Fetching a string by parsing URL

sudharshanr July 22, 2015 01:08PM

Re: Fetching a string by parsing URL

Edho Arief July 22, 2015 02:14PM

Re: Fetching a string by parsing URL

sudharshanr July 22, 2015 07:31PM

Re: Fetching a string by parsing URL

sudharshanr July 23, 2015 02:36PM

Re: Fetching a string by parsing URL

sudharshanr July 23, 2015 03:32PM

Re: Fetching a string by parsing URL

Francis Daly July 24, 2015 06:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready