I am trying to redirect a query string to url and I am using like this but
it is somehow not working. Can somebody help?
rewrite ^/abc/xyz/def.php?Id=13 http://www.example.com/fhu/foo permanent;
rewrite ^/abc/xyz/def.php?Id=14 http://www.example.com/fhu/bar permanent;
Posted at Nginx Forum:
Simply to reduce the attack surface, I would not use PHP if all that is served
is static pages.
If you are just serving static pages, you may be able to reduce your verbs to
"head" and "get". That is avoid "post." Again attack surface reduction.
I put PHP in a "map" search and it is a
> Well, this php-engine is built into apache itself
Just because apache do have a built in PHP handler such as mod_dso doesn't mean
it's actually used to serve static files ( I can tell you that the php engine
is never hit if you serve static files)
> Anyway, considering only this fact, such a
If your current apache configuration serves static files via the php engine,
then you're doing something very wrong.
You might or might not see any speed gain depending on your apache
configuration, but you should see a big difference in the amount of resources
used to serve traffic.
As
On Thu, 2017-06-29 at 16:16 +0300, Valentin V. Bartenev wrote:
> On Thursday 29 June 2017 15:32:21 ST wrote:
> > On Thu, 2017-06-29 at 15:09 +0300, Valentin V. Bartenev wrote:
> > > On Thursday 29 June 2017 14:00:37 ST wrote:
> > > > Hello,
> > > >
> > > > with your help I managed to configure
> If your current apache configuration serves static files via the php engine,
> then you're doing something very wrong.
Well, this php-engine is built into apache itself... Anyway, considering only
this fact, such a bad apache
configuration should not be significantly slower than that of nginx?
I have been using the same XSLT files and proxy to an xml document for
several generations without any problem. Recently (~1.11) I am getting an
error when I do 'nginx -t':
/etc/nginx/xsl/so.xslt:1: parser error : Document is empty
error
xsltParseStylesheetFile : cannot parse
Have you enabled the slowlog and request_slowlog_timeout directives in the
php-fpm pool that this request is going to? These may provide a hint as to
where the problem lies.
On Fri, Jun 30, 2017 at 1:46 AM, Andrea Soracchi
wrote:
> Hi Richard,
>
> I have the same
rewrite and location matching do not include query strings. As a quick
workaround, I believe you could do something like this:
if ($request_uri = "/abc/xyz/def.php?Id=13") { return 301 "
http://www.example.com/fhu/foo;; }
Be aware that this matches the request exactly - query string parameters
Thanks Richard for replying but somehow this is not working. I see it is
being redirected to http://www.example.com/fhu but not to
http://www.example.com/fhu/foo and http://www.example.com/fhu/bar. As you
mentioned I have matched the case exactly.
Posted at Nginx Forum:
Hello!
On Thu, Jun 29, 2017 at 09:08:40AM -0400, foxgab wrote:
> if nginx is behind another proxy, that proxy set the X-Forwarded-for header
> with the real client ip, and the configration of nginx is :
>
> location / {
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>
set your worker_process to 1 and try again
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
If you want to stream the upload directly to your backend, you should
consider fastcgi_request_buffering[1].
The problem is most likely with your PHP backend though, you should examine
why it takes so long to process the request.
[1]
Hi Payam,
the problem is between Nginx and Php-fpm, but
I have set the debug level log to nginx and php-fpm.
Nginx:
2017/06/29 10:05:14 [warn] 5252#5252: *1613 a client request body is buffered
to a temporary file /var/lib/nginx/body/44, client: 192.168.18.18,
server:
On Thursday 29 June 2017 14:00:37 ST wrote:
> Hello,
>
> with your help I managed to configure nginx and our website now can be
> accessed both - through apache and nginx.
>
> Now, how can I prove to my boss that nginx is more efficient than apache
> to switch to it? How do I measure its
if nginx is behind another proxy, that proxy set the X-Forwarded-for header
with the real client ip, and the configration of nginx is :
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
real_ip_headerX-Forwarded-For;
set_real_ip_from 192.168.0.0/16;
}
whether the
On Thursday 29 June 2017 15:32:21 ST wrote:
> On Thu, 2017-06-29 at 15:09 +0300, Valentin V. Bartenev wrote:
> > On Thursday 29 June 2017 14:00:37 ST wrote:
> > > Hello,
> > >
> > > with your help I managed to configure nginx and our website now can be
> > > accessed both - through apache and
On Thu, 2017-06-29 at 15:09 +0300, Valentin V. Bartenev wrote:
> On Thursday 29 June 2017 14:00:37 ST wrote:
> > Hello,
> >
> > with your help I managed to configure nginx and our website now can be
> > accessed both - through apache and nginx.
> >
> > Now, how can I prove to my boss that nginx
I believe it happens because you changed cf->cmd_type, so when nginx tries to
parse the second location,
it thinks it’s in a scope of ‘my custom module conf’ and not in a scope of
‘server’, and therefore doesn’t
recognize the location directive.
Nginx doesn’t automatically parse the contents of
Hello!
On Thu, Jun 22, 2017 at 01:24:57PM +, Karstens, Nate wrote:
> # HG changeset patch
> # User Nate Karstens
> # Date 1498137207 18000
> # Thu Jun 22 08:13:27 2017 -0500
> # Node ID a4635fa4a0cabf5312cda617b8010ea14279ab1c
> # Parent
Maxim,
Thanks for the comments. I'll try to start on those in a couple of days. My
company uses Outlook/Exchange for email, so I don't think I'll be able to use
hg email, do you have any other suggestions? Thanks also for your patience,
I've used Git quite a bit but am new to Mercurial.
Hello!
On Thu, Jun 22, 2017 at 01:24:54PM +, Karstens, Nate wrote:
> # HG changeset patch
> # User Nate Karstens
> # Date 1498137180 18000
> # Thu Jun 22 08:13:00 2017 -0500
> # Node ID 3fb3c4928d06029ca1d57853a163c9f56fa90bca
> # Parent
Hello!
On Thu, Jun 22, 2017 at 01:24:59PM +, Karstens, Nate wrote:
> # HG changeset patch
> # User Nate Karstens
> # Date 1498137243 18000
> # Thu Jun 22 08:14:03 2017 -0500
> # Node ID b706695658216c88716904519467a36c1aac7ac9
> # Parent
Got it. Thank you so much! I'll probably do a mix of both by having an
install script that parses the output of -V and provide guidance
accordingly for the stray cows :D
On Jun 29, 2017 7:07 AM, "Maxim Dounin" wrote:
Hello!
On Thu, Jun 29, 2017 at 12:27:50AM -0700, Joseph
Or, I can just require that the host version of nginx be installed with the
--with-compat option.
On Thu, Jun 29, 2017 at 12:38 AM, Joseph Spencer <
spen...@kogosoftwarellc.com> wrote:
> Looks like I can grep NGX_MODULE_SIGNATURE from the nginx binary itself.
> Depending on the version of nginx,
I'm looking to create a portable binary, and from everything I can read, it
is almost impossible. The recommended approach seems to be to expose
source code and require users to compile. This is painful because it
requires the source code and gcc to be available: a hard sell for the lazy
Looks like I can grep NGX_MODULE_SIGNATURE from the nginx binary itself.
Depending on the version of nginx, it could be a decent option. I'm
literally only dependent on core and http. Most of the elements of the
signature appear to be extraneous.
On Thu, Jun 29, 2017 at 12:27 AM, Joseph Spencer
Hello!
On Thu, Jun 29, 2017 at 12:27:50AM -0700, Joseph Spencer wrote:
> I'm looking to create a portable binary, and from everything I can read, it
> is almost impossible. The recommended approach seems to be to expose
> source code and require users to compile. This is painful because it
>
28 matches
Mail list logo