Re: Specifying geoip country block list in location context
If you can't set different blocks for different locations you can always create multiple maps and use them wherever you need . Albeit its a bit moot to duplicate geo conditions but it would do what you...
View ArticleRe: Specifying geoip country block list in location context
Haven't thought that multiple map supported.. It worked! thanks.
View ArticleNGINX how a virtual host have access to main MariaDB
Hi ! Sorry for my bad english i speak french normally. i have a VPS on OVH provider. I have install NGINX, PHP7 and MariaDB on my VPS. I have access to MariaDB if i use my generic website look like :...
View ArticleNginx - invalid variable + directive is not allowed here
I have problem with Nginx configuration ? My first VPS Debian8 64bit, Nginx 1.10(from dotdeb). I saw only easy short configuration in man. testing: Main configuration file: /etc/nginx/nginx.conf sudo...
View ArticleRe: Nginx - invalid variable + directive is not allowed here
Some corrections server / locations but the "error nginx: [emerg] invalid variable name in" user www-data; worker_processes auto; pid /run/nginx.pid; #include /etc/nginx/modules-enabled/*.conf; #...
View ArticleRe: Nginx - invalid variable + directive is not allowed here
Look at this line fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_nam$; Which would also be in the logfiles.
View ArticleRe: Nginx - invalid variable + directive is not allowed here
Thank you for this. I went back to a single file from http://piwigo.org/forum/viewtopic.php?pid=163083 and I added fastcgi_params. sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf...
View ArticleRe: Nginx - invalid variable + directive is not allowed here
Look in the nginx logfiles, or enable debug logging to see which location block is doing what.
View ArticleRe: Nginx - invalid variable + directive is not allowed here
sudo journalctl -xn -- Logs begin at sob 2016-07-09 21:28:50 CEST, end at pon 2016-07-11 23:41:50 CEST. -- lip 11 23:40:13 Foto nginx[4680]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address...
View ArticleRe: Nginx - invalid variable + directive is not allowed here
Debug server { #other config error_log /var/logs/nginx/mysitecom.log debug; #other config } full http://pastebin.com/AC5itJxf Refresh main site. Ngnix site trying to use "/" "/var/www/html/" and...
View ArticleRe: Nginx - invalid variable + directive is not allowed here
2016/07/12 22:04:31 [debug] 16736#16736: *8 trying to use file: "/index.php" "/usr/share/nginx/html/index.php" (...) 2016/07/12 22:04:31 [error] 16736#16736: *8 open() "/usr/share/nginx/html404" failed...
View ArticleRe: Nginx - invalid variable + directive is not allowed here
Permission for file ? ( sudo chmod -R 777 /var/www/ risk but for test ) Site is working ok under apache2 + libapache2-mod-php7.0 php 7, Back to Nginx I check usr/share/nginx/html ....... What I see ?...
View Articlenginx reverse proxy / ssl ---> varnish ---> nginx
Hello, I dont know if this is possible or not but what I would like to do is configure nginx to act as both the SSL wrapper AND webserver for my magento website. I followed these instructions:...
View ArticleRestricting access
Just moved everything over from Apache. Trying to block a few individual IP addresses. When add this to a server block: location / { deny 0.0.0.0; } Get the following error when restarting Nginx: Job...
View ArticleRe: redirection of websites
Instead of using cname records use A records and add the following code within your Nginx configuration file: return 301 https://yourwebsite.com$request_uri; or return 301...
View Articleproblem moving to nginx
Hi all , just getting my head around Nginx i have just moved some pages from a apachi hosted server onto my nginx install one page contains the php code <div id="sectionB"> <object...
View Articlemax_fails and fail_timeout in contex location
Hi guys, i have this configuration location / { resolver 8.8.8.8; proxy_next_upstream error timeout http_502; proxy_next_upstream_tries 2; set $backend_upstream http://testa.test.internal; proxy_pass...
View Articlehow to allow FastCGI server handle concurrent requests when nginx pipelining...
Hi All, I have found two issues with nginx 1.8.1 version . 1. nginx is not forwarding the http pipelined requests to the FastCGI server. I have a case where the browser sends a GET request to submit a...
View Article