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

learn more… | top users | synonyms

0
votes
0answers
8 views

nginx ssl_write returns SSL_ERROR_WANT_WRITE and retry after many seconds

I'm using nginx-1.7.3 + openssl1.0.1j to do a https web proxy in front of my real server. I found there are always some requests' $request_time is much bigger than $upstream_response_time. I ...
0
votes
1answer
9 views

ubuntu 14.04 with froxlor running on php-fpm using letsencrypt wont work with global acme location config

Here is my problem. To use letsencrypt acme on every domain I add include /etc/nginx/acme.conf in every vhost config: acme.conf location /.well-known/acme-challenge { alias ...
2
votes
1answer
221 views

How to make Nginx virtual host work? (page not found)

Running Ubuntu 13.10 in VirtualBox. I've put my website in this folder: And created the log folder on /srv/www/streamsy.com/logs/. I've done these steps: sudo apt-get install nginx sudo chown -R ...
1
vote
1answer
60 views

Security regarding nginx + php on CentOS 7 with OwnCloud 9

I'm trying to setup a OwnCloud Server v9 for my freelancing purpose. SPECS: - CentOS 7 - nginx - php I'm a little bit confused. I can find only the info about the PHP Version 5.5 in the ownCloud ...
1
vote
0answers
217 views

502 bad gateway after putting up firewall nginx

My server was working, then I added a firewall for a bunch of ports! And now I get the error: 502 Bad Gateway nginx/1.4.6 (Ubuntu) Nginx server { listen 80; server_name 45.79.80.140; ...
0
votes
0answers
12 views

ERR_TOO_MANY_REDIRECTS between two Nginx servers

I've got a reverse proxying Nginx docker container to proxy requests to other servers. In this case its another Nginx container hosting the PHP application Magento. Every since I installed a wildcard ...
0
votes
0answers
11 views

Forcing SSL on Wordpress crashes site? [migrated]

So I have just installed a paid Comodo SSL on my website. I can visit my website with https://homepage.com/ but the https appears grey. Currently that isn't my worry. But when I visit the website ...
0
votes
0answers
7 views

How to get piwik running with nginx on Ubuntu?

Seeing that I want to learn more about linux administration today I wanted to set up an instance of the self-hosted Piwik statistics package for a website I'm running. Since I don't want to disturb ...
0
votes
0answers
12 views

What exactly are the security implications of ufw DEFAULT_FORWARD_POLICY “ACCEPT”?

I found this question asked on Serverfault, but the answer just provided alternatives instead of actually detailing the implications. I had to set DEFAULT_FORWARD_POLICY to "ACCEPT" to be able to ...
3
votes
2answers
3k views

Nginx & UserDir & PHP

I have a fairly simple nginx/1.4.7 installation (from Debian/unstable) and I'm trying to get PHP scripts to run inside a UserDir. server { listen 8083; ...
1
vote
2answers
95 views

Curl response hangs

I have a site set up in a virtual box. I am able to access it just fine from a browser on my machine, but I have trouble accessing it via CURL while SSH'ed in to the box. When I try, curl hangs ...
2
votes
1answer
329 views

Add module to nginx after installation

Hi i did install nginx with this command on centos 6 sudo yum install nginx and it work but i need to compile wit rtmp module so How can I find the path to make some changes ./configure ...
0
votes
1answer
12 views

How to write the file `nginx.service` on centos 7.2?

I installed nginx from source on centos 7.2,and I need a file ——nginx.service . There is an example of mysqld.service, http://superuser.com/a/384525/577295 I imitate it and write like this: [Unit] ...
0
votes
0answers
13 views

About second-level domain names corresponding to nginx server blocks

There are 2 second-level domain names and 2 corresponding folders,like this: domain name folder 111.aa.com /var/www/111.aa.com 222.aa.com /var/www/222.aa.com In nginx.conf,there are 2 ...
0
votes
0answers
11 views

OSX - Nginx on docker to forward docker app

Im new to docker and I was able to work with it on a Ubuntu machine and get access to a service hosted on this machine from an other (thank to nginx on the system). Since I need to do some dev from ...
8
votes
1answer
10k views

Why a listen 443 default_server; nginx rule override already configured rule (http rules working normal way)?

I have an nginx and different subdomains: a.mydomain.com b.mydomain.com c.mydomain.com Nginx has 4 rules: 1) rewrite rule: server { listen 80 server_name gl.udesk.org; root /nowhere; ...
1
vote
1answer
115 views

How do I use allow/deny in conjunction with set_real_ip_from?

My nginx backend server should only accept requests from my frontend, 1.2.3.4. However, I also want nginx to log the correct IP address, so I use set_real_ip_from. But by doing this, the allow rule in ...
0
votes
0answers
28 views

http connection works with IP address in Nginx but not with domain name

I have a website setup using Nginx. If I try to connect through IP it works fine. But whenever I try to connect through domain name, I got connection reset error. telnet mydomain 80 Works fine. ...
4
votes
1answer
5k views

Subversion over https + WebDAV on nginx

I wonder how do I create SVN repo and let users access it over http[s] + WebDAV on nginx I did not find any good tutorials describing this process whilst there are a lot of answers on this scheme but ...
0
votes
0answers
12 views

How to change transmission-daemon port?

In /etc/transmission-daemon/settings.json I changed "rpc-port": 9091 to "rpc-port": 69, but since then I've been getting ERR_CONNECTION_REFUSED when I try to open website:69. Earlier, I was able to ...
0
votes
0answers
13 views

How to forward CORS requests in Nginx to different handlers

I have a setup as shown below: I make a AJAX request to /handler_1 eg. /handler_1?q=abcd. If this handler gives a HTTP 500 then redirect to /handler_2 with /handler_2?q=abcd and return the response ...
0
votes
0answers
53 views

How do I get my nginx server on the internet?

I have a personal website and it's very small, therefor I don't want to pay for it be hosted online. After a few days of research I decided to install vmware with linux ubuntu-server 14.04 with an ...
0
votes
0answers
25 views

NginX Unicorn setup not serving Server Blocks

i used the awesome Gist to setup unicorn together with nginx. It works perfect so far. But now i have the need to serve a small app with basically static files for a subdomain. I create a server block ...
0
votes
2answers
98 views

NGINX and php-cgi on Windows “No Input File Specified”

I'm running php-cgi and NGINX. They are running in a folder, however their root directory is 2 directories out, and 2 in from there. When the root was html (default), they worked perfectly, however ...
0
votes
1answer
265 views

how to monitor network/cpu/memory/disk usage by each Rails app

I run many Rails app on linode VPS. I want to charge my customers by their usage, Is there anyway to monitor each Rails app's usage? I need these information network/cpu/memory/disk usage.
3
votes
2answers
4k views

unable to connect to localhost:80 after installing nginx

I just installed nginx by doing sudo yum install nginx and I'm unable to connect to it on port 80. I tried stopping iptables by doing sudo service iptables start and was still unable to connect. I'm ...
1
vote
0answers
9 views

Access backend Node JS application from Rails + NGINX

So I have a NGINX Webserver forwarding connections from port 80 to my Rails application. The Rails application handles authentication and serves basic functionality and static pages. I have several ...
1
vote
1answer
40 views

Correct configuring Nginx server to use a different port for a second website using the same IP

I have two websites site1 and site2 on the same VPS server (same IP). Now I am going to use Nginx as a reverse sever for both of them. site1 has already used port 80, which runs no problem so far. ...
0
votes
1answer
29 views

Why has my nginx failed?

sudo journalctl -xn -- Logs begin at Fri 2016-03-11 10:51:11 UTC, end at Fri 2016-03-11 11:21:33 UTC. -- Mar 11 11:21:12 server sudo[1095]: pam_unix(sudo:session): session opened for user root by ...
1
vote
0answers
14 views

Privilege separation per user for each web application

I'd like to ask a question about LNMP stacks and user privilege separation. I usually host websites on LNMP stacks and Wordpress on Debian 7 and 8 servers. I separate each Wordpress site into its own ...
0
votes
0answers
12 views

How can I make nginx give more attempts at Basic Auth?

I have the following configuration: location / { auth_basic "closed site"; auth_basic_user_file ../htpasswd; } However, when I go to that page and mistype my credentials, ...
1
vote
1answer
38 views

How do I stop nginx from serving requests on my public IP?

I am serving 2 public sites on a Pi from my home network using nginx on Ubuntu Server. My domains point to my no-ip account; both domains work perfectly. However, going to my IP address returns one of ...
0
votes
0answers
12 views

Can nginx pass certain extensions to a different server?

How would one let nginx deliver everything it is configured to serve, but pass certain extensions to a different server application? More specific, whenever nginx encounters a format that could be ...
0
votes
1answer
64 views

Ajenti not accessible on Port 8000?

I have an Ajenti installation on a dedicated server on my home network, which is portforwarded to Port 8000. Using canyouseeme.org, the port shows as open, however when I try to access it using the IP ...
1
vote
1answer
2k views

How to redirect to other server? (apache and nginx)

i have an Apache server running for two sites on port 80. Let's say the domain is example.com and I have an other domain example2.com. When a user visits example.com, I want it to serve those files ...
0
votes
0answers
22 views

Exclude specific address from nginx rewrites

In wodpress multisites i have a url like this >> site.com/prosites/?bid=123 . When user click it url goes to site.com/prosites . how can i exclude this url from rewriting in nginx ? Thanks
1
vote
0answers
75 views

Implementing fail2ban the correct way

I have a Django web app where people write comments and upvote/downvote others' comments. The webserver is gunicorn + nginx (reverse proxy). The db is postgresql. The db and web app reside in two ...
0
votes
2answers
27 views

webserver location /home/usr or /var/www/

I'm new to hosting my own webserver. I was curious and this may be an stupid question, but what location is practical and secure to for hosting on the web? /home/user/ or /var/www/html?? Because ...
0
votes
1answer
48 views

Using Nginx rewrite to change the shown URL from an IP?

I can't find any info on this so I don't know if it's even possible, but I was wondering: Can I use NGINX's rewrite module to change the displayed URL from, for example 123.123.123.123:6000/some/path, ...
0
votes
0answers
59 views

HTTP requests issue using nginx to serve static files as docker private registry

I am using nginx to serve images(manifests, digests) as private docker registry. Nginx container starts and mapping is done to port 5000 on docker host. Now the issue is when I try to docker pull ...
0
votes
1answer
341 views

NGINX X-Frame-Options allow only from single page

I am trying to setup my vHost to allow iframes from only one subdomain of our network. Before we had: add_header X-Frame-Options "SAMEORIGIN"; on all our pages. To accomplish what I want to do I ...
1
vote
0answers
42 views

Transmission-daemon and security [closed]

Recently I have installed and configured transmission daemon on my server, but I wounder how I can increase security of it. I am using nginx to provide access via ssl but I have a question about ...
0
votes
1answer
169 views

Standby/Offline stream image with ffmpeg/nginx RTMP

Is there a way to script NGINX RTMP to show a Offline/Standby video or static image when there is no incoming streams to rebroadcast? The idea is that when there is no incoming RTMP streams (ffmpeg, ...
2
votes
0answers
32 views

Why does Google Chrome automatically play MP4 videos (and is that a good thing?)

I am working on a home media server running nginx. I navigated to one of the .mp4 files I have to test it and it started streaming just by clicking on it. Is this... performance-wise... the best ...
0
votes
1answer
47 views

nginx returns error 500 when I delete cache

I am using nginx 1.8.1 with microcache to cache some php requests on /dev/shm and it's working fine, however, when I reboot the server the cached files are gone (obviously) but nginx still references ...
0
votes
1answer
45 views

Troubleshooting Nginx returning random 503 on Wordpress site on Raspberry Pi

I've started self-hosting a small Wordpress website served by Nginx on a Raspberry Pi 2 Model B at home. Network wise, I had to put my Pi's IP on DMZ (I have a trashy router from my ISP). It's ...
0
votes
1answer
21 views

Nginx in chroot jail, symlink to available servers not working

I've set up Nginx inside a chroot jail at /srv/http (Arch Linux). I've modified my nginx.conf so that it includes my enabled servers: include /etc/nginx/servers-enabled/*; And I've symlinked the ...
0
votes
0answers
14 views

Registering with Consul Cluster?

Right now when I add Consul Agents to our infrastructure I need to know the ip address for an existing Consul instance. Which is kind of sub-optimal from devops perspective. How would one usually ...
0
votes
1answer
194 views

Using proxypass with plesk, show admin session ip

I've setup a subdomain for use with plesk so I don't have to type out the port all the time. Here is my HTTP configuration: SSLProxyEngine Off RewriteEngine On RewriteCond %{HTTPS} off RewriteRule $ ...
1
vote
1answer
70 views

nginx: Configuring multiple vhost without a subdomain

I have an nginx server. I have a public IP address but I don't have any subdomains. I would like to split my dev and test servers. So can I set up these servers ie http://55.22.11.127/dev and ...