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.
0
votes
0answers
20 views
Nginx + CentOS 6 + OpenSSL Library - Update System Version
CentOS 6
I'm running Nginx which is built with an earlier version of OpenSSL:
Note: my linux skills aren't so strong with this kinda stuff so any advise or direction would be greatly appreciated.
...
0
votes
0answers
13 views
How to serve apache2 www sub directories from nginx while the domain does not change
I'm using nginx and apache on the same Ubuntu machine.
nginx is using port 8080
apache2 is using port 8081
I want to serve directory from /var/www/directory with domain www.domain.com
but I do not ...
1
vote
1answer
24 views
nginx won't restart
I am running Plesk on Debian
Since i installed Plesk almost 6 months ago every time i restarted the server nginx would fail to start on boot and i would have to go and manually restart it. Now today i ...
0
votes
0answers
26 views
nginx start failed. reason: Cannot expand template file
I have problem with zimbra nginx when I restart it
Starting proxy...Failed. Starting nginx...nginx: [emerg] could not build the server_names_hash, you should increase either ...
1
vote
3answers
132 views
How can I find which user is accessing a file using strace?
My actual problem is that Nginx is not able to render pages (403 forbidden) despite the permissions being set to appropriately (in my opinion)
The directory of stackoverflow at default location:
...
0
votes
3answers
43 views
Nginx error nginx: [emerg] could not build the server_names_hash with zimbra
I have installed Zimbra 8.6 on CentOS 7 and I have changed the
zmprov modifyConfig zimbraFileUploadMaxSize 5000000
zmprov mcf zimbraMtaMaxMessageSize 52428800
I have restarted the mailbox
the I ...
0
votes
0answers
9 views
Tweak Linux Resources
We are running magento on VPS, which is facing a Numproc issue. According to our hosting provider, our server is exceeding the limit of numproc "400" & memory usage is also high. Because of this ...
0
votes
1answer
31 views
Nginx: proxy_store_access option doesn't seem to work
I'm using proxy_pass to handle file uploading via nginx for a Rails app, and it's working fine, , except for the file permissions. Here's the current config block:
location ~ ^my_filename_regex$ {
...
0
votes
0answers
34 views
uwsgi , application not found
Ok so I have been trying to find a solution to this for 2 days now but I cannot seem to make much progress. I am running this on a nginx server but that appears to be fine.
I copied over a python ...
2
votes
1answer
54 views
Opposite behavior of keepalive (nginx reverse proxy on ElasticSearch)
I am setting up a nginx reverse proxy for ElasticSearch (with HTTP Basic Auth) as described in this article.
This is my nginx config file:
events {
worker_connections 1024;
}
http {
...
0
votes
0answers
152 views
Installation of nginx on Ubuntu 15.10 gives “Inappropriate ioctl for device”
I just installed ubuntu 15.10 in a container on my machine and want to install nginx. I run an apt-get update, and then
sudo apt-get install nginx and I get an error message saying Inappropriate ioctl ...
3
votes
0answers
43 views
How can I perform an “alias” with nginx?
I am using the default nginx config for localhost, which translates requests to http://localhost to files in /home/velour/www.
That's all working normal.
Now I am trying to translate requests to ...
1
vote
0answers
97 views
Permissions on nginx log files
I have a PHP/nginx environment on OS X which is deployed to an Ubuntu server.
On OS X, nginx is set up with Homebrew, thus my user ("joe") owns the files, whereas on Ubuntu nginx is installed with ...
4
votes
2answers
225 views
Let' encrypt - nginx - OCSP stapling
I would like to enable OCSP stapling in my nginx server.
I'm using
nginx version: nginx/1.6.2
debian
Let's Encrypt certificate
I'm really unexperienced in this matter, so it might be a trivial ...
0
votes
3answers
101 views
How to install Nginx while Apache running?
I am trying to install nginx as a backend proxy for Apache and I get this errors:
=== Install Nginx from official repositories ===
Loaded plugins: fastestmirror, remove-with-leaves, tsflags, ...
0
votes
1answer
90 views
Nginx Log Rotation Doesn't Seem to Be Working Correctly
I discovered that my partition mounted as /var had filled up. In tracking down the disk usage, I found that my Nginx log file is huge, and it doesn't seem to be writing to the correct file.
ls -ltr ...
0
votes
0answers
26 views
HTTP Session Management while using Nginx as in “Round Robin” mode Load-balancer?
I'm trying to load-balance "2 Web Servers (running Apache/PHP)" by putting Nginx in front of them. But i need to use Round Robin algorithm but when i do this, i can't manage to have the stable ...
1
vote
1answer
51 views
Where is the nginx executable on Debian? [closed]
I've installed the nginx-light package on debian, but I can't find the executable. It's not in /usr/bin, like it says on the official nginx website. Where is it, then?
2
votes
2answers
120 views
Cannot connect to localhost on port 4430
I am running vagrant from a virtual box with CentOS and Nginx installed. I've created a reverse tunnel from the vagrant box to a remote server but when I am trying to connect to my localhost on port ...
0
votes
0answers
43 views
nginx server never resolves
I have set up an nginx server which is a proxy for port 80 to http://127.0.0.1:3000, but the request never gets through. It just infinitely loads.
I have tried sudo /sbin/iptables -I INPUT -p tcp -m ...
3
votes
1answer
54 views
Why does audit2why have nothing to do?
I know I have an issue with SElinux. So I am following a tutorial that will help me understand the nature of the file access problems I am having. That was I can still have SElinux enforce as supposed ...
0
votes
0answers
57 views
Does running fcgiwrap with nginx give the same added security as creating a new php-fpm pool for every site by hand?
Here's the nginx + fcgiwrap configuration I'm talking about. I don't understand what the main differences are between this kind of a fcgiwrap configuration and a nginx + php-fpm configuration. They ...
0
votes
1answer
37 views
NGINX not running as configured user
This is not a Joomla issue per se as I think it is more of a permissions issue related to NGINX. This was encountered while trying to set up Joomla. Read below but after testing I think this is more ...
1
vote
0answers
57 views
Memory Leak trackdown
I have a server running Red Hat Enterprise Linux Server release 6.7. The server runs a number of java processes including a tomcat server with nginx webserver. The server has 12 GB of ram allocated ...
0
votes
1answer
95 views
Suitable permissions for owncloud /data directory using nginx under centos
Having the following software:
nginx web server
centos 7.1 OS
owncloud 8 Application
https Web Browsing Protocol
PHP-FPM
After resolving the issue of /config directory permissions, we reached ...
0
votes
0answers
57 views
PHP-FPM Permission denied on folders
I get read/write errors on a new CentOS + Nginx + PHP-FPM server, this is muy configuration
Nginx
user nginx;
[...]
fastcgi_pass 127.0.0.1:9000;
PHP-FPM
user = nginx
group = nginx
listen = ...
0
votes
0answers
128 views
nginx + php-fpm error: failed to ptrace(PEEKDATA) pid: Input/output error
I'm seeing a few of errors like the one below in the php-fpm-error.log. We're running a Fedora setup with nginx and php-fpm and I'm just wondering what it means. Any ideas?
ERROR: failed to ...
2
votes
1answer
108 views
FreeBSD jails - Nginx, PHP-FPM, Wordpress - Share folder between jails (read-only)
Question
I want to seperate PHP (PHP-FPM) and Nginx into different jails. One jail with Nginx, and one with PHP-FPM / PHP / Wordpress.
Nginx is good at serving static assets, so I would like to ...
1
vote
0answers
69 views
Hosting Dovecot and Postfix Behind nginx?
So I'm looking at setting up postfix and dovecot on a server that is currently hosting some web-sites via nginx, and I've stumbled upon the mail {} configuration option for nginx, but I'm having a ...
2
votes
1answer
165 views
Do I Need to Restart Nginx if I Renew My Security Certificate(s)?
So I'm setting up an nginx server with SSL enabled with a server definition something like:
server {
listen :80;
listen [::]:80;
server_name example.org;
root /foo/bar;
ssl on;
...
1
vote
1answer
30 views
Nginx redirects all domains to one website
I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble.
I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
0answers
15 views
AWS: nginx as LB apache as backend
I'm developing a new web platform for my business on AWS, the current configuration uses nginx+ as load balancer and some apache instances as backend.
With the service of autoscaling I'm able to ...
1
vote
1answer
196 views
Nginx virtual hosts for multiple LXC containers
I am having the following configuration:
I have 5 LXC containers that are running nginx. On each container there are a couple of virtual hosts set up in nginx. That means for a container I have ...
0
votes
0answers
26 views
Error Output From HHVM Under Nginx
I have a web-server that I've set up with nginx with HHVM for handling PHP, and everything's working great except for one minor gripe; the location of PHP errors.
When I was using PHP-FPM, errors ...
1
vote
1answer
114 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
36 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
37 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
21 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
82 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
278 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
945 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
200 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
142 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
66 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
99 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
282 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
59 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
528 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 ...
1
vote
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
148 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 ...