```nginx server { listen 80; server_name ""; return 444; } ``` sourced from https://nginx.org/en/docs/http/request_processing.html by Igor Sysoevby JoakimR - How to...
Nowbody who have any suggestion for a solution? or could helo me make this rewriteby JoakimR - How to...
Hi, I can't solve how this .htacces rule should be rewritten :( could someone please try to help me in .htaccess RewriteRule ^filters$ index.php?controller=filters Have tried the following rwdirects but all gives me the "The page isn’t redirecting properly" rewrite ^filters$ /index.php?controller=filters last; rewrite ^/filters/$ /index.php?controller=filters last; rewriteby JoakimR - How to...
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?by JoakimR - Nginx Mailing List - English
First: what is listening to port 80 lsof -i :80 properly apache :P, but kill all services listening to port 80 and the try to restart your nginx... Alternatively add ip directives to the listener like listen 123.123.123.123:80 to the configsby JoakimR - How to...
Post your mp4 conf part for debugby JoakimR - How to...
Here is many questions not answered to make this easy, but i'll understand it like you would run your .php on the slow apache and then use the nginx as reversed frontend for apache..... but since you don't know about how to do this, you properly don't have a lot of visitors, so I'll suggest you skip the apache and go directly into nginx with php-fpm and reverse into that guide for that part isby JoakimR - How to...
Try to read the /etc/nginx/conf.d/default you might get an idear there :) else please read the https://nginx.org/en/docs/ there are plenty of starter guidesby JoakimR - How to...
This is somewhat common, it's not every time a systemctl reload nginx can do the trick, but you'll need to do a full restart (systemctl restart nginx) especially if you are using sslby JoakimR - How to...
You can do something like this; You'll have to find the explanations on nginx.org, but basacly it will forbid other that your own server to show the videos and limit the speed to 1mbit after 10 min location ~ \.mp4$ { #internal; #alias /var/www/domain.tld/media/videos; valid_referers none blocked server_names domain.tld *.domain.tld if ($invalid_referer) {by JoakimR - How to...
Question 1: Now i want to make old links https://domain.tld/performers/ into https://domain.tld/models/ how do I do that? have tried quite a few things I've been able to locate by searches, but not one do it right for me Here is my rewrite (optimisation suggestions ok :) ) location /models { rewrite ^/(performers|models)/$ /index.php?controller=models; rewrite ^/(performers|models)/(alpby JoakimR - How to...
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_cache_status; proxy_http_version 1.1; proxy_set_header Connection &quby JoakimR - Nginx Mailing List - English
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 special processing is performed. In response to a request with URI equal to this string, but wiby JoakimR - Nginx Mailing List - English
You need proxy_redirect....by JoakimR - Nginx Mailing List - English
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.htmlby JoakimR - Nginx Mailing List - English
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 when I out comments the second location directive, files are stored in the cache and served as expectby JoakimR - Nginx Mailing List - English
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 https://domain/admin/index.php HTTP/1.1 302 Moved Temporarily Server: nginx Date: Thu, 17 Nov 2016 09:10:02 GMT Content-Type: text/html;chby JoakimR - Nginx Mailing List - English
Found the answer on IRC #Freenode #nginx by catbeard location ~ \.(png|jp?g|gif)$ { error_page 404 /404.png; } http://serverfault.com/a/481612by JoakimR - Nginx Mailing List - English
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.phpby JoakimR - Nginx Mailing List - English
I need someone who could setup a nginx streaming server with php. I have setup some, but I can't make it work as I would like to, and without bandwidth limit on the streaming... well bandwidth max out in no seconds. Servers: sever 1: hosting all web + media server 2: mariadb + nginx-reverse for image, (offloading IO on server one) what's the coal here, have the two servers as fast as posby JoakimR - Requests for Paid Services
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, everything is logged? do you have some kind of answer to this?by JoakimR - Nginx Mailing List - English
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#fastcgi_connect_timeout "Defines a timeout for establishing a connection with a FastCGI server. Itby JoakimR - Nginx Mailing List - English
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 self and add a few hundred msec to the request. Second question: I'mby JoakimR - Nginx Mailing List - English
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?by JoakimR - Nginx Mailing List - English
Have strogled with this for 4 days now... could someone please help me?by JoakimR - Nginx Mailing List - English
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 :)by JoakimR - Nginx Mailing List - English
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/htaccessby JoakimR - Nginx Mailing List - English
have you seen or tested this module? https://www.nginx.com/resources/wiki/modules/accept_language/by JoakimR - Nginx Mailing List - English
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.htmlby JoakimR - Nginx Mailing List - English
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/secure-pseudo-streaming-flv-files/8863219#8863219 http://stackoverflow.com/questions/27468743/nginxby JoakimR - Nginx Mailing List - English