We also tried these options:
location ^~ /cms {
}
location ^~ /cms/ {
}
But still gets same issue. We are only getting the index page.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,237520,237618#msg-237618
___
nginx mailing list
nginx@ngi
Why are you trying to rewrite your URLs at all? Why don't you simply endure
that your HTML or dynamic content references images at cdn.mydomain.com?
Sent from my iPhone
On Mar 20, 2013, at 10:47 PM, "toddlahman" wrote:
> I have tried both ways to redirect my static files to a CDN (content
> de
On Thu, 2013-03-21 at 01:48 -0400, geopcgeo wrote:
> Thanks for your updates. We are able to proxypass to another domain. But
> the issue is domain’s sub directories are not working fine.
> That is in
>
> server {
> listen 80;
> server_name geotest.com;
> proxy_set_header Host geotest.com;
> proxy
Thanks for your updates. We are able to proxypass to another domain. But
the issue is domain’s sub directories are not working fine.
That is in
server {
listen 80;
server_name geotest.com;
proxy_set_header Host geotest.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
Thanks for your updates. We are able to proxypass to another domain. But
the issue is domain’s sub directories are not working fine.
That is in
server {
listen 80;
server_name geotest.com;
proxy_set_header Host geotest.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_
It is possible my CDN is using the same ruleset. I am using MaxCDN, and they
use Nginx to serve static images. How would I write this ruleset to be
compatible with MaxCDN (aka NetDNA)?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,237609,237612#msg-237612
_
On Wed, 2013-03-20 at 22:47 -0400, toddlahman wrote:
> I have tried both ways to redirect my static files to a CDN (content
> delivery network), but both ways result in the message "too many redirects."
> Can anyone tell me what I am doing wrong here?
>
> location ~* ^.+.(jpe?g|gif|css|png|js|ico)
I have tried both ways to redirect my static files to a CDN (content
delivery network), but both ways result in the message "too many redirects."
Can anyone tell me what I am doing wrong here?
location ~* ^.+.(jpe?g|gif|css|png|js|ico)$ {
rewrite ^ http://cdn.mydomain.com$request_uri? perma
I am having trouble with proxy_pass and PUT without a Content-Length header
returning a 411 error.
# curl -XPUT http://localhost:8080/
411 Length Required
411 Length Required
nginx/1.1.19
# touch temp
# curl -X PUT http://localhost:8080/ -T temp
{"response": "ok"}
#
Relevant configuration:
#
Thank you.
BTW: having googled it for different expressions I've found that it is a
well known issue and that it has nothing to do with nginx or the Rails app
itself. Unicorn in and of itself can neither be blamed (albeit IMHO there
should be some official documentation on this issue, esp. since n
On Mar 19, 2013, at 18:41 , Andreas Weber wrote:
> Im not expert but i think you must specify /cms BEFORE / because "/" will
> match everything
No. Since "/" and "/cms" are not regex locations, nginx finds the maximum match
despite
location order. This is why using only non-regex locations all
Hello!
On Tue, Mar 19, 2013 at 11:50:43AM -0700, Cool wrote:
> Thanks Maxim, I got what you mean.
>
> Since I'm using fastCGI so I put something like this:
>
> fastcgi_param HTTP_COOKIE "$http_cookie; mycookie=$cookie_note";
>
> (I populated cookie_note in my filter already, this was done for
On Wed, Mar 20, 2013 at 3:05 PM, Igor Sysoev wrote:
> On Mar 19, 2013, at 19:42 , wbr...@e1b.org wrote:
>
>> Peter Booth wrote on 03/19/2013 10:43:12 AM:
>>
>>> The code does the following:
>>>
>>> 1. remove an HTTP header named "SWSSLHDR"
>>> 2. replaces it with SWSSLHDR: port, where the port is
On Mar 19, 2013, at 19:42 , wbr...@e1b.org wrote:
> Peter Booth wrote on 03/19/2013 10:43:12 AM:
>
>> The code does the following:
>>
>> 1. remove an HTTP header named "SWSSLHDR"
>> 2. replaces it with SWSSLHDR: port, where the port is the local port of
>> the "current context's TCP connection",
14 matches
Mail list logo