Re: Redirect of permalinks in Wordpress.

2017-10-30 Thread JoakimR
It look to me like you are redirecting from 1 to 1 :/ but, i'll remember it like there is a wp plugin for this have you searched on wp? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277107,277152#msg-277152 ___ nginx mailing list nginx

Re: Cache only static files in sub/subfolder but not sub

2017-02-22 Thread JoakimR
Hi Francis You're right I have overseen the ^~ for the location. So for others, the solution to "force" the location directives is.. location ^~ /thumbs/embedded { add_header X-Served-By "IDENT1"; add_header Cache-Control public; add_header Pragma 'public'; add_header X-Cache-Status $upstream_c

Re: Cache only static files in sub/subfolder but not sub

2017-02-20 Thread JoakimR
Found the answer to my question here http://nginx.org/en/docs/http/ngx_http_core_module.html#location "If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, or memcached_pass, then the s

Re: Trouble with redirects from backend

2017-02-19 Thread JoakimR
You need proxy_redirect Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272358,272508#msg-272508 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Client certificate fails with "unsupported certificate purpose" from iPad, works in desktop browsers

2017-02-19 Thread JoakimR
Whitout any configuretion it's imposible to do much rather than refer you to nginx.org documentation http://nginx.org/en/docs/http/ngx_http_ssl_module.html Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272444,272507#msg-272507 ___ nginx mai

Cache only static files in sub/subfolder but not sub

2017-02-19 Thread JoakimR
Hi, I'm having as so many other a subfolder with media files, but I've like to do a simple file caching of only one of the subfolders = /media//thumbs/embedded with path insite the domain.tld and serve them as media.domain.tld So what I have done is added this to my config and it's working fine wh

set cache-control in a subfolder (php)

2016-11-17 Thread JoakimR
Hi I'm trying to override my default cache-control in my /admin/ folder location /admin/ { add_header “Cache-Control: no-cache”; try_files $uri =404; access_log off; } but everything have a wrong cache-age by running curl -I curl -I

Re: Return default placeholder image when image file on server not found

2016-05-29 Thread JoakimR
Found the answer on IRC #Freenode #nginx by catbeard location ~ \.(png|jp?g|gif)$ { error_page 404 /404.png; } http://serverfault.com/a/481612 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267211,267213#msg-267213

Return default placeholder image when image file on server not found

2016-05-28 Thread JoakimR
What is the right way to convert this from .htaccess to nginx.conf.. ##Return default placeholder image when image file on server not found RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule \.(gif|jpe?g|png) /image404.php [NC,L] Posted at Nginx Forum: https://forum.nginx.org/read.php?2,

Re: hide/strip set cookies on static files and howto use alias

2016-04-09 Thread JoakimR
Hi Francis, and of course everyone else Another Q Hi do have this in my domain.conf location /admin { index index.php; access_log off; log_not_found off; expires 0; } but yet, everythin

Re: hide/strip set cookies on static files and howto use alias

2016-04-08 Thread JoakimR
Hi Francis Daly thank you very much for your reply Let's brake this down one by one. I followed you suggestion and added fastcgi_connect_timeout 600s; to the conf, however the pages still time out after ~75 sec as expected do to this http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastc

hide/strip set cookies on static files and howto use alias

2016-04-04 Thread JoakimR
Hi I have a few questions about how do I configure it. First question: How do I strip the "Set-Cookie" header from all static files like css and jpg? I know i can setup a reverse proxy and use "proxy_hide_header Set-Cookie", but seems like foolish to make yet another host, just to reverse to your

Re: video stream and secure link

2016-04-01 Thread JoakimR
Hi, as I tried to write in this thread https://forum.nginx.org/read.php?2,265663,265688#msg-265688 I'm trying to accomplish the same But 1. did you get it to work 2. how did you form your link in the php script? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,228161,265810#msg-265810

Re: nginx HttpSecureLinkModule php streaming

2016-03-28 Thread JoakimR
Have strogled with this for 4 days now... could someone please help me? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265663,265681#msg-265681 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx http2 pictures timeout

2016-03-27 Thread JoakimR
Having same issue using http2 both on my image and reverse proxy (both nginx) the backend is running on sata disk and the proxy on ssd disk this is why the setup is as is like this. With http2 enabled i get some weird signs, but disabling http2 makes things run... So I follow this thread :)

Re: mod_rewrite with Nginx?

2016-03-26 Thread JoakimR
This online tool convert your .htaccess to nice nginx stuff :) PS: IT's not failproff but would help you a lot. http://winginx.com/en/htaccess Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265668,265670#msg-265670 ___ nginx mailing list

Re: Sendy in foreign language

2016-03-26 Thread JoakimR
have you seen or tested this module? https://www.nginx.com/resources/wiki/modules/accept_language/ Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265666,265669#msg-265669 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

Re: Why is nginx returning a 301 redirect in my reverse-proxy to a REST service?

2016-03-25 Thread JoakimR
Hi I'm pretty new in NginX but the directives suggest you add proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; to your config http://nginx.org/en/docs/http/ngx_http_proxy_module.html Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265660,265664#msg-265664

nginx HttpSecureLinkModule php streaming

2016-03-25 Thread JoakimR
I have for hours been trying to understand and figure out how this is working, and searched and tried a lot, but still No hair left on my head :( Sources for trial and errors http://nginx.org/en/docs/http/ngx_http_secure_link_module.html#variables http://stackoverflow.com/questions/8848919/sec