Most voted "nginx" questions
Nginx ("engine x") is an HTTP server, reverse proxy and email proxy, with a BSD-like license. DO NOT ASK support or NGINX configuration questions - this is outside the scope of the site. You can use for software development questions that are specific to the server in question.
Learn more…143 questions
Sort by count of
-
25
votes1
answer19287
viewsHow does PHP-FPM work?
Guys, I have a question related to the concept of PHP-FPM. From what I understand from the documentation, it is a module of PHP that manages requests to the server to avoid high loads, or am I…
-
22
votes1
answer19909
viewsWhat are the advantages and disadvantages between Apache and Nginx?
I see a lot of people recommending Nginx on Apache [HTTP Server], and I can well understand why the first is Event-driven it brings advantages as to scalability (i.e. low memory consumption under…
-
10
votes1
answer19729
viewsSending Files on Nginx Error "413 Request Entity Too Large"
I’m trying to send a file from 2MB using Nginx, but I keep receiving the 413 arquivo muito grande. Version: Nginx/1.4.6 OS: Ubuntu 14.04 LTS
-
10
votes1
answer527
viewsAre all HTTP methods/verbs accepted by APACHE and NGINX?
In a talk I had recently, one of the speakers commented that the only methods that, in fact, the APACHE and the NGINX accept/support are methods/verbs GET and POST. The speaker further clarifies…
-
8
votes2
answers419
viewsHow do Nginx provide pre-compressed content?
I’ve already enabled the module Httpgzipstaticmodule, and defined the variable gzip_static on; But in the response headers of a GET request does not appear Content-Encoding gzip…
-
7
votes4
answers1794
viewsNode replaces Nginx? Can someone explain this architecture to me?
I was reading a article about the "dawn" of Javascript companies. The "dawn" in the sense that things are just beginning. That is, according to the author, the future is Javascript, with Nodejs, and…
-
6
votes2
answers1338
viewsHow to increase the size of the GET request to put parameters greater than 10KB in NGINX and PHP?
I need to make a very large GET request with NGINX and PHP. Is there any configuration in NGINX or PHP that solves this?
-
6
votes1
answer468
viewsHow to get the correct HTTP status?
I tried to get the error "status" like this: error_page 403 /error.php; error_page 404 /error.php; But $_SERVER['REDIRECT_STATUS'] return 200, already in Apache he return 404 (the expected result).…
-
5
votes1
answer473
viewshttps Redirect Problem
I’m having a bit of a weird problem here. We have two sites on the same server running with Nginx; a holds certificate HTTPS and the other not. The problem is that if a customer enters the site…
-
4
votes1
answer1547
viewsNGINX as reverse proxy and cache of an external shared server running apache
I’m trying to set up a Brazilian instance on Amazon to be reverse proxy with server caching and compression (I accept dashboard suggestions, preferably free, that accept this setting) in the US. The…
-
4
votes1
answer553
viewsWhat is the maximum limit of PHP/Mysql/Nginx in a request before giving error 504 Time-out Gateway
And if possible how can I extend this time for large queries/requests?
-
4
votes1
answer918
views -
4
votes1
answer9659
views502 Bad Gateway - Linux, php7, Nginx. How to resolve this error?
I am having a 502 error that represents some configuration on the server, when I try to open a site using linux, Nginx and php7. Researching some other POSTS, link about the same error I see that…
-
4
votes0
answers81
viewsHow to load Flaskbb with Nginx?
I followed the documentation and installed everything without problems, but Nginx only shows his default page warning that it is running. The flaskbb forum never loads. I tried to remove import from…
-
3
votes1
answer136
viewsHow do I switch from a native php version to a version installed by Brew on Maverick?
I’ve been updating by Brew with the php but when I use phpinfo() is still in the version of php system, how to toggle or change?…
-
3
votes0
answers653
viewsNignx startup error: ngx_master_520 the Event was not signaled for 5s
I am trying to set up an SSL certificate on my web server that uses Windows 2008 RC2 and Nginx. I always come across an error in the log file and this causes Nginx to not run. The error is: Error in…
-
3
votes1
answer1297
viewsWhat would be "Server Signature" and how to turn it off?
In some tests found that the "server signature was on", I do not know what this is. What is and how can I turn off this "signature"? In security tests conducted recommend that I turn off this…
-
3
votes1
answer1386
viewsFont Awesome appears as "blocks" in Nginx under Freebsd 10.1
I have a website that I have transported from Centos to Freebsd using rsync + mysqldump. Centos + Apache ran normal on Freebsd + Nginx gave this error: I believe it is related to this code that…
-
3
votes2
answers847
viewsNginx does not import phpmyadmin database: "413 Request Entity Too Large"
i have a database of 1.31MB I’m trying to import into my phpmyadmin, which on the side indicates that it supports importing Full Size Database: 2.048KB. But, I’m not getting... every time I try to…
-
3
votes1
answer1078
viewsHow to get PATH_INFO on Nginx when we use rewrite (friendly url)?
I created a .htaccess in the briefcase /var/www/project/: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1…
-
3
votes1
answer575
viewsNginx - running php app and Node on the same domain with different ports
I am configuring a Blocks in Nginx, but I’m having difficulty running two different apps, see the following situation: I have 2 apps (PHP and Node.js) only one domain (example.com.br) and I need to…
-
3
votes1
answer1350
viewsSite redirected to Nginx page
I tried to access a website, owned by a company, and instead of being directed to the page of the site itself, I was redirected to a page saying the following: Welcome to Nginx! If you see this…
nginxasked 7 years, 10 months ago Gabriel Ferraz 31 -
3
votes0
answers394
viewsLaravel in Linux with NGINX. Error 500 in browser and Permission denied in log. An analysis and how to solve in the best way possible?
I am installing an application in Laravel 5.4 in a Linux environment Ubuntu 16.04 with NGINX. I have seen that many people (just like me) always come across a 500 error in the browser, just after…
-
3
votes2
answers1376
viewsRedirect HTTP post url to HTTPS on Nginx
I have an application that I receive POSTS of return of the payment system, but currently we force the use of SSL for our site, I made the HTTP redirection to HTTPS, but I get error 404 when the…
-
3
votes2
answers1212
viewsNginx does not show index php
So guys I think it’s some configuration on the server that’s not showing the error page, I’m running a docker-compose that "goes up" a container php, mysql and Nginx but when accessing localhost…
-
2
votes2
answers641
viewsNginx with SSL Connection Error
I created an SSL certificate to test on the server and configured in Nginx as follows: # HTTPS server # server { listen 443; server_name kriaki.com.br; root /home/ubuntu/public_kriaki; index…
nginxasked 10 years, 9 months ago Gilson José 89 -
2
votes2
answers465
viewsIs there an alternative to the PHP mysql_connect command?
Everything was working fine until apparently the Nginx installation said my command mysql_connect had the following problem: Warning: mysql_connect() [Function.mysql-connect]: Headers and client…
-
2
votes1
answer2856
viewsUser-friendly URL with Nginx
I would like some help from you because I did not arrive at the expected result. I am trying to create a friendly URL as below: Current URL: meusite.com.br/artista.php?id_artista=1 NEW URL:…
-
2
votes1
answer718
viewsRun two services in the same domain on separate ports
I need to configure an application that has two different services running on port 80 and another on 8080, but in the same domain. I ask you if it’s possible and how could I set you up this way?…
nginxasked 8 years, 12 months ago Kaio Cesar 305 -
2
votes0
answers254
viewsCache: How to use mod_headers
I have a server Nginx in a shared environment where it is not possible to enable the max-age because the same is part of the mod_expires, in which it is only available in a dedicated environment. I…
-
2
votes1
answer352
viewsNginx, prioritize folders instead of "Location /"
I use PHP with the Phalcon framework in my projects and this is the structure. My Nginx is like this: server { listen 80; server_name 123.123.123.123; root /var/www/meusite.com.br; location @site{…
-
2
votes1
answer1682
viewsError 404 Not Found (Nginx)
I have a blog and for a few days it started to give the following error in some pages. 404 Not Found nginx/1.6.2 (Ubuntu) The error log is returning: 2016/02/02 10:44:12 [error] 612#0: *553172…
-
2
votes1
answer87
views -
2
votes1
answer1088
views"Primary script Unknown" while Reading Response header from upstream - NGINX
Hello, I am trying to run my Wordpress site on the Host that has this setting: Ubuntu LTS 16.04, Nginx, Apache, Mysql, PHP, Webmin While trying to enter the home page, the error that is displayed in…
-
2
votes1
answer348
viewsEnable Nginx authentication for a specific URL
I am working with a control panel and need to put an authentication in the admin folder access. I already created the user and password, the Nginx configuration this way: server { listen 443 ssl;…
-
2
votes1
answer231
viewsNginx with api Node
I’ve had a problem for a while and I can’t fix it. The problem is this: I have a server that has an api running PM2 on it at port 3000. I installed NGINX and am trying to link the route of my domain…
-
1
votes2
answers960
viewsHow to make Nginx display error messages on screen in the same way as Apache does instead of '502 bad gateway'
Nginx and Apache present errors differently when there is a problem running a PHP script. Apache, when configured to display on screen, displays exactly the error, with file and line where it…
-
1
votes1
answer115
viewsHow to redirect to the application folder?
Use the ROR with the Nginx. How do I stop what the nginx redirect to the application folder? Instead of the folder /public.
-
1
votes0
answers668
viewsHow to access a directory of a website that returns a Forbidden 403 error?
Is there any way to access a directory of a site that returns a 403 Forbiden error? Is there any way to do this by Curl or wget? I need to access this site it only returns me this error:…
-
1
votes1
answer577
viewsPHP process stops working 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…
-
1
votes1
answer1385
viewsHow to Make URL Friendly
I’m using the Framework Yii and need to create URLs friendly. Example of URL: http://meudominio.com/meuControle/minhaView Which is equivalent to:…
-
1
votes0
answers109
viewsHow to rewrite my website URL?
I have the following URL: http://exemplo.com/iframe/usuario/estacao I need the Nginx make a "turn" so that the user and the station are passed as parameters for my application, so:…
-
1
votes2
answers293
viewsDoes Zend Framework work with Nginx (without apache)?
I have a project developed in zf2 and currently use a shared hosting with Apache, but I will migrate to the VPS of Digital Ocean and I will configure the server with Nginx as it has better…
-
1
votes1
answer154
viewsConvert htacces to Nginx
Good afternoon I’m migrating an Apache server to Nginx and I have a project with some rules on . htaccess that I don’t know how to convert to Nginx are they: RewriteEngine On RewriteCond…
-
1
votes1
answer541
viewsDirectory Listing: 403 Forbidden Nginx
I need help, I started using Nginx now, I was researching about then I decided to test it, and I don’t know how to configure it properly, but I wanted to enable directory search. In his…
nginxasked 9 years, 5 months ago Guilherme Almeida 75 -
1
votes1
answer1932
viewsError 502: Bad Gateway - How to resolve
What’s going on Starting yesterday morning, in a certain part of the site, in the user register to be more exact, many times when trying to perform it, Nginx returns the message of 502 - Bad…
-
1
votes1
answer888
viewsCustomize the Nginx error message
Hello, the Nginx server has a message that appears from time to time on sites like 502 Bad Gateway. How to customize this message via SSH in Nginx files? I installed from this tutorial:…
-
1
votes0
answers64
viewsNginx with Oracle
I’m having the following problem, I set up mine Nginx with the Gem Passenger, for my application ruby-on-Rails, using Oracle database (Instant client), everything is configured correctly at first,…
-
1
votes1
answer646
viewsConfigure Nginx to receive any domain
I have this configuration on Nginx that any domain that is pointed at on my server it accesses the folder with the domain name. My question is how do I get my clients to point their domain to my…
-
1
votes0
answers70
viewsError log: upstream timed out (110: Connection timed out) on Nginx
Hello, I use Nginx on Ubuntu 14.04 And my php script is just loading and won’t open! After a long time just loading the page, I come across this message: An error occurred. Sorry, the page you are…