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.

learn more… | top users | synonyms

0
votes
2answers
16 views

Nginx wildcard subdomain redirect keeping query string

Trying to redirect wildcard subdomain to a new URL while appending the subdomain at the end of the URL, example: sub1.domain.com would redirect to www.newdomain.com/categories/sub1 server { ...
1
vote
2answers
2k views

Get transmission web interface working with web server

I have my working on default port and I want to be able to use the web interface with an URL like http://my.domain/torrents. I tried adding a location and a proxy conf to Nginx but it fail to work ...
1
vote
1answer
30 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
0
votes
1answer
33 views

Make /etc/nginx writable, so I can edit it from the network

I'm running Win10 with Ubuntu Server 14.04 on a VM. I shared my website folder (/var/www) with samba (I ran chown -R www-data:www-data) and it's writable. I edit the files with Sublime (on Win10) and ...
0
votes
0answers
7 views

PHP-FPM / Nginx, hundred requests / second in a single file

My FPM Config (PHP 5.6.x with opcache) pid = /var/run/php-fpm/php-fpm.pid rlimit_files = 10000 rlimit_core = 0 [www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 user = nginx group = ...
0
votes
1answer
20 views

Nginx not loading css/js/images in https - Blocked loading mixed active content

I am running Ubuntu 14.04 with Nginx 1.8.0. While opening the web pages in https the pages appear to be broken as the css/js/images don't load. Error: 'Blocked loading mixed active content' This ...
1
vote
1answer
228 views

Why does nginx prefixes the location context path to the root location?

I have a simple default website configuration located in my "sites-available" folder in nginx that looks like the one below. When I try browse to /hello I'd expect it to serve the index.html file ...
1
vote
1answer
889 views

phpmyadmin doesn't work after installing php5-mysqlnd

I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute ...
1
vote
1answer
948 views

How to fix an unknown internal server error (500) Nginx is giving me?

Nginx is giving me a 500 error that's driving me crazy. First of all I have a personalsite.conf archive inside /etc/nginx/conf.d/ where I have my server block. This is my server block configuration: ...
5
votes
1answer
2k views

How to create a git repo using Nginx?

I've a CentOS 5 server at domain.fr. I am trying to set a subdomain so that I can use it with git : git.domain.fr My repositories are in /home/git (example /home/git/repos.git) I've installed ...
0
votes
0answers
4 views

Separate web directories of nginx+php-fpm

On my server I run mediawiki, owncloud, roundcube on same hardware, with same nginx and php-fpm process. But I worry about security. Because if hacker get access to filesystem of one of this web ...
0
votes
0answers
78 views

Optimizing kernel TCP stack / parameters for services running on one host and communicating over TCP

I have a dual server {} block setup for my webapp running on nginx. For learning purposes I want to play around with performance tuning: Questions: What happens to a request going from one server ...
0
votes
2answers
2k views

php-fpm error unable to bind listening socket for address '127.0.0.1:9003': Permission denied (13)

I've added a config file to /etc/php-fpm.d ; Start a new pool named 'joeri'. ; the variable $pool can we used in any directive and will be replaced by the ; pool name ('joeri' here) [joeri] ; Per ...
0
votes
1answer
86 views

Install nginx 1.8 on Centos 7

I'm trying to install nginx 1.8 on Centos 7. I tried the following steps: Install nginx repo from http://nginx.org/en/linux_packages.html wget ...
1
vote
2answers
350 views

nginx: Too many redirect

I need to create a nginx configuration with redirect, this is my conf: server { listen 8080; server_name test.example.org; index index.php index.html; return 301 ...
0
votes
0answers
13 views

NGINX Stopped Serving PHP After Upgrade

Preface: I performed a dist-upgrade of my Debian LEMP server from 7.x (jessie) to stable and PHP pages stopped displaying. I eventually figured it out but am not really sure -WHY- my fixed worked. I ...
1
vote
1answer
22 views

Large downloads interrupted on nginx reload

I'm running nginx 1.9.3. When downloading a large file (in this case, 1GiB), and reloading nginx via "nginx -s reload", the download gets interrupted in numerous browsers, including (but potentially ...
0
votes
1answer
1k views

nginx reverse proxy for jenkins returning a 404

I have a vanilla installation of nginx on Ubuntu 14.04 and I am trying to run a reverse proxy in front of a Jenkins installation (running on port 8080 as bellow). I created a conf file to be included ...
2
votes
1answer
62 views

Local port is not accessible with public IP address

I have a linux server which has public IP and Private IP. So, when ever I login with public IP, the terminal directly shows private IP. example: $ ssh root@55.27.XX.XX root's password: ...
1
vote
0answers
11 views

Nginx php doesn't execute

I'm using nginx on centos 7 with php 5.4.16. I have tried this to adding nginx.conf: location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass ...
0
votes
0answers
25 views

Is my Nginx,php-fpm and mysql config good enough?

My Setup: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GH 30 GB Ram 1 Gbps Premimum/Dedicated Line Softwares3 MariaDB 10.0.20 NGinx 1.8.0 PHP with FPM 5.6.8 Our servers gets a LOT of requests (more ...
0
votes
0answers
23 views

Using Incrond Inotify but having issues with user groups/permissions

In the /etc/incron.allow I added both: root USER_1 Then I edited the incrontab so it looks like this: /var/www/laravel/public/js/main.js IN_MODIFY yui-compressor -o ...
1
vote
1answer
24 views

User settings for monit? Should it run as root, or it's own user?

I'm trying to install monit on an Ubuntu 12.04 server. I have it set up, and configured (i think), but i'm not sure what user it's supposed to run as. My user on the server is called deploy, and my ...
2
votes
1answer
20 views

Why Nginx is not rejecting wrong hosts?

This is my config: upstream beta { server localhost:49213; } server { listen 80; server_name beta.example.com; location / { proxy_pass http://beta; } } server { ...
0
votes
1answer
48 views

Nginx says open() “/etc/nginx/conf.d/foo.conf” failed (13: Permission denied)

Here is what I have in ls -al /etc/nginx: total 52 drwxr-xr-x. 4 root root 4096 Jul 28 04:16 . drwxr-xr-x. 78 root root 8192 Jul 28 03:37 .. drwxr-xr-x. 2 root root 26 Jul 28 03:55 conf.d ...
0
votes
0answers
20 views

Webmin: Cannot login through nginx reverse proxy

I've created a reverse proxy for webmin through nginx to run webmin at [site domain]/webmin instead of port 10000 ([site domain]:10000). When I go to [site domain]/webmin, the login page shows up as ...
2
votes
2answers
3k views

Authenticate users via LDAP using nginx

I know how to auth the users via LDAP in apache2: # put the following in the VirtualHost <VirtualHost *:443> ServerAdmin user1@bar.foo.com DocumentRoot /var/www <Directory ...
0
votes
1answer
92 views

nginx deny rule and allow rule not working

first i have this in my nginx.conf server { listen 80; root /home/user/files; index index.php index.html index.htm; server_name mydomain.com; location / { autoindex on; ...
0
votes
0answers
14 views

lsudo /sbin/ldconfig -v showing Garbage text

RHEL 6.6 When performing "sudo /sbin/ldconfig -v" while trying to follow a different stackoverflow question related to: sudo /etc/init.d/nginx restart /usr/sbin/nginx: error while loading shared ...
0
votes
0answers
55 views

Host a server with NGINX using VPN behind a NAT

so I was hosting a server using NGINX on a Raspberry Pi using a T-Mobile mobile router. All was working fine, till I noticed today that T-Mobile started to put me behind a NAT sometimes. So I heard ...
0
votes
1answer
314 views

PHP 5.4 ON CENTOS 7 , NGINX , page not found error

I am trying to install PHP 5.4 on CentOS 7 currently , my conf files look like the following : /etc/nginx/conf.d server { listen 80; server_name 178.62.255.79; root ...
0
votes
2answers
2k views

Problems to install nginx-full on debian 8

I have some problems to install nginx pkg (nginx-full) on debian jessie # apt-get install nginx-full Reading package lists... Done Building dependency tree Reading state information... Done ...
11
votes
4answers
25k views

Unable to Pull EPEL repository Metadata

Installing Nginx on Scientific Linux according this documentation fails: [vagrant@localhost ~]$ sudo su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epe l/6/x86_64/epel-release-6-8.noarch.rpm' ...
0
votes
1answer
92 views

NGINX: 400 The plain HTTP request was sent to HTTPS port

i setup nginx for proxypass to docker registry, the protocol http works but if i set https i have: 400 The plain HTTP request was sent to HTTPS port This is my nginx configuration file: upstream ...
0
votes
1answer
43 views

Need to parse nginx access.log by minute, chunks for statistics - is there better way?

I need collect current data from it every minute to monitore amount of requests and errors. It's nginx's frontend log - with a lot of requests. It's formatted, rotated than archived every hour. So - ...
0
votes
0answers
32 views

Nginx and Munin via CGI, no CSS, no graphs

I'm new to Munin and Nginx. I've installed and configured Munin and created a Nginx server block. I can see the index page generated by munin, listing the different nodes. But when I click on a host ...
7
votes
4answers
16k views

How to uninstall nginx (installed from source)?

I want to switch from a development version to a stable one. I installed nginx from source with: ./configure make sudo make install I tried sudo make uninstall but it doesnt work. How can I ...
0
votes
0answers
54 views

Nginx proxying https, protocol not forwarded

I'm using nginx and ngrok (for backup) with architecture something like this: internet <---> ngrok <---> nginx <---> my app ^ ^ ...
0
votes
1answer
344 views

nginx logrotate error on cron job

I'm running Ubuntu 14.04 LTS and nginx on a Digital Ocean VPS and occasionally receive these emails about a failed cron job: Subject Cron test -x /usr/sbin/anacron || ( cd / && run-parts ...
1
vote
0answers
60 views

Webserver on Solaris 10 + zones. How to do it properly?

I have 1 real IP and many websites. Initial idea was to separate each website into it's own exclusive-ip (vnic) non-global zone. MySQL server have it's own non-global zone. Question is: what is the ...
0
votes
0answers
79 views

CURLE_SSL_CACERT_BADFILE cURL error (77)

I have getting the cURL error CURLE_SSL_CACERT_BADFILE on my Nginx webserver. I found a fix where I add my pem link to my curl.ini file. Before I did this I would get the error on curl ...
0
votes
0answers
60 views

Mod Speed Installation Error

I have 2 webservers Apache and Nginx. Trying to install mod_speed integrated with Apache but I get error: Failed dependencies: httpd >= 2.2 is needed by ...
1
vote
1answer
41 views

Install nginx as proxy after Apache

If I install nginx as proxy on my Debian wheezy server, what steps would be needed to change my apache configuration so all static content is directly delivered by nginx? I already have some 250 ...
3
votes
2answers
1k views

start nginx on boot with systemd

I just installed nginx 1.9 on a debian 8 server. nginx is working fine, when I tell it to run, but it wont seem to load nginx automaticaly on boot. I have tried numerious init scripts recomended on ...
3
votes
1answer
1k views

Nginx init.d script

After a dist-upgrade on my debian machine yesterday I am having some problems with the nginx init script. Whenever I try to start nginx using the init script it comes up with a error message: # ...
2
votes
3answers
464 views

Nginx leaves old socket

I'm running Nginx 1.6.2 (the nginx-full package from the nginx/stable PPA). I'm using the unmodified configuration /etc/nginx/nginx.conf: user www-data; worker_processes 4; pid /run/nginx.pid; ...
0
votes
1answer
78 views

Logging incoming request to my nginx proxy server

I am new to nginx proxy server. I would like to log all incoming requests, before it hits my worker nodes. Can anyone please help me with this configuration
1
vote
1answer
364 views

nginx location regex with proxypass

I am quite new to nginx so excuse me in advance if i am asking something obvious. What i am trying to do is to proxypass to another server a request that comes to my nginx server in the form of: ...
3
votes
1answer
5k views

Make Nginx follow symlinks

Nginx does not follow symbolic links. I get a 404 error. In my directory, I have this link: lrwxrwxrwx 1 root root 48 Sep 23 08:52 modules -> /path/to/dir/ but the files stored in ...
1
vote
2answers
870 views

Proxy (nginx) shows a Bad gateway error

I have a service (docker registry) that runs on port 5000, I have installed nginx to redirect http request from 8080 to 5000. If I make a curl to localhost:5000 it works, but when I make a curl to ...