> rewrite ^/(.*)$ https://example.net/$1 permanent;
>
...
>
> Gets re-written to
>
> example.net/CLO/https:/apple.com
>
> Only one forward-slash, not two before apple.com. The original declaration
> was %2F%2F ?
It's probably because that way the $1 is/gets url-decoded and merge_
nginx version: nginx/1.13.12
This is my rewrite:
location / {
rewrite ^/(.*)$ https://example.net/$1 permanent;
}
I am getting some really odd behavior.
For example:
mysubdomain.example.com/CL0/https:%2F%2Fapple.com
Gets re-written to
example.net/CLO/https:/apple.com
Only o
On Thu, Jan 18, 2018 at 01:01:44PM -0500, P lva wrote:
Hi there,
> I'm trying to get nginx server configured as a reverse proxy serving
> requests to few application servers upstream.
>
> Server {
> server_name app1.company.domain.com;
> listen 80;
>
> location / {
> proxy_pass http://appse
Hello Everyone,
I'm trying to get nginx server configured as a reverse proxy serving
requests to few application servers upstream.
Server {
server_name app1.company.domain.com;
listen 80;
location / {
proxy_pass http://appserver1:app1port/;
proxy_pass_request_body on;
proxy_intercept
v1.4.6
I'm attempting to proxy pass requests to AWS API Gateway, but they are not
reaching the endpoint. Example of my configuration below. Requests come
through as something like some.domain.com/some_resource
The final post_action hop at the bottom is attempting to pass the request
and its para
Hi folks,
I am running php as fastcgi, replacing a working apache/mod_php setup.
I'm pretty close, but am not quite there.
The last bit I've got to get working is...
RewriteRule ^(.*)$ index.php [E=query:$1,L]
Which I understand to mean pass the request in a variable called query.
My (n
sip Wrote:
---
> how do i make /blog/ only use its own rules and ignore everything
> else.?
Have you tried a location block for /blog/ at a position before other blocks
start handling things ?
Posted at Nginx Forum:
http://forum.nginx.org/read
I have a vbulletin site in root and a wordpress blog in /blog/
the root nginx rewrites all work as they should utilising the dbseo plugin
for vbulletin to make search engine friendly urls
if i turn on permalinks in wordpress i get a 404 error no matter what i
try.
Could anyone advise what the
Hi - I need some rewrite help please.
http://mysite.com/?page=2 to http://mysite.com/page/2/
and
http://mysite.com/?s=searchterm&page=2 to
http://mysite.com/page/2/?s=searchterm
Thanks.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,257724,257724#msg-257724
Dear Milos.
Am 22-03-2015 15:26, schrieb Milos:
WOW, thanks Aleksandar. that works for my.
[snipp]
My attempts have all failed.
What was your attempts and how does they failed?
Have you also take a look into this link and the other links in my first
answer?
http://nginx.org/en/docs/htt
WOW, thanks Aleksandar. that works for my.
I hope you can help me with another rewrite.
from:
http://www.my-domain.de/attachments/hundebilder-hundefotos-fotowettbewerbe/67591d1394397097-hund-monats-april-2014-dsc06022.jpg
to:
http://www.my-domain.de/attachments/dsc06022-jpg.67591/
OR
from
htt
Hi.
Only syntax checked.
Please read for further investigation.
http://nginx.org/en/docs/varindex.html
http://nginx.org/r/location
http://nginx.org/r/return
https://regex101.com/
Am 21-03-2015 16:57, schrieb Milos:
I need some urgent rewrites
From:
http://www.my-domain.de
I need some urgent rewrites
From:
http://www.my-domain.de/kalorientabelle.php/unterkategorie/204-suppen
To:
http://www.my-domain.de/kalorientabelle/suppen.204/unterkategorie
From:
http://www.my-domain.de/kalorientabelle.php/unterkategorie/3-vollkornbrot
To:
http://www.my-domain.de
Hello everyone.
I am using a rewrite similar to below
location /home {
rewrite ^/(.*) https://mysite.com/homepage/?next=/redirectionurl
redirect;
}
The issue is that nginx is not encoding the URL before it redirects.
So this is failing at the server that is receiving this request
Hi i have a video publishing website and have tons of ".mp4" videos in my
website. I want to use hashing . But i couldn't understand documentation how
to use this configuration. My first question : Is it possible to use this
configuration in localhost, because first i should try with localhost. I c
Hello!
On Mon, May 19, 2014 at 4:33 AM, Maxim Dounin wrote:
> First of all, I think that people should think before specifying
> error processing, especially complex error processing.
>
Unfortunately we cannot control what the users *think* :) Many users
just try things away according to their in
Hello!
On Fri, May 16, 2014 at 01:25:57PM -0700, Yichun Zhang (agentzh) wrote:
> Hello!
>
> On Thu, May 15, 2014 at 11:56 PM, kay wrote:
> > Don't you think this is a bug?
> >
>
> I think the NGINX core should prevent bad things from happen when
>
> 1. the user configures complicated things in
Hello!
On Thu, May 15, 2014 at 11:56 PM, kay wrote:
> Don't you think this is a bug?
>
I think the NGINX core should prevent bad things from happen when
1. the user configures complicated things in his error_page targets, and
2. the error page is initiated by nginx too early in the request
proce
I mean that I know how to avoid these errors, but I think that a better way
to fix the issue is to fix it in low level.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249754,250145#msg-250145
___
nginx mailing list
nginx@nginx.org
http://mail
Don't you think this is a bug?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249754,250144#msg-250144
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Hello!
On Wed, May 14, 2014 at 11:19 PM, kay wrote:
> http {
> error_page 405 /error.html;
> error_page 400 /error.html;
> error_page 403 /error.html;
>
Okay, I can reproduce your request hang on my side now and I see what
is going on here.
Basically the 405 error is thro
Here is nginx version:
nginx -V
nginx version: nginx/1.6.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
TLS SNI support enabled
configure arguments: --add-module=ngx_devel_kit-0.2.19
--add-module=lua-nginx-module-0.9.7 --add-module=memc-nginx-module-0.14
--user=apache --group=apache --prefi
Hello!
On Tue, May 13, 2014 at 11:52 PM, kay wrote:
> This config produces the same nginx hang.
>
> server {
> listen 80;
> location / {
> access_by_lua '
> local res = ngx.location.capture("/memc?cmd=get&key=test")
> return
> ';
> root /etc/
Yichun Zhang (agentzh) Wrote:
---
> Hello!
>
> On Wed, May 7, 2014 at 8:59 PM, kay wrote:
> >> 1. It is not recommended to use the rewrite_by_lua directive
> directly
> >
> > You can do the same with access_by_lua
> >
>
> Please do not cut my or
Hello!
On Wed, May 7, 2014 at 8:59 PM, kay wrote:
>> 1. It is not recommended to use the rewrite_by_lua directive directly
>
> You can do the same with access_by_lua
>
Please do not cut my original sentence and just pick the first half.
The full sentence is "it is not recommended to use the rewri
> 1. It is not recommended to use the rewrite_by_lua directive directly
You can do the same with access_by_lua
> Finally, ensure your version of ngx_lua, ngx_memc, and the nginx core are
recent enough.
They are recent.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249754,249921#msg-
Hello!
On Tue, May 6, 2014 at 11:30 PM, kay wrote:
> Sure, you can use nginx.conf from my previous message and this server
> config:
>
I've noticed 2 obvious mistakes in your config. See blow.
> server {
> listen 80;
>
> rewrite_by_lua '
> local res = ngx.location.capture("/memc?cmd=ge
Sure, you can use nginx.conf from my previous message and this server
config:
server {
listen 80;
rewrite_by_lua '
local res = ngx.location.capture("/memc?cmd=get&key=test")
ngx.say(res.body)
';
location / {
root /etc/nginx/www;
}
location /memc {
internal;
Hello!
On Tue, May 6, 2014 at 2:58 AM, kay wrote:
> Actually I suppose that this is a bug, as it is not possible to make filter
> by $request_method
>
> Also some external modules like
> https://github.com/openresty/memc-nginx-module have strange behavior when
> client passes TRACE and nginx gets
Actually I suppose that this is a bug, as it is not possible to make filter
by $request_method
Also some external modules like
https://github.com/openresty/memc-nginx-module have strange behavior when
client passes TRACE and nginx gets GET.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?
Hello!
On Wed, Apr 30, 2014 at 03:04:11AM -0400, kay wrote:
[...]
> So it seems that error_page 405 /error.html rewrites $request_method
Yes, redirection a request to an error page implies changing the
request method to GET (unless it's HEAD). It's required to
properly retu
nginx from official repository:
nginx -V
nginx version: nginx/1.6.0
built by gcc 4.7.2 (Debian 4.7.2-5)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/
) curl -X PUT localhost
GET 127.0.0.1 - - [30/Apr/2014:10:59:38 +0400] "PUT / HTTP/1.1" 405 0 "-"
"curl/7.26.0" "-"
Let's disable "error_page 405 /error.html;"
1) curl -X POST localhost
POST 127.0.0.1 - - [30/Apr/2014:11:00:43 +0400]
Ugh, I spoke too soon. It works when the urls are like this:
http://example.com/install?step=1
But it does not work when the urls are like this:
http://example.com/dashboard/
http://example.com/profile/
Sometime it brings back 404 Not Found and other times it comes back with 500
Internal Error
Thanks for pointing me in the right direction. That last part gave me a
redirect loop error, so I changed it to this:
rewrite ^/(.*)$ /index.php?url=$1;
I applied it, loaded the site, restarted nginx, and loaded the site again.
It seems to work. Hopefully, my change is not just a fluke but will c
location / {
try_files $uri $uri/ /index.php?url=$1 last;
}
Maybe what you want here is:
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php/$1;
}
On Tue, Mar 18, 2014 at 12:05 PM, parkerj wrote:
> I have been trying to convert the follow
I have been trying to convert the following htaccess rules to nginx with no
luck.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
I've tried:
location / {
if (!-e $request_filename){
rew
37 matches
Mail list logo