Nginx Forum - Site Suggestions What you would like to see here at the site Wed, 18 Nov 2020 04:26:24 -0500 Phorum 5.2.16,289873,289873#msg-289873 forum - activation email did not work with address (no replies),289873,289873#msg-289873
I did manage to create this account using a work email address.

Just want to point out potential issue with the forum.]]>
FoolProxy Site Suggestions Tue, 03 Nov 2020 11:17:43 -0500,289357,289357#msg-289357 how does nginx work on "Welcome to nginx" page? (no replies),289357,289357#msg-289357 and i did
mv /usr/share/nginx/html /usr/share/nginx/html_bk
but browser still dispaly
"Welcome to nginx on Fedora!"
then i added directive on nginx.conf
autoindex off;
browser keeps dispalyng "Welcome to nginx on Fedora!".

i want to understand how nginx display this page.
hope someone would reply.
thanks in advance.]]>
kou Site Suggestions Wed, 09 Sep 2020 07:39:15 -0400,288984,288984#msg-288984 Is there any way to configure my wordpress site with Nginx Without Losing the data? (no replies),288984,288984#msg-288984 I have used many renowed servers for my webiste but sadely they didnt worth it,my webiste's load time dosent improve after many optimization, on eof my friend suggest me to use Nignx, so I have decided to Configure My website: [] with Nginx, my webiste is loaded with lots of CSS and plugins i dont want to loss the structure of my website is there any way to safe migrartion.

1. iam using GP premium theme.
2. wp smush and wp rocket.
3 Shortcode Ultimate
4.wordfence plgin
5.Askmit for security.
and many more.

kashif24 Site Suggestions Thu, 06 Aug 2020 01:19:31 -0400,287858,287858#msg-287858 suddenly my configuration is not caching (no replies),287858,287858#msg-287858 these parameters and restart the service now I only have MISS and it is not caching anything.

parameter add:
large_client_header_buffers 8 64k;
client_body_buffer_size 32k;
client_header_buffer_size 8k;

my config is:

# Log format caching
log_format cache '"***$time_local ' '"$http_x_forwarded_for ' '"$remote_addr ' '"req_time=$request_time '
'"$upstream_cache_status ' '"Cache-Control: $upstream_http_cache_control '
'Expires: $upstream_http_expires ' '"$request "($status) ' '"$http_user_agent" ';

server {

listen 80;

# Logging
access_log /var/log/nginx/xxx-access.log cache;
error_log /var/log/nginx/xxxx-error.log error;

#large_client_header_buffers 4 16k; -->before
large_client_header_buffers 8 64k; --->after
client_body_buffer_size 32k;
client_header_buffer_size 8k;

location / {

proxy_cache web-cache; -->declared in file nginx.conf
proxy_cache_key "cache_3$host$uri";

proxy_send_timeout 30;
proxy_read_timeout 30;

proxy_http_version 1.1;
proxy_set_header Connection "";

proxy_set_header Host $host;
proxy_pass xxxxxx;
proxy_cache_valid 5m;
expires 10m;
proxy_cache_valid 502 503 2s;
proxy_cache_revalidate off;
proxy_cache_methods GET HEAD;
proxy_ignore_headers Cache-Control Expires X-Accel-Expires Vary Set-Cookie;
proxy_cache_min_uses 1;
proxy_cache_background_update on;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_lock_age 5s;
proxy_cache_bypass $arg_bypasscache;
add_header x-cache-status $upstream_cache_status;
add_header x-cache-key "$host$uri";
#add_header X-Frame-Options SAMEORIGIN;

location /envivo/(.*) {
expires 120m;
proxy_cache web-cache;
proxy_pass xxxxxxx;
# #access_log on;

location ~ \.php$ {

proxy_pass xxxx;

location @backend {
# essentially the same as passing php requests back to apache
proxy_pass xxxx;

location ~ /\.ht {
deny all;

location /nginx_status {
allow; #only allow requests from localhost
deny all; #deny all other hosts

antoniored87 Site Suggestions Mon, 27 Apr 2020 20:18:08 -0400,285947,285947#msg-285947 French forum (1 reply),285947,285947#msg-285947
Would it be possible to create a French forum?

We are several french users (see the presentation), but no dediated forum.

daruom13 Site Suggestions Thu, 28 May 2020 12:01:02 -0400,283235,283235#msg-283235 404 not found error (no replies),283235,283235#msg-283235 pankaj2659 Site Suggestions Fri, 01 Mar 2019 02:59:50 -0500,276642,276642#msg-276642 Please make the URL usable (no replies),276642,276642#msg-276642,142]]> alwaysjohn Site Suggestions Mon, 02 Oct 2017 06:02:41 -0400,273427,273427#msg-273427 502 Bad Gateway nginx (no replies),273427,273427#msg-273427
I badly need help, I have '502 Bad Gateway nginx', here is my story:

Installed Centos 7 Minimal on Hyperv.
Installed WHM/Cpanel.
Installed nginx public as:
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install

nginx error log from whm : [emerg] 64146#0: unknown "no_cache" variable
Nginx error log from /var/log/nginx/vhost-error_log :
*1 connect() failed (111: Connection refused) while connecting to upstream, client:, server:, request: "HEAD http://myip.add.ress:80/ mysql/dbadmin/ HTTP/1.1", upstream: "http://myip.add.ress:8081/mysql/dbadmin/", host: "myip.add.ress".

I am newby in this Linux and Nginx things, if you need more information, please let me with "how to generate them".

Thank you in advance.]]>
vlmem10 Site Suggestions Wed, 05 Apr 2017 10:59:33 -0400,272542,272542#msg-272542 How to choose "flat" layout of this forum? (no replies),272542,272542#msg-272542
But I can not find such an option or setting on your forum.

Could you please give me some help?

Thank you.]]>
baijianpeng Site Suggestions Mon, 20 Feb 2017 23:35:27 -0500,269560,269560#msg-269560 Where is njs log file? (1 reply),269560,269560#msg-269560 I wrote the line
req.log("hello from foo() handler");

But I can't find the log file, do you know the path of the log file or any document to guide to enable log message, thanks.

js_include http.js;
server {
location /hello {
js_set $foo foo;
add_header X-Foo $foo;
js_content baz;

function foo(req, res) {
req.log("hello from foo() handler");
return "foo";

function baz(req, res) { = 1234;
res.status = 200;
res.contentType = "text/plain; charset=utf-8";
res.contentLength = 15;

xmlredice Site Suggestions Wed, 14 Sep 2016 04:59:43 -0400,267753,267753#msg-267753 Amazon EC2 RHEL 7 instance yum repo config (no replies),267753,267753#msg-267753
In the default configuration from official site:

corresponding yum config is not valid for EC2 RHEL t2.micro instance
name=nginx repo

Because it's resolved into the broken link:

failure: repodata/repomd.xml from nginx: [Errno 256] No more mirrors to try. [Errno 14] HTTP Error 404 - Not Found

Somebody should add new config for Amazon EC2 RHEL like:
name=nginx repo

or investigate problem depeer, and suggest better config.

Can anyone forward my suggestion to website admins?]]>
bskydive Site Suggestions Wed, 22 Jun 2016 03:42:47 -0400,266554,266554#msg-266554 Nginx and rtmp not start (no replies),266554,266554#msg-266554 Here is my config

May 1 15:59:57 nginx[991]: nginx: [emerg] host not found in url "" in /etc/nginx/nginx.conf:81
May 1 15:59:57 nginx[991]: nginx: configuration file /etc/nginx/nginx.conf test failed]]>
viktor6 Site Suggestions Sun, 01 May 2016 09:15:20 -0400,262404,262404#msg-262404 Registration broken: captcha not loading (1 reply),262404,262404#msg-262404
Modern browsers refuse to load http content inside https pages, therefore the captcha doesn't show up and registration is not possible (missing captcha code).

It should work if you load the captcha code from instead.

sputnik73 Site Suggestions Fri, 30 Oct 2015 07:22:46 -0400,258734,258734#msg-258734 Wordpress site not running properly!! (no replies),258734,258734#msg-258734
We have six Wordpress site running on ngnix. We are facing Wordpress Admin Css Distorted problem due load-scripts.php is not loading from last 5 Months.We have tried some solutions but nothing to work. The frequency of this issue is Between: 3-7 days. The solution of this issues is restart the server which is not permanent solution.]]>
webmaster-cmil Site Suggestions Fri, 08 May 2015 07:31:38 -0400,258592,258592#msg-258592 WordPress Admin Styles Not Loading (4 replies),258592,258592#msg-258592
We have six Wordpress site running on ngnix. We are facing Wordpress Admin Css Distorted problem due load-scripts.php is not loading from last 5 Months.We have tried some solutions but nothing to work. The frequency of this issue is Between: 3-7 days. The solution of this issues is restart the server which is not permanent solution. Here is the list of sites and attached images for further references:]]>
webmaster-cmil Site Suggestions Tue, 31 May 2016 15:04:05 -0400,258022,258022#msg-258022 Reading variables in nginx module. (no replies),258022,258022#msg-258022
i have a following sets in /location :

location /test {
set $level 1;

How can I read the variables value in my_module ?

Nikhita Site Suggestions Tue, 14 Apr 2015 06:56:31 -0400,257751,257751#msg-257751 nginx after php update (no replies),257751,257751#msg-257751 I got hugh problem with my site - today after PHP update it staret to show error.
I didnt change any configuration files. Connection on port 9000 is still working correct.

Any ideas?]]>
MarkAsysteo Site Suggestions Mon, 30 Mar 2015 12:32:03 -0400,257235,257235#msg-257235 Attach files and images support the questions made (no replies),257235,257235#msg-257235 It 's courius, but here in this section exist a "attach file" link, but into the "mailing list" section does not exist.

It would be great, if any of this features could exist.

Sorry for my english it's sucks.]]> Site Suggestions Thu, 12 Mar 2015 22:42:08 -0400,257151,257151#msg-257151 Enable the use of CGI for a directory (no replies),257151,257151#msg-257151
I have to run cgis found in a specific directory, these cgi are written in C.
I found guides to run perl cgi facts or make calls using php.
In this old project is not used php or perl, the cgis are called by https.

In apache was only necessary

<Directory / usr / local / myproject / cgi>
Options + ExecCGI -Includes -Indexes
SetHandler cgi-script
Order allow, deny
Allow from ip
</ Directory>

The machine is mounted on CentOS 7.

Can anyone tell me the settings to serve this type of CGI?]]>
jdcd9001 Site Suggestions Mon, 09 Mar 2015 13:43:42 -0400,257081,257081#msg-257081 Topics for various problems (no replies),257081,257081#msg-257081 anyway here is the problem:
In a nut shell, I am trying to install a control panel, as well as nginx, it is called "froxlor", however to complete the installation, I need to link:
http:://localhost/froxlor and the installation should continue, but it does not, the problem , froxlor is in var/www , nginx is in usr/share and I guess I need to make a change in the nginx conf file, so it can link,..?
If there is anybody here that can help on this I will gladly give more details, but I kind of get a feeling I am wasting my time here.,
I am using Debian, Wheezy, and did read this in the docs.
README for Debian

Files under /var/www/ are not supported as per Debian Policy.
Please see: and, for more
details and explanations.

-- Kartik Mistry <> Fri, 05 Mar 2010 13:31:15 +0530[/quote]
Does anyone know of a "work around" to work with this.]]>
GarryRicketson Site Suggestions Thu, 05 Mar 2015 16:43:45 -0500,256246,256246#msg-256246 Nginx and php-fpm tunning (no replies),256246,256246#msg-256246
We are using Nginx for our web servers and time to time we need to tune of the web servers as per the hardware resources.

Please share documents how can tune the nginx and php-fpm as hardware resources.

ashokkumar2003 Site Suggestions Fri, 23 Jan 2015 02:29:57 -0500,255474,255474#msg-255474 I install BigBlueButton 0.9.0-beta end have problem nginx and do not install bbb (2 replies),255474,255474#msg-255474

now have problem how fix? in plesk nginx

/var# sudo apt-get install -f nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version.
nginx set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
nginx : Depends: nginx-core (>= 1.4.6-1ubuntu3.1) but it is not going to be installed or
nginx-full (>= 1.4.6-1ubuntu3.1) but it is not going to be installed or
nginx-light (>= 1.4.6-1ubuntu3.1) but it is not going to be installed or
nginx-extras (>= 1.4.6-1ubuntu3.1) but it is not going to be installed or
nginx-naxsi (>= 1.4.6-1ubuntu3.1) but it is not going to be installed
Depends: nginx-core (< 1.4.6-1ubuntu3.1.1~) but it is not going to be installed or
nginx-full (< 1.4.6-1ubuntu3.1.1~) but it is not going to be installed or
nginx-light (< 1.4.6-1ubuntu3.1.1~) but it is not going to be installed or
nginx-extras (< 1.4.6-1ubuntu3.1.1~) but it is not going to be installed or
nginx-naxsi (< 1.4.6-1ubuntu3.1.1~) but it is not going to be installed
nginx-full-dbg : Depends: nginx-full (= 1.4.6-1ubuntu3.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).]]>
registration Site Suggestions Thu, 05 Feb 2015 11:27:50 -0500,254494,254494#msg-254494 Deploying Java Restful Web App on Nginx directly (no replies),254494,254494#msg-254494 I'm in a situation where I have to deploy my java restful web application on Nginx directly without any application server. Is that possible to that. If so, can you please provide any reference documentation to do that. I'm new to Nginx.

sandeepkolla99 Site Suggestions Fri, 31 Oct 2014 11:45:51 -0400,248013,248013#msg-248013 Problems with post_action (no replies),248013,248013#msg-248013
have a little problem and hope you can help.
On my site i want to offer some downloads.
Every download is using one same file but with differen id's like http://download.php?get=1
But i want to limit the traffic for the users so i have to log the sent_bytes.
But here is the first problem. i don't want to use logfiles like access.log i want to use post_action .
i had read some tutorials and configured nginx with the tutorials.

so far so good

i tested with the first howto ... with the second howto .... with the third howto
but the maximum i will get in the log is the following:

[FileName] => /dl/download.php
[ClientIP] => ClientIP (f.e 1.234.567.89)
[body_bytes_sent] => 5 (But 5 is not the downloaded traffic, it is just the size of the download.php)
[status] => OK

Here is my nginx vhost config:

location ~ ^/dl/download.php
proxy_pass http://MYSERVERIP/count.php?FileName=$request_uri&ClientIP=$remote_addr&body_bytes_sent=$body_bytes_sent&status=$request_completion;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
post_action @afterdownload;

location @afterdownload
proxy_pass http://MYSERVERIP/count.php?FileName=$request_uri&ClientIP=$remote_addr&body_bytes_sent=$body_bytes_sent&status=$request_completion;

Can you explain me my fault please?

i tried with more proxy settings too:
(location download.php)
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X_Forwarded_Proto $scheme;
proxy_read_timeout 120;
proxy_connect_timeout 120;

and (location @ afterdownload:)
proxy_set_header RateBytes $body_bytes_sent;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X_Forwarded_Proto $scheme;
proxy_pass_request_body off;
proxy_pass_request_headers off;]]>
.paradox Site Suggestions Fri, 28 Feb 2014 16:53:32 -0500,244025,244025#msg-244025 Downloading NginX for eclipse? (no replies),244025,244025#msg-244025
Can someone please help me download nginx for Eclipse? I have the Spring STS suite, which comes with its own server pre-configured, so will I be able to use NginX as well, or on top of that? I need to start practicing NGinX, so please help.

If this is the wrong section, then Mod, please move it to the right place. Thanks

coder12 Site Suggestions Wed, 23 Oct 2013 03:12:39 -0400,244024,244024#msg-244024 Reply moderation? (1 reply),244024,244024#msg-244024 It's not on the forum still.
Could you moderate my reply please?]]>
ulrith Site Suggestions Thu, 24 Oct 2013 09:41:25 -0400,243368,243368#msg-243368 Support for Proxy_Protocol needed (1 reply),243368,243368#msg-243368

karagol Site Suggestions Wed, 02 Oct 2013 09:27:30 -0400,239247,239247#msg-239247 Support for some markup, at least *bold* / <pre>code</pre> (2 replies),239247,239247#msg-239247
just a few moments ago I posted an answer to a question in the "How to..." forum, and I was looking really hard to find a way to emphasize the most important parts of my answer and format the nginx configuration code for better readability. Unfortunately, I didn't find any way to do that. Here's what I tried:

- using simple html markup like <b>this should be bold</b>
- using markdown markup like **this should be bold**
- using BBCode markup like [b]this should be bold[/b]

Are there any supported ways to highlight part of a post or is it all plain text?]]>
0liver Site Suggestions Tue, 04 Mar 2014 17:06:52 -0500,235790,235790#msg-235790 Nginx + Tomcat = Redirect Loop Nightmare (no replies),235790,235790#msg-235790
I've tried literally hundreds of configuration attempts, admittedly without too much knowledge of proxy_pass(although I feel like an expert now). Here's the deal

1) Nginx 1.2.6 is configured with 2 servers (1 non-ssl & 1 ssl)
2) Tomcat is configured on port 8080 (with redirectPort=443) on a standard HTTP/1.1 connector.
3) The Java Application tells the tomcat container it's entered a restricted & secured url
4) It's my belief that tomcat then uses the redirectPort(443 in this case) to redirect the request to https
5) It's Nginx that sees this request via a server configured with ssl on port 443
6) A location / { proxy_pass http://localhost:8080} is used on the ssl server

For some reason I can't get the http to https transition(requested by the j2ee application) to work without a redirection loop.

Please help!]]>
billmanhillman Site Suggestions Fri, 01 Feb 2013 00:39:11 -0500,229099,229099#msg-229099 French sub-section (1 reply),229099,229099#msg-229099
Please open a French subsection we frequent request in IRC channel on Freenode.

Thanks and congratulations for geat work !]]>
MaxDudu Site Suggestions Sun, 05 Aug 2012 09:03:09 -0400