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

learn more… | top users | synonyms

0
votes
0answers
6 views

How does Nginx understand forwarding request?

For example, on the router was configured Forwarding for all incoming requests to a dedicated IP Nginx server. The client requests a resource: www.google.com How does Nginx understand what resource ...
0
votes
0answers
10 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
10 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 ...
0
votes
0answers
13 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
8 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 ...
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
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] ...
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 ...
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 ...
1
vote
1answer
61 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 ...
0
votes
0answers
29 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. ...
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
26 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
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 ...
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 ...
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
65 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 ...
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 ...
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
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
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
60 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
346 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
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 ...
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
2answers
28 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
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
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 ...
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 ...
0
votes
0answers
79 views

Debian - Can't connect to nginx server from outside

Can't connect to my nginx server from anywhere but my LAN. I know I have portforwarded correctly, because I can telnet into a server on the same machine from the internet nginx.conf: user www-data; ...
0
votes
1answer
19 views

Can i use nginx.conf in public_html

I'm using nginx on my server and in my nginx.conf I have my web sites config. If I'm put the nginx.conf to public_html for specific config it will work ? Because I'm using wordpress and my security ...
0
votes
0answers
36 views

How to get user-agent, referrer from nginx error log

I see a lot of errors like the following in my nginx's error.log: 2016/01/06 15:57:41 [error] 9054#0: *381280040 open() "/mypath/current/public/images/default_avatar.png" failed (2: No such file or ...
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, ...
0
votes
0answers
21 views

How to configure Nginx to support PHP on Mac OS X

I am building a web site using Angular JS, hosted on my local system using nginx. I want to add a contact form to my web site, but I don't know how to configure my nginx.conf file to support php. My ...
0
votes
0answers
46 views

php-fpm downgrading php version

Current Software Version:- OS : CentOS 7 PHP : 5.6.14 After installation of php-fpm on nginx 1.8, it downgrades php to 5.4. Even though new and latest version(5.6.14) is already installed. I don't ...
0
votes
1answer
56 views

Nginx serving C++ cgi script: response is binary format

I am trying to run C++ CGI script on nginx. I am using FCGIWrap with script from nginx website. The program code is like this: #include <iostream> using namespace std; int main () { cout ...
3
votes
0answers
92 views

Nginx + openvpn (proxy) and access.log

I currently have a nginx server running on 444 and an openvpn on 443 with the port-sharing feature. The both applications run well but the IP written in /var/log/nginx/access.log is, thereby, ...
0
votes
0answers
40 views

Microsoft Edge force HTTP/2 usage

Im testing my web application with HTTP/2 protocol. Im using my local nginx with self signed ssl cert. On Google Chrome and Firefox there is no issue, the problem arises with Microsoft Edge. ...
0
votes
1answer
38 views

I'm getting ssh attacks

I'm getting millions requests in short time like in picture. Vestacp Mysql Request Graph When this attacks happend if i login ssh it shows this message. Last failed login: Wed Dec 16 12:52:56 ...
0
votes
1answer
83 views

How do I Enable JSON support on nginx

On a raspberry pi I am trying to install ldap-account-manager, which is a php application. I can successfully browse a simple php script but when browsing to LAM I receive an error indicating Your ...
0
votes
0answers
337 views

SELinux is preventing nginx from write access on the Unicorn socket

I'm trying to setup my Rails application with Nginx and Unicorn. Nginx throws following error by accessing root url of my Rails-app: дек 14 23:39:42 servercentos7 python[5604]: SELinux is ...