New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Shovenose is that you ?
what happened to him?
I have no idea what this person is talking about. Im looking for help with an nginx conf.
Give us an example of the singles quotes-- and we'll give you your one liner!
Although I'm guessing you're single quoted issue is more complex than this..here is an example to see what removing single quotes from your conf file might look like using sed:
$ cat example.conf |sed "s/\'//g"
So here is what I was trying
#rewrite ^/(.*)$'(.*)$ /(.*)$ (.*)$;
in my nginx.conf. Im trying to regex out the ' character from my URI
I would think the rewrite line should look more like this (although untested):
rewrite ^/(.*)'(.*)$ /$1$2 last;
Actually tested this and it works for me:
rewrite ^/(.*)'(.*)$ /$1$2 redirect;
That did it! Awesome