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

learn more… | top users | synonyms

0
votes
0answers
3 views

Accessing nginx server when offline

Yo! I've been trying to get nginx to work when I'm offline, but both Iceweasel and Chromium complains about not being able to access the domain. It works just fine when I have Internet access. I'm ...
0
votes
1answer
10 views

Nginx: Different static files for different URLs

I have two web applications running on the same server, say, app1 and app2. app1 is the ROOT application, i.e. it will be launched whenever anyone hits the URL, say, http://example.com/ app2 is ...
0
votes
0answers
4 views

What affects the state of a port besides csf firewall?

I'm on a server that uses csf. Within which, when I include port 80 in the "Allow TCP Incoming" list, port 80 is still closed when I port scan it.
1
vote
1answer
14 views

nginx' try_files doesn't work with variables from location pattern captures

if i have a location directive with named captures: location ~ ^/api/(?<endpoint>[^/]+)(?<pathinfo>.*) { root /opt/software/endpoints; ## breaks the config: # try_files ...
0
votes
1answer
22 views

How does my browser know to refresh when I start nginx?

This just happened: Pointed Chrome to my domain where no server is running, but the DNS points to my linode's IP I started a nginx server on my linode To my astonishment, the Chrome window ...
0
votes
0answers
6 views

Unable to connect NGINX to Tomcat Server

I have Nginx Server running on port 80 and and Tomcat Service is running on port 8080. I followed some of the tutorials for setting Nginx as proxy server but getting 502 Bad Gateway. i have created a ...
0
votes
0answers
8 views

how to use python with nginx

I have nginx running under Windows. What I can't figure out is how to bind python interpreter to nginx. I guess it has something to do with nginx.conf. I'm going to use Django or other framework, I ...
0
votes
0answers
12 views

Nginx write logs to the old file after running logrotate

The logrotate config is: cat /etc/logrotate.d/nginx: /data/logs/nginx/*.log { daily dateext dateformat .%Y-%m-%d rotate 30 missingok create notifempty sharedscripts postrotate [ ! -f ...
0
votes
0answers
34 views

502 Bad Gateway with Nginx as proxy for Jenkins

I'm using Centos 7 with Nginx and a SSL from letsencrypt to use as a proxy for jenkins on the same droplet. Everything was working up to the point I tried to proxy Jenkins.. which gave a 502 Bad ...
0
votes
1answer
12 views

Nginx reverse proxy configuration for cadvisor

I am trying to configure nginx to proxy to a cadvisor docker instance running on host port 8000. I have the following configuration: upstream cadvisor { server 127.0.0.1:8000; } ... ... server { ...
1
vote
0answers
36 views

Nginx Reverse Proxy wants } at end of htpasswd

After generating the htpasswd file online, nginx gives me the error "nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/sites-enabled/htpasswd:2". The weird thing is, there's ...
0
votes
0answers
13 views

WHy is nginx trying to serve over SSL

I am new to nginx. So, I know I will need to post additional info. Apologies for starting with a lack of info. I have my first nginx server set up with virtual domains. The problem domain is a ...
0
votes
0answers
15 views

How do I add an index page to the GitLab bundled NGINX?

I've recently installed GitLab, and I'm using the bundled NGINX with it. I've been able to successfully set it up, and put it on mydomain.com/lab Great! Only problem is that when you go to ...
0
votes
0answers
6 views

Avoiding duplication in log_format nginx directives

I am expanding nginx default combined log format: log_format combined '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' ...
-1
votes
0answers
45 views

How to troubleshoot ERR_CONNECTION_TIMED_OUT for my site?

What is the correct way to troubleshoot error from the title? It's happenning randomly: sometimes site works flawlessly, and sometimes you get the "Connecting..." text in browser's status bar when ...
1
vote
1answer
21 views

In which protocol web server talks to CGI?

I'm wondering what protocol is used for communication between web server, e.g. Apache, Nginx and CGI, e.g. FCGI, UWSGI?
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
13 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
34 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
24 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
14 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
21 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
15 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
119 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
16 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
110 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
36 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
15 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
19 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
28 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
64 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
11 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
35 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
18 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
14 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
54 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
13 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
93 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
26 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
88 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
60 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
119 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
81 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
73 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
577 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
50 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
62 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
36 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
30 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 ...