Use variable with nginx proxy_pass
Hi,I'm new on nginx and I want to implement a particular configuration.I set up a redirect URL http://mydomain.com/images/test/v1/03760089810361_D1C1_s89.jpgto the URL...
View ArticleRe: Proxy_protocol, how to check protocol or port (not only remote IP)
I am having the same problem - I need to detect if the connection is using SSL or not.I used to useif ($http_x_forwarded_proto = "http") { return 301 https://$host$request_uri; }but now I switched to...
View ArticleRe: Proxy_protocol, how to check protocol or port (not only remote IP)
dgobaud Wrote:-------------------------------------------------------> I am having the same problem - I need to detect if the connection is> using SSL or not.$scheme
View ArticleMisunderstanding of how ngx_http_access_module and...
Hello guys!I need to limit access to my API to the list of ip addresses and only for those users who successfully pass authentication held by third party module.config file:server {listen 62081;allow...
View ArticleRe: Use variable with nginx proxy_pass
OK, I solvez a part of my problem with this configuration:server {listen 80;access_log /var/log/nginx/test.log;server_name mydomain.comlocation /images/ {rewrite...
View Articlecontent type incorrect on proxy request
On a website traffic is flowing in via http for location /instance we need the traffic to be secure using SSL and https. When redirecting to https the request content-type is "text/xml" when it...
View ArticlePHP Script Injection with NGINX
Hi All,I need to inject some PHP code into our NGINX reverse proxy server here. I've done my research, but as I'm a bit new to NGINX I want to be extra cautious to not mess anything up.From what I've...
View Articlenginx+php-fpm randomly goes down
Hello!I have been using nginx + php-fpm for a while now, mostly on small personal projects. But a few weeks ago I started using nginx for one of my bigger sites (10-20k pageviews daily). All my...
View ArticleProxy_pass redirection
Hi,I wish to make a url redirection based on several variables while keeping the original URL.I can do this for a single variable but not for two.Can you help me ?Below configuration with a single...
View ArticleConditional rewrite or try_files?
Hi, folks :-)Fairly new to NGINX, coming from Apache, and I got this far setting up the necessary configuration for a PHP-based project.Neither HTML or BBCODE seems to be supported and I can't find any...
View ArticleConverting apache rewrite rules to nginx
Hi,Please can anybody help me converting following apache rewrite rules to nginx?RewriteRule ^(MyResearch)/([^/]+)/(.+)$ index.php?module=$1&action=$2&id=$3 [B,L,QSA]RewriteRule...
View Articlephp and nginx
i've decided to give nginx a whirl instead of apache...but im having a few problems running php on it.here is my config file-----------------------------------------------------server {listen...
View ArticleRe: php and nginx
well i was getting the error:2015/08/04 20:22:21 [emerg] 5420#4628: "server" directive is not allowed here in C:\nginx/conf/nginx.conf:1so i refereed back to the default config and altered for php.here...
View ArticleRe: php and nginx
Is nginx running at all? if so then you should have entries in the logfiles.
View ArticleRe: php and nginx
nothing in log or access when trying to access today. localhost just shows a blank page.this is used to start nginx...also i've tried just clicking on nginx.exe...what am i doing wrong@ECHO OFFstart...
View ArticleRe: php and nginx
Open a cmd prompt and start nginx from there so you can see any messages.Use taskmanager to see if anything is running, make sure nothing(nginx) is before starting nginx.
View ArticleRe: php and nginx
ok i closed nginx from task manager.and opened cmd -> start nginx2 nginx programs appear my task manager with still a blank page on localhost =/
View ArticleLogrotate not working with Nginx
I've been researching this for a couple of weeks now and have been unable to rectify the problem.Even on a new Ubuntu 14.0.4 install when you rotate logs, nginx will start giving you permission denied...
View Article