Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nginx]

nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

0
votes
0answers
25 views

How to serve static files from from a specific directory on a WordPress site running via Nginx

I have a WordPress site running on Nginx. In my configuration, I have a location block like this: location / { try_files $uri $uri/ /index.php?$args; } What I want to do is have a special ...
0
votes
1answer
17 views

Why would an Nginx HTTP to HTTPS redirect not work for the www subdomain

I configured NGINX to redirect all HTTP traffic to HTTPS like this: server { listen 80 default_server; listen [::]:80 default_server; server_name domain.com www.domain.com; return 301 ...
0
votes
2answers
72 views

Nginx server name regex allow dash

I have a site, running on nginx, when comes to the server name i come across some problem regarding the regex, as i know nginx is using Perl Compatible Regular Expressions(PCRE). Now my server name: ...
0
votes
0answers
10 views

Improve Linux Security by using specific groups for database and server

To improve security I want to create 2 groups, as following: database_group can start,restart,stop the Postgresql server can modify the Postgresql configuration files from /etc can't uninstall, ...
0
votes
0answers
39 views

Nginx GET atack

how can I block this request methoh, because I consume all my limits at vps, and the site becomes unavailable. I set it but it does not count in nginx.conf map $request_method $limit { ...
2
votes
1answer
17 views

Nginx: How to avoid server_name duplicate warning

I serve a site from nginx that is available both with internal host names as well as external ones. I want to force external access to use https, but keep http for internal access (because I can't get ...
0
votes
1answer
48 views

How to enable/install the php fileinfo module for php 7.2

I am running a nginx Server on ubuntu of which i am trying to install moodle. But I cant procédé with the setup because it needs the php fileinfo module enabled/or/instald. To be able to procédé with ...
0
votes
3answers
115 views

can't access website by ip but I can access by fully qualified domain

So it seems I can't browse a website by IP, but I can browse using it's hostname. C:\Users\c>nslookup www.example.com Non-authoritative answer: Name: cx-cdn-bre.gss.consultix.net Addresses: 62....
0
votes
0answers
33 views

nginx docker image causes commands on host to stall

docker container run -d -p 2345:80 nginx works almost as expected. Takes about 1s until nginx is available. However, as soon as it has been started, commands like top and htop completely stall the ...
0
votes
1answer
119 views

RTMP to HLS conversion frame rate issues with ffmpeg/nginx

Currently, I'm pushing a RTMP stream to nginx 1.15.3 running on Ubuntu 18.04 LTS from a raspberry pi 3 camera (which seems to be working well on its own, I can pull the stream with no issues on VLC ...
1
vote
2answers
26 views

Fallback for 404 page in nginx

I'm creating a "userdir" configuration, where the webserver serves files inside each user's ~/www directory. I have the following configuration snippet: server { listen 443; listen [::]:433; ...
1
vote
1answer
17 views

nginx index directive does not work

In the following configuration snippet for nginx: server { listen 443; listen [::]:433; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ...
0
votes
1answer
16 views

Port change on-the-fly

I have an API which reads only on ports 80/443 and I have an IIS server app that should talk with this API but the 80/443 ports are taken by Nginx. Is there a service that takes the API data sent from ...
0
votes
0answers
17 views

Can not run nginx webserver in docker

Hello i am trying to make a nginx server work in container.I have followed this guide : https://www.youtube.com/watch?v=Vyp5_F42NGs When i run the command docker run --name my-nginx -p 80:80 nginx:1....
1
vote
0answers
62 views

Nginx RTMP variables for push

Im trying to setup a nginx server to push an incoming stream to different streaming platforms for me and some friends. the problem to this is, that one of these platforms changes streamkey on every ...
0
votes
1answer
28 views

Public server with nginx

I would like to make my development server public. I have a static ip address from my ISP. As usually I have a router and server connected to that router. In the router's settings I've set the ...
0
votes
0answers
18 views

403 Forbidden nginx cakephp admin section

I have nginx installed on ubuntu with having cakephp installed in vhost. Website is working fine but getting 403 Forbidden error while trying to access domain.com/admin section. Nginx config file :- ...
0
votes
0answers
36 views

Locked out while setting up nginx

It's my first time trying to setup a web server. I was trying to set up a Digital Ocean Droplet running CentOS. During nginx setup, I 'accidentally' changed the permission of '/' to the nginx user, ...
2
votes
2answers
104 views

Is a website that is not linked anywhere completely hidden?

I want to create a webpage that only me, and another person have access to view. I don't want to use any authentication on it (username/password, certificates etc). My question is: If I serve the ...
0
votes
0answers
39 views

Forwarding IP camera webapp in local network with nginx

I want to securely access an IP camera in my home network. The IP cameras web-application is secured with a login-page but I don't trust it. Thus I configured my home servers nginx instance to proxy ...
0
votes
0answers
41 views

php 5 fpm not logging logs in file fpm-php.www.log

I have fpm-php.www.log file inside /var/log. But its not logging errors. I have set 777 permissions to fpm-php.www.log file and also ownership permissions are www-data www-data. My www.conf file ...
1
vote
1answer
50 views

Phusion Passenger not running as expected on VPS upgraded from Debian 7 to Debian 9

I just upgraded my VPS from Debian 7 to Debian 9, it used to run Nginx + PHP 5 + Phusion Passenger. The Debian 9 I am running is 32 bits and is on a 2GB RAM VPS. Upgraded all software, MariaDB, PHP, ...
1
vote
1answer
52 views

How to make nginx pages running on wsl visible on the local area network(lan)?

ah my last piece of the puzzle in creating a great dev environment... Nginx runs fine on wsl ubuntu 16.04. On the windows machine I can see pages with url localhost or url of any ip address in ...
1
vote
1answer
145 views

Named location as fallback in try_files directive

I'm having problem wrapping my head around routing processing in Nginx. server { listen 80; listen [::]:80; server_name my_domain; root /var/www/ep; index index.html; ...
0
votes
1answer
20 views

It it possible to host two different secure websites on same Linode server instance using nginx?

Lets say I have two different websites example1.com and example2.com both of which will be secure (HTTPS). I want to host these websites on same Linode server instance (not create two virtual hosts) ...
0
votes
0answers
65 views

Nginx server is stopping for no apparent reason

I've set up an Nginx server for my site. Unfortunately, Nginx stops after some days (it's not a fixed period, sometimes after 5 days, sometimes after 1 month) and my site goes down. I need to restart ...
0
votes
1answer
47 views

Configuring nginx/ngrest on Ubuntu virtual machine for outside access

I have a Ubuntu 18.04 VM running on Windows 7. The VM is configured for Bridged Adapter from Virtual Box. It can go online, has the same IP scheme IP with the local network, and can be pinged from ...
0
votes
1answer
65 views

Nginx configuration passing fastcgi parameter and rewriting depending on location

I'm searching a way to configure nginx with the a php applciation. It should serve static files if they exists. If they are in the subfolder /dev, they are only allowed for the 127.0.0.1; An uri ...
0
votes
1answer
171 views

ffmpeg restreaming to nginx, connection refused

New to ffmpeg and read a dozen of guides and howto, but still can't get it to work. I have a Tvheadend server that receives channels from DVB, the channels work without any problem, but I need to ...
2
votes
1answer
177 views

dokuwiki, nginx and farms

I am attempting to setup multiple dokuwiki's but I am really struggling... I can set up one with relative ease but I would like to make use of the farm concept ( https://www.dokuwiki.org/farms ). The ...
0
votes
0answers
22 views

Installing Lets Encrypt Certificates on ubuntu 16.4/Nginx and iRedMal

I am having trouble with site mailtest.example.com, ubuntu 16.4 installed fresh, in hosts hostname is set to mailtest.example.cm, iRedmail installed with nginx, DNS pointed to IP address and it ...
1
vote
1answer
43 views

Reverse proxing gitbucket via nginx

I'm currently trying to make nginx work with gitbucket using following this tutorial. Although this is the official gitbucket wiki this page is very incomplete, and i need to adapt some details from ...
0
votes
0answers
229 views

centos 7 nginx not accepting requests from outside networks

I'v configured a Nginx server on centos 7 and it works properly from the browser on the server. but when I try from any remote clients it says that it can not connect. I'v tried to add http to ...
0
votes
0answers
52 views

Hidden Service in nginx always redirect to the site in ClearNet

I have created my Hidden Service just to do experience, but I am having toubles doing it. As they says the official instructions here, https://www.torproject.org/docs/tor-onion-service I started ...
0
votes
0answers
10 views

nginx loadbalance for nodejs socket.io

I am trying to use nginx for reverse proxy, and direct to two servers running node.js with socket.io(websocket long connection.) When I pass it to one server, it works fine. But when I try to load ...
2
votes
1answer
70 views

can't reach nginx port with netcat

I have this simple nginx config file: server { listen 4000; location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html =404; } } nginx ...
0
votes
0answers
18 views

nginx drupal rewrite ?q=user to base url

I would like to redirect https://example.com/?q=user to https://example.com. Also, I would like to allow https://example.com/?q=user-info. I am configuring Nginx as my proxy and now using proxy_pass ...
1
vote
1answer
89 views

Secure PHPMyAdmin on Ubuntu Nginx - direct access to index.php still exists

On an Ubuntu - Nginx webserver I try to secure PHPMyAdmin. There are a lot of tutorials around, they propagate the use of auth_basic or allow own / deny all other IP addresses and/or use obfuscation ...
1
vote
0answers
29 views

Is this usage of the nginx if-directive safe?

According to their own documentation, if is Evil. They gave several examples that certain configurations will not work if an if directive is used. They don't go into detail as to why it behaves wrong ...
0
votes
0answers
138 views

How to redirect in nginx based on location?

What I would like to do I have a domain example.com, for which I require a SSL client certificate to access. This is done easily with the ssl_verify_client on; directive. Some ressources however, ...
0
votes
0answers
62 views

How to config http_secure_link in NGINX?

I have test config example, but it does not works. NGINX: location ~ \.mp4$ { secure_link $arg_md5,$arg_expires; secure_link_md5 "test"; if ($secure_link = "") ...
0
votes
0answers
150 views

Ubuntu brand new installation in VM, with nginx permission issues

I built a fresh VM built from the std Ubuntu 18/04 LTS x64 Server image. Installed updates, then installed VBox Guest Additions following the simple steps outlined here. Installed nginx with: sudo ...
-1
votes
1answer
32 views

I can SSH into server, but HTTP doesn't work at all?

I set up nginx everything has been working grand for a couple months until today I noticed that I couldn't connect to my website. I can : SSH into my server Service nginx status confirms that it is ...
0
votes
1answer
13 views

niginx proxy_pass no longer passing the real IP

I have this setup for years: centos5, nginx, apache Nginx is configured to proxy like this proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-...
1
vote
0answers
318 views

nginx + php-fpm70 getting 502 bad gateway

I'm Getting 502 bad gateway error in one of my magento2 site. Here are my configuration files. nginx.conf configuration file user nginx; worker_processes 4; worker_rlimit_nofile 100000; pid /...
1
vote
0answers
578 views

Nextcloud: Can’t create or write into the data directory /var/nc_data

I'm getting the above error. What I tried so far: checked the permissions. I even did chmod 777 /var/nc_data -R first included all used party in open_basedir in my php.ini. When that didn't work, I ...
0
votes
0answers
20 views

nginx ssl setup servernotfound and error.log file empty

## myapp backend ## upstream myapp { server 127.0.0.1:8069; } ## https site## server { listen 443 default; server_name myapp.xyz; root /usr/share/nginx/html; index ...
0
votes
0answers
127 views

Nginx rewrite .jsp extension and proxy to tomcat

Outgoing How can you create a Nginx rewrite rule in the appropriate server block, that takes any URL ending on .jsp and removes the .jsp extension after retrieving the correct .jsp page from the ...
0
votes
0answers
231 views

nginx php7.1-fpm.sock location

I'm getting an issue related with the location of /var/run/php/php7.1-fpm.sock. I have the php installed: php -v // PHP 7.1.17-1+ubuntu16.04. ...... But the problem is that the folder /var/run/ ...
1
vote
1answer
252 views

Why do queries with a slash work, but no trailing slash get 404's in my Nginx config?

Against below nginx config: upstream search { least_conn; server www.google.com:80 max_fails=1 fail_timeout=10 weight=1; ...