Re: Bug in handling POST then sending a file back

2024-01-08 Thread Saint Michael
This is for an API, so no browsers are or will be involved. So, I should print binary information from my LUA script? A second question, can I offload receiving a very large zip file to NGINX? I just need to know in my LUA script when it has fully arrived and the name assigned to it. Many thanks fo

Re: Bug in handling POST then sending a file back

2024-01-08 Thread Maxim Dounin
Hello! On Sun, Jan 07, 2024 at 09:41:33PM -0500, Saint Michael wrote: > I am using openresty and nginx. > I send a file to the server, which is a POST operation. Then the > server processes the file and needs to send back a different file. I > try to send a file with ng.exec("/static/file_name")

Custom redirect for one page from https to http with different name.

2024-01-08 Thread James Read
Hi, how would I redirect https://example.com/oldname.php to http://example.com/newname.php Thanks ___ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx serving wrong site

2024-01-08 Thread James Read
On Mon, 8 Jan 2024, 11:34 James Read, wrote: > > > On Mon, 8 Jan 2024, 10:04 Francis Daly, wrote: > >> On Mon, Jan 08, 2024 at 09:49:23AM -0500, James Read wrote: >> > On Mon, 8 Jan 2024, 09:29 Francis Daly, wrote: >> > > On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote: >> >> Hi ther

Re: Nginx serving wrong site

2024-01-08 Thread James Read
On Mon, 8 Jan 2024, 10:04 Francis Daly, wrote: > On Mon, Jan 08, 2024 at 09:49:23AM -0500, James Read wrote: > > On Mon, 8 Jan 2024, 09:29 Francis Daly, wrote: > > > On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote: > > Hi there, > > > > So I'm going to guess that your "server_name" li

Re: Nginx serving wrong site

2024-01-08 Thread Francis Daly
On Mon, Jan 08, 2024 at 09:49:23AM -0500, James Read wrote: > On Mon, 8 Jan 2024, 09:29 Francis Daly, wrote: > > On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote: Hi there, > > So I'm going to guess that your "server_name" line is of the > > form "www.example.com"; and your browser is

Re: Nginx serving wrong site

2024-01-08 Thread James Read
On Mon, 8 Jan 2024, 09:29 Francis Daly, wrote: > On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote: > > Hi there, > > > I literally copied a working configuration. The only changes I made were > > the name of the server and the root to find the files to be served. > > If you're not going

Re: Nginx serving wrong site

2024-01-08 Thread Francis Daly
On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote: Hi there, > I literally copied a working configuration. The only changes I made were > the name of the server and the root to find the files to be served. If you're not going to show a configuration, then anyone who might be able to hel

Re: Nginx serving wrong site

2024-01-08 Thread James Read
I literally copied a working configuration. The only changes I made were the name of the server and the root to find the files to be served. On Mon, 8 Jan 2024, 08:20 Francis Daly, wrote: > On Mon, Jan 08, 2024 at 08:11:21AM -0500, James Read wrote: > > Hi there, > > > My nginx server is serving

Re: Nginx serving wrong site

2024-01-08 Thread Francis Daly
On Mon, Jan 08, 2024 at 08:11:21AM -0500, James Read wrote: Hi there, > My nginx server is serving the wrong site. I found this explanation online > https://www.computerworld.com/article/2987967/why-your-nginx-server-is-responding-with-content-from-the-wrong-site.html > However this explanation d

Nginx serving wrong site

2024-01-08 Thread James Read
My nginx server is serving the wrong site. I found this explanation online https://www.computerworld.com/article/2987967/why-your-nginx-server-is-responding-with-content-from-the-wrong-site.html However this explanation doesn't seem to fit my case as I have a location which nginx should match corre