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

1
vote
1answer
159 views

Encountering issues when trying to host an ASP.NET Web Api on Debian using Mono and Nginx

I have a Web API that is using .NET 4.0 which I'm now trying to deploy on Debian. I've followed a few tutorials on how to do this, e.g. Running ASP.net Web API Services under Linux and OSx. $ ...
0
votes
1answer
47 views

WordPress subdirectory installation with Tomcat using nginx webserver

I'm running tomcat on main website using nginx proxy pass, now I want to install wordpress on the same domain as a sub-directory like this. domain.com/blog I used below config in nginx. location ...
2
votes
0answers
44 views

How to share common configurations amongst Nginx server blocks?

Hosting multiple sites with the same Nginx, and a lot of them share common configurations. Such as protection against POODLE and even entire sets of redirects. I tried using the include directive but ...
0
votes
0answers
22 views

Now hosting a friend who relies heavily on htaccess files, but I use Nginx [closed]

Philosophically is the best option for me at this point to also run apache on a different port, and have nginx reverse proxy to it? Is there a better way? I'm not happy with the concept of allocating ...
2
votes
0answers
101 views

some cyrillic file names got broken after moving from server to server

I moved my website from one server to another and encounter a problem with cyrillic filenames. Some cyrillic URLs in wordpress are fine and some are now broken. It used to be OK on previous server. ...
1
vote
1answer
399 views

Owncloud download fail behind reverse proxy

I have raspberry pi with nginx as reverse proxy and another machine with owncloud on nginx too. I can connect and browse in the pages but when I try to download a file that weight more than about ...
1
vote
1answer
2k views

How do I configure UNIX socket in nginx/HHVM?

So far this is what I've done: $ less /etc/nginx/hhvm.conf location ~ \.(hh|php)$ { fastcgi_pass unix:/var/run/hhvm/sock; include fastcgi_params; } $ less /etc/hhvm/server.ini ; php ...
1
vote
1answer
262 views

nginx/HHVM 404, fixed replacing $document_root with absolute path, but redirect adds path to URL

I've had the same issue as described in this question, and the solution of replacing $document_root with it's absolute path worked until redirects added the absolute path to the URL, as in: EXPECTED ...
1
vote
1answer
172 views

Restart PHP-FPM from a PHP script

I am running a LEMP stack and wish to write a simple control panel for it. So, I want to be able to restart php-fpm from a php script. To achieve this, this is what I did. Created a binary wrapper ...
0
votes
1answer
90 views

Custom Linux Hosting Control Panel in PHP - running commands as root

I want to work on a custom linux hosting control panel based on my experience in managing LEMP/LAMP stack. This is just a pet project. I believe I have ran into some hurdle. The CP is being written ...
0
votes
1answer
111 views

Nginx Multiple Locations

I have already 5 hours here figuring on how to solve but i can't. Assuming that we have the following dir structure /var/www/key1 /var/www/key1/wwwdir /var/www/key1/dir1 /var/www/key1/dir2 And ...
2
votes
0answers
315 views

Nginx on Debian 8 dev setup. PHP via PHP FPM not working

UPDATE: Ok, I can now happily say that what you see below is the recipe for a happily working automated PHP and Nginx dev setup (with automatic domains) and all problems I had are now solved. I ...
0
votes
1answer
79 views

Nginx equivalent of printf() to debug complicated configurations

Is there some option in Nginx that I could use to debug which way a request goes through certain "location" blocks? I don't want to turn on full debug log for the whole server just have some ...
0
votes
0answers
681 views

Why `host` and `nslookup` on Ubuntu resolve hostnames while `ping` and `telnet` do not?

I can't use git clone or even apt-get install because I get a "cannot resolve host" error. They were working before, but I have no idea what changed that broke the DNS resolve. I can't find any ...
2
votes
1answer
2k views

Logging request headers in nginx

I want to log custom headers from clients requests. I have added "$http_my_header" to my log_format and it is logged nicely for POST requests. All GET request, on the other hand, a logged with empty ...
0
votes
0answers
182 views

Unexpected 302 error (Moved Temporarily) after login in my website

I have a website running with Nginx and PHP-FPM (www.example.com), however when I try to access www.example.com/user/login to access its administration and put the correct login info, it just reload ...
0
votes
1answer
274 views

nginx stop is not working and nginx is creating new process after killing processes

nginx version: nginx/1.8.0 I am trying to stop nginx with the following command /etc/init.d/nginx stop, however it is not returning any successful message. Then I tried to view the nginx processes ...
0
votes
1answer
159 views

How to configure which user fcgiwrap runs as on FreeBSD?

I have Redmine/Git/nginx/fcgiwrap running in a jail on FreeBSD 9.3 for (potentially) authenticated Git commits over HTTP/S. Everything works until I restart the jail. In order for a commit to work I ...
0
votes
1answer
565 views

nginx “root /parent/child ” inside location directive not working and shows “404 Not found”

Im learning nginx and referring to book "nginx essential-valery kholodkov" for settingup nginx 1.8 and Im using centos 7 (selinux is off). i made some changes to documentroot(like in apache 2.x) ...
0
votes
2answers
642 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
1answer
52 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
124 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
148 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
231 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 ...
0
votes
0answers
10 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
89 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
0answers
103 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
2k 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 ...
2
votes
1answer
133 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 ...
2
votes
1answer
445 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: ...
0
votes
0answers
88 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 ...
1
vote
1answer
135 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 ...
1
vote
1answer
163 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 ...
2
votes
1answer
836 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
57 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 { ...
2
votes
1answer
811 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
104 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 ...
0
votes
1answer
834 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
230 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
228 views

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

I need to collect current data from the nginx access.log every minute to monitor amount of requests and errors. It's nginx's frontend log - with a lot of requests. It's formatted, rotated, then ...
0
votes
1answer
508 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
221 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 ...
0
votes
0answers
69 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
306 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 ^ ^ ...
4
votes
5answers
2k 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 ...
0
votes
0answers
294 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
131 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
77 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 ...
8
votes
2answers
8k 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
2answers
5k 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: # ...