Questions tagged [nginx]

nginx is an open-source Web server and a reverse proxy for HTTP, SMTP, POP3 and IMAP protocols, aimed at high performance and low memory usage.

Filter by
Sorted by
Tagged with
0
votes
0answers
115 views

SlimFramework 3.* + NginX Subfolder Configuration

Hi guys we're using nginx for a web server and decided to write the API on that server as well using Slim framework. This is our config: server { listen 80; server_name xx.com www....
0
votes
2answers
39 views

Is their anyway to get TLS 1.3 on Nginx without building from source

Currently running NGINX on redhat 7.7 production webserver, I think I know the answer but I wanted to double check. The issue is I'm trying to get TLS1.3 working. Below is part of my conf. ...
-4
votes
0answers
15 views

My reverse proxy not working with my domain (ERR 404) [closed]

I set up a reverse proxy for my domain devnerd.me and ip http://108.198.252.235/ and the domain display ERR 404 while my ip display my content. Help
0
votes
1answer
16 views

curling ESP8265 status Is:no such file or directory

I'm on OSX Mojave 10.14.6 I'm a trying to flash a newer firmware via OTA on an ESP8265 SoC embedded on a smart switch. I created a network with specific SSID and PSW. The ESP is connected to the ...
0
votes
0answers
22 views

How to investigate long response time for request [closed]

Developers noticed quite long response time (11 seconds) for Ajax requests on our website. The request is waiting for response in queue, because the browser already send a coulpe of Ajax requests. I ...
1
vote
1answer
39 views

Docker nginx-proxy hangs on startup

Docker version 19.03.5, build 633a0ea838 Linux xxx 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux I'm trying to setup an Nginx Proxy with Docker ...
0
votes
1answer
28 views

How to intercept HTTP request before passing to any web server like APACHE or NGINX?

I would like to send a custom response before any request hit to any web server like APACHE, NGINX or any other. I heard about Content-filtering and Packet-filtering. So I am not looking for the ...
0
votes
0answers
96 views

Peer closed connection in SSL handshake

I have a question about nginx. I created a reverse proxy by nginx. Activated SSL encryption with Letsencrypt. All is ok and all requests from client are sent to origin server specified in upstream. ...
0
votes
1answer
18 views

Can't rsync to www-data owned directory

I have a ubuntu 18.04 server running on GCP (nginx+php7). I've setup a directory /var/www/mysite.com which is drwxr-xr-x www-data:www-data. public_html/ is also drwxr-xr-x www-data:www-data. I'm ...
0
votes
1answer
24 views

Permission issue connected to Samba share folder

I am having permission issue using Grav cms. Grav file system requires write access to their cache folders. The storage device that has the grav sites is on an external usb drive connected to a ...
0
votes
1answer
34 views

How to configure nginx for multiple URL to which provide different resources

I saw a various examples of how to configure multiple domains with Nginx, but my URLs are providing resources different from than web page domain. Is there any difference between them in way of ...
0
votes
0answers
27 views

Is it possible (and how if it's possible) to log the serve time in NGINX?

I need to log the time that NGINX spends to service my request: from the moment when the request arrives to the sending of the last byte to the client. How can I achieve it? Is it possible? If yes, ...
0
votes
1answer
34 views

Append a line in a service file

I've built a docker container and I need to make changes to the service.nginx file. I have the following variables defined: LINE=$(cat /usr/lib/systemd/system/nginx.service | grep -n "ExecStart=" | ...
-1
votes
1answer
48 views

How does Nginx server_name directive work with CNAME record

Scenario I have a website served by nginx listen at domain myabc.domain.com. The nginx configuration is: server { listen 443 ssl; server_name myabc.domain....
0
votes
0answers
24 views

Running Nginx+PHP7.0 -> Error: “Impossible to load class id” [ProjeQtOr]

As a local non-government organization, I am trying to evaluate how ProjeQtOr, a software for project management written in PHP, will meet our expectations. I installed ProjeQtOr version 8.2.3 with ...
0
votes
0answers
17 views

which directory is unsafe for deployment?

I'm going to deploy a Django web-application, with Nginx as the webserver And I wanna deploy it on /opt/ directory. My question is: Which permissions should I set to /opt/ and which I shouldn't. In ...
0
votes
0answers
15 views

How to edit configuration of Ubuntu init.d NGINX script

I am using init.d to daemonize my NGINX process. The location of the script is /etc/init.d/nginx. When I edit this file, all I see are special characters like it's an executable non-editable file. How ...
0
votes
0answers
20 views

Ubuntu 16.04 - Nginx install is using the old Nginx init.d method

Ubuntu 16.04 - Nginx install is using the old Nginx init.d method. How would I switch to systemd without conflicting with the init.d method? Is there even a reason to?
0
votes
1answer
269 views

connect() to unix:///tmp/uwsgi_dev.sock failed (2: No such file or directory) while connecting to upstream

I tried to run django application using uwsgi+nginx and the cronjob command is,* * * * * /usr/local/bin/lockrun --lockfile /path/to/lock_file -- uwsgi --close-on-exec -s /path/to/socket_file --chdir /...
0
votes
1answer
148 views

Correct /etc/hosts configuration in ubuntu 18.04

Hello i want to have three virtual severs in my localhost Virtual machine Ubbuntu 18.04. Id like one localhost -> /var/www/html one onlyoffice.eduardo.com -> /var/www/onlyoffice ( document server) ...
-1
votes
1answer
24 views

NGINX - How to export the entire server block for a given domain

I need a tool or one-liner or whatever, which will export the entire server {...} block containing the given domain. For examples: ### 1) cat conf.d/domains.conf server { include http.conf; ...
0
votes
1answer
55 views

Deploy gatsby on nginx has wrong redirect address when refresh and brings out port number?

I have a website, and deploy the site on nginx in docker container. The problem is when I refresh the site the chrome address bar brings out the port number and redirects wrong. I am a front-end ...
0
votes
0answers
43 views

compile nginx 1.16.1 with ngx_stream_log_module

I want to compile Nginx 1.161.1 that contain ngx_stream_log_module, so I do it: ./configure --sbin-path=/usr/local/nginx/nginx \ --conf-path=/usr/local/nginx/nginx.conf \ --pid-path=/usr/local/nginx/...
0
votes
0answers
23 views

Wordpress Added 301 Redirect That Shouldnt Be There

Im running a wordpress install on NGINX having recently migrated to a cloud droplet. All was well for a while but now a redirect has appeared and I don't know how to fix it This is the header ...
0
votes
0answers
41 views

NGINX location directive - Not serving gzip pre-compressed files

I have a Wordpress website where I am trying to serve through nginx, gzip pre-compressed html files generated by WP Super Cache plugin and for that I created a location directive with special headers ...
0
votes
0answers
20 views

Https redirects to nginx welcome page but http works well

conf file user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## passenger_root /usr/...
0
votes
0answers
32 views

nginx proxy resolves to container hostname

Following problem: I have a system with some docker container (nginx reverse proxy, the others with other applications run with springboot, webserver and so on). Everything works fine, except in a ...
0
votes
0answers
55 views

301 error when checking nginx_status

Zabbix shows 301 error when trying to get nginx_status. This is how my zabbix.conf looks like: server { listen [::]:80; server_name 127.0.0.1; location /nginx_status { stub_status on; ...
0
votes
0answers
77 views

Nginx Reverse proxy redirect only urls without .com in the ending

I am trying to redirect two urls e.g. http://mysite/ or https://mysite/ both of these should be redirected to https://mysite.com/ If the url is e.g. http://mysite/index.php it should be redirected ...
0
votes
0answers
63 views

What is the nginx equivalent of `apachectl -S`?

With Apache apachectl -S lists all enabled sites by IP address and port, including the vhost file. eg. $ sudo apachectl -S #VirtualHost configuration: 172.31.111.200:80 is a NameVirtualHost ...
0
votes
0answers
13 views

How Do I Setup Domains In NGINX?

I'm trying to setup PHPMyAdmin with MySQL and use NGINX to host it and be ale to access it across my LAN. I'm also hoping to use the RTMP module for another project I'm working on so I'm trying to ...
3
votes
1answer
168 views

NGINX can't read custom headers from response

From my nginx server I want to get an auth response with custom headers from an external Apache server. The problem is, I can't get the custom header's value. location /app { ...
0
votes
1answer
306 views

Gunicorn + flask + nginx + wsgi error 502 Bad Gateway

I have tried looking for an answer, but mostly people get this error with uwsgi not Gunicorn. nginx error log has the following output: 2019/09/20 17:23:20 [crit] 28847#28847: *2 connect() to unix:/...
1
vote
0answers
37 views

Mount numerous SquashFS images

I am trying to configure a web server so that it can serve web apps using NGINX. We expect to have 15,000 different web apps. Each web app is supposed to be packaged in a SquashFS image, containing a ...
0
votes
0answers
29 views

NGINX - Balance protocol UDP

I need to configure Nginx to balance my UDP requests on port 514, to send logs via syslog. My setup below is working, but the IP I am sending is from the balancer, I need the real IP from the client. ...
1
vote
0answers
22 views

How to configure in nginx to allow ip and optional client certificate

Following case: I need to configure my nginx that certain IPs can access it or you need a certificate for it. server { . . . ssl_verify_client optional; location /admin { allow XXX....
0
votes
1answer
63 views

Permission denied when I try to transfer file using scp -r

I am getting an error when I run this code: scp -r ./build/* rose@IP_address:/var/www/mywebsite.com/html Permission denied(publickey) lost connection It worked the first time but won't when I ...
0
votes
0answers
59 views

Access a raspberry pi command line via ssh using remote port forwarding

We are attempting to deploy a small fleet of raspberry pis that we want to be able to remotely manage. To do this, we need to be able to ssh into the pi. I set up reverse port forwarding using on a ...
0
votes
1answer
36 views

nginx blocks port even when stopped

after a service nginx stop I checked for ports 80: ps ax | grep nginx 898 ? Ss 0:00 runsv nginx 943 ? S 0:00 svlogd -tt /var/log/gitlab/nginx 4063 pts/0 S+ 0:00 ...
0
votes
2answers
85 views

nginx - return http 410 code for every path

I'm trying to configure nginx to return a http 410 ("Resource Gone") code for any path under / My config is below. With this config, if I request /410test, I get a standard nginx 404 Not Found page, ...
0
votes
0answers
20 views

Hosting MathJax on nginx server: CORS errors

I am trying to host MathJax on our location network (IP 10.0.x.y, no hostname) using the following nginx config: server { listen 80; server_name _; location ~* \.(ttf|ttc|otf|eot|woff|...
1
vote
0answers
28 views

How to gather stats of accessed file, true http

I have a simple file/web server. On that server I have files which are accessed by myself and others, using a URL. It is on Ubuntu 14.4 server with nginx. I want to know how many times a file was ...
0
votes
0answers
23 views

Nginx php-fpm optimization in centos 7

My server setup uses cloud azure VMSS. I have an issue when testing 200 users' requests that produce error 502 and non-HTTP response message connection timed out connect. Already followed some ...
1
vote
0answers
138 views

nginx: [emerg] getpwnam(“nginx”) failed in /etc/nginx/nginx.conf:5

I already checked the question that is similar, but mine is not chrooted. I am using default nginx.conf file.
0
votes
0answers
32 views

Nginx FastCGI cache Error (Not Disable cache)

I have enabled caching for the entire site except for certain pages. But disabling fastcgi_cache caching does not work for /login/index.php or /login. My Cms Opencart 2.3 set $no_cache 0; ...
0
votes
1answer
186 views

Showing “Cannot create SSL client. SSL is not enabled in this build” when connecting to Cosmos DB (MongoDB API)

I am facing the error "Cannot create SSL client. SSL is not enabled in this build" when connecting to CosmosDB using the MongoDB API. My PHP configuration suggests SSL support is included in my ...
0
votes
1answer
522 views

Nginx real IP logging not working?

I have the following nginx configuration: worker_processes auto; daemon off; error_log /dev/stdout warn; include /etc/nginx/modules/*.conf; events { } http { real_ip_header X-Forwarded-For; ...
0
votes
1answer
1k views

How do you install Nginx 1.16 or 1.17 on AWS Linux via yum?

When referencing the page https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/#stable_vs_mainline I have added the following repo entry /etc/yum.repos.d/nginx.repo ...
1
vote
1answer
112 views

Failed to start Raise network interfaces after Nginx SSL configuration

My networking service has failed to restart, first after some configuration, then after a reboot. I'd like to know why and how to resolve the issue. As I'm fairly new to Linux, especially when it ...
0
votes
0answers
37 views

Issue to see quick testing web server online, how to fix?

1-sudo apt install nginx 2-sudo chown user /var/www/html 3-sudo geany /var/www/html/index.html (put hello world!) 4-/etc/nginx/sites-enabled/default change : server { listen 81 default_server; ...