Questions tagged as 'nginx'

1
answer

Nginx, prioritize folders instead of "location /"

I use PHP with the Phalcon framework in my projects and this is the framework. Mynginxlookslikethis:server{listen80;server_name123.123.123.123;root/var/www/meusite.com.br;location@site{rewrite^/public(.+)$/public/index.php?_url=$1last;}locat...
asked by 06.12.2015 / 15:37
2
answers

Zend Framework works with Nginx (without apache)?

I have a project developed in zf2 and currently I use a shared hosting with Apache, but I will migrate to the Digital Ocean VPS and I will configure the server with Nginx as it performs better. That is, instead of Apache, I will use Nginx....
asked by 26.10.2015 / 20:35
1
answer

Customize the Nginx error message

Hello, the Nginx server has a message that pops up from time to time on sites like 502 Bad Gateway . Can you customize this message via SSH in Nginx files?    I've installed from this tutorial: link What he wanted was for a message in...
asked by 11.09.2016 / 04:52
1
answer

How to do URL Friendly

I'm using Framework Yii and need to create URLs friendly. URL Example: http://meudominio.com/meuControle/minhaView That is Equivalent to: http://meudominio.com/index.php?r=meuControle/minhaView No con...
asked by 26.11.2014 / 16:15
1
answer

PHP process to work after multiple / simultaneous requests in Ngnix

The problem I created a process using PHP to work with Nginx like this: @echo off echo Starting PHP FastCGI... set PATH=C:\nginx\php;%PATH% C:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c C:\nginx\php\php.ini pause But if more than 500 req...
asked by 10.10.2014 / 20:56
2
answers

How to make NGinx display error messages on screen in the same way that Apache does instead of '502 bad gateway'

NGinx and Apache display errors differently when there is a problem running a PHP script. Apache, when configured to display on screen, accurately displays the error, with file and line where it occurred, but NGinx typically only displays someth...
asked by 05.02.2014 / 17:42
1
answer

How to configure multiple Nginx on a server?

I need to setup two nginx servers on a windows server. One of them is responsible for processing the site, and is already operating using the default settings of nginx, what I need, is another nginx, responsible for streaming media / videos,...
asked by 10.10.2016 / 23:59
1
answer

Nginx Php files

I'm studying nginx and it seems to be faster than good apache. My doubt is. I have nginx already installed and running (with the welcome msg). I created an index.php page and automatically the server gives me a 403 return, if I create a page ind...
asked by 09.04.2016 / 22:16
1
answer

Error 502: Bad Gateway - How to solve

What's happening From yesterday morning, in a certain part of the site, in the user registry to be more accurate, many times when trying to do so, nginx returns the message of 502 - Bad Gateway . What can generate this? No site code was modi...
asked by 08.01.2016 / 15:17
1
answer

Problem using CODEIGNITER on Nginx server

My site was hosted on UOLHOST and worked perfectly with the following .htaccess RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRul...
asked by 26.12.2015 / 00:37