Questions tagged [nginx]
Nginx ("eNgine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.
17,208
questions
1
vote
1
answer
961
views
Is it possible that Nginx blocks itself from requesting another URL on the same instance?
I have a setup that worked in Apache and now it is failing in Nginx with php-fpm:
I have one PHP-script that is offering a service, you call the URL and get some data
I have a second PHP-script that ...
1
vote
0
answers
11k
views
OpenSSL: unable to get local issuer certificate
I'm trying to enable OCSP Stapling is Nginx. However when I test my SSL certificate, I'm running in to some issues.
Any ideas how to fix the 'OCSP response: no response sent' and 'verify error:num=20:...
1
vote
0
answers
452
views
Failed to install Nginx from nginx.org, Debian apt preferences messed up?
I'm trying to install Nginx from the latest release on nginx.org
However, the latest package is not picked up:
$ apt-get install nginx
Reading package lists... Done
Building dependency tree
...
1
vote
1
answer
671
views
Nginx + Wordpress: Redirect URLs after moving to Wordpress
I have a classified ads website using a proprietary script and now I am moving it to Wordpress. I want to redirect the old URLs to Wordpress URLs.
The script has two main URL types:
Category URL:
/...
1
vote
0
answers
1k
views
Run multiple nginx servers on different ports by different users
Let me describe the problem I need to solve:
There is a sandbox server (Debian), each developer has own user account on it. I need to provide an easy and quick way of running/stopping any number of ...
1
vote
2
answers
2k
views
atomic deployments with Nginx and PHP FPM
I'm trying to get atomic deployments, I don't want to lose/drop any requests.
I deploy the code using Capistrano, classic situation were you have a 'current' dir that is a symlink to
the latest ...
1
vote
1
answer
2k
views
Rewriting (not redirecting) a URL in Nginx
I have a situation that I think is a bit different from most. It's certainly different from any that I've encountered before:
I'm building a site for a client who wants/needs to retain full control ...
1
vote
0
answers
411
views
Allow ELB healthcheck against nginx but block proxied connections
I have a daemon process that polls a page to monitor system status, as long as everything is happy magic_check.html will exist. As soon as something goes down the file is deleted.
I have the AWS ELB ...
1
vote
0
answers
437
views
Wordpress + Nginx + Discourse not working. Socket unavailable
I'm running wordpress 4.0 on latest ubuntu from this docker container:
https://github.com/eugeneware/docker-wordpress-nginx
wordpress is also running behind another nginx reverse proxy, but on ...
1
vote
2
answers
2k
views
Nginx, ModSecurity, IP Tables blocking WordPress dos/ddos attack
For the past 14 days I have had my website being hit by millions of WordPress installs over the world which .htaccess is kind of coping with but I am trying to get something to kick them before ...
1
vote
0
answers
64
views
Webserver needed for django WSGI API?
My app is just a REST API written in django. There is no static content or html pages served. In setting up our production environment, we are planning on using amazon ELB (load balancer) to balance ...
1
vote
1
answer
607
views
How to get Nginx alias working?
I have this defining an alias (latest iteration of it):
location ~ /xxx/(.*).php($|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index ...
1
vote
0
answers
2k
views
How to redirect a domain to a specific IP and port using nginx?
I have read several similar questions to this one in this forum, but not exactly the same, I tried every solution in very different ways but I am not able to manage this.
I was given some data about ...
1
vote
2
answers
339
views
Beyond 1Gb upload on a single linux server
I have a high hit nginx web server on CentOS that provides static large content. when the number concurrent connection are low, server could easily provide up to 4Gb of traffic , but when the number ...
1
vote
1
answer
410
views
Nginx https vhost capering all requests
I am trying to setup a gitlab instance along an own cloud instance on the same server. Both work fine over http, and both work fine over https if one one host is enabled.
The weird thing is that the ...
1
vote
0
answers
397
views
Rails json Request are slow
I am developing an angularjs Application with Rails as Backend. It is hosted by DigitalOccean the smallest Server. On my Production System its only me testing right now. The problem is the requests ...
1
vote
0
answers
470
views
nginx doesn't check server_name and port on websocket proxying
I have three server blocks (virtual hosts) for http and one for websocket in the nginx config (nginx 1.6.0, ubuntu 14.04).
server {
listen 80;
listen [::]:80;
server_name h3400.domain....
1
vote
0
answers
781
views
Weird Phusion+nginx spawning delay error
We are trying to migrate an application written on REE from cloud provider A to cloud provider B. The application code, VM specs and operating systems are the same. The basic difference is that cloud ...
1
vote
2
answers
4k
views
Php runs on server, but not command line: "libssl.so.10: no version information available" [duplicate]
php is running on my server, though I'm unable to get it to run command line. I'm running this file:
<?php
echo "done";
?>
using this command:
php test.php
When I do, I get this error:
php: ...
1
vote
0
answers
445
views
nginx not starting at reboot after gitlab installation
I installed nginx (1.6) in ubuntu server (14.04).
After that, I installed gitlab. I didn't realize it came with its own nginx. I uninstalled gitlab later.
After installing gitlab, my first nginx ...
1
vote
0
answers
184
views
periodic connection timeouts to nginx server
We have the following setup: One nginx server as a loadbalancer in front of four worker application servers. The nginx server get about 100 requests per second, sometimes more that that, active ...
1
vote
2
answers
299
views
Varnish Disrupting Logins with Invision Power Board
I recently transferred one of my primary sites over to a WordPress installation, but unfortunately, this resulted in extremely high server loads. Originally, I was running a basic LAMP server with ...
1
vote
1
answer
693
views
Nginx memcached_pass directive unknown
I am setting up a new server instance on AWS and have run into something I don't know how to handle. I've set up exactly the same config on digital ocean before and there issue does not occur at all. ...
1
vote
0
answers
972
views
Nginx shows no user agent string
I have been dealing with an issue on one of my servers for quite a while now. In short, the server receives massive spikes in load - up to 50 - but the site gets almost no traffic. I know this can be ...
1
vote
0
answers
3k
views
Nginx out of memory, not loading new vhosts?
I'm having an nginx running on debian. Nginx will reload every 2 minutes to fetch newly created vhosts. After a while new vhosts weren't loading anymore, but old vhosts kept on being served by nginx
...
1
vote
1
answer
592
views
Setting up root directory of nginx in Fedora 19
So I had nginx set-up with the default site. I decided I wanted to change because my website is at /var/www/site/... so before I changed again, I went to 127.0.0.1 to see if everything worked. I did. ...
1
vote
1
answer
2k
views
Atlassian Crowd + Nginx + SSL Setup Not Working - Redirect Loop
The nginx config:
server {
listen 443 ssl;
server_name crowd.example.com;
access_log off;
client_max_body_size 10M;
ssl_certificate ...
1
vote
1
answer
1k
views
Compiling Openresty into a .deb package
I'm trying to compile Openresty 1.7.2.1 into a .deb package for Debian 7 using FPM. Although the FPM compilation is successful and I get a deb file, but when I install it using dpkg somehow the config ...
1
vote
1
answer
1k
views
Make an error page folder serve a 403 error to external requests
I'm fiddling about with a server, and I've made one of the subdomains a proxy for a service that isn't always up. The server block looks like:
server {
server_name servlet.example.org;
...
1
vote
1
answer
12k
views
nginx auth_basic 401 htpasswd
I've got this strange error:
I have a Jenkins service running in 8090 which I want to password protect via Nginx auth_basic with proxy_pass
When doing the proxy-pass without auth_basic, I can access ...
1
vote
0
answers
891
views
Occasional uwsgi errors with nginx
I'm getting occasional 502 bad gateway errors with nginx and uwsgi. Inspecting my uwsgi log file I occasionally see
uwsgi_proto_uwsgi_parser(): Error 0 [proto/uwsgi.c line 35]
I did a load test ...
1
vote
0
answers
360
views
Unable to install phpmyadmin on CentOS with LEMP
I followed the following steps while installing phpmyadmin.
1-Enabled EPEL repo
2-Downloaded and extracted phpmyadmin to /usr/share/
3-Copied config.sample.inc.php into config.inc.php file
4-...
1
vote
0
answers
1k
views
Nginx returning 500 Error instead of 400 Error
On validating user input into my api, I want to return 400 http status codes for bad requests. It works fine from flask and when running my api through gunicorn, but they always come out of nginx ...
1
vote
1
answer
3k
views
Log errors from Passenger in vhost error.log
I'm running Phusion Passenger 4.0.40 with nginx.
The server is used to host several websites and each has its own error.log file.
However if an application crashes during startup, the error message ...
1
vote
1
answer
84
views
Nginx, server_name targeting trailing "." will not redirect
When you type in "dev1.example.com." into your browser or you request that Host with your HTTP client, I want it to redirect to "dev1.example.com". I've attempted to do this with the following server ...
1
vote
2
answers
1k
views
tomcat7 + nginx ssl causes redirect loop
We have the following set-up:
several subdomains lead to the same server, which is running nginx as a proxy to each of them. All subdomains are currently used for testing features in development, so ...
1
vote
1
answer
4k
views
PHP NginX - Output Buffering - Video Streaming
(Since it contains some coding but also it's concerning nginx configuration i think it would be the best to have it in serverfault).
I have some Video Files in my Server that are stored in a folder ...
1
vote
0
answers
506
views
nginx proxy won't retry if backend is unavailable
I have an application that sits behind an nginx reverse proxy. Nothing fancy, just a simple
server {
listen 54321;
proxy_connect_timeout 5000ms;
proxy_read_timeout 5000ms;
location / {
...
1
vote
1
answer
380
views
Nginx load balancer and Tomcat startup delay
I am using nginx (free version on centos) as a reverse proxying load balancer to a cluster of Tomcat 7 servers. It works great except for the time when tomcat is starting.
If a Tomcat instance is ...
1
vote
0
answers
175
views
Turn on/off proxy pass in nginx if a particular header is set
For testing purposes (in particular I'm developing a performance analyzer for a website that currently runs in production) I need to have some endpoints (es: /performance) that should be processed by ...
1
vote
2
answers
1k
views
Wordpress non-www to www redirect loop in NginX
I deployed my wordpress website on NginX successfully. I need permalinks to be http://www.example.com/%postname% and blog to be http://blog.example.com/%postname%. It redirects all www traffic to non-...
1
vote
1
answer
1k
views
nginx SSL termination for apache2.2 svn server results in endless redirects
I'm trying to set up a SVN repository on our new company server.
We are using nginx for SSL termination and apache as SVN backend.
I don't know whats wrong with my configuration, but if I call svn ...
1
vote
1
answer
167
views
Lots of users, reverse proxys and problems with both
I have a somewhat unique situation that is making managing my vpns a bit of a pain, so I am trying to make it easier on me and my users, hope somenone can give me some ideas and/or alternatives.
The ...
1
vote
0
answers
995
views
jsonrpc service nginx ssl configuration
I have a python jsonrpc service running in the server on port 8082.
I want to reach it with php jsonRPCClient. (and have to be https)
My nginx server looks like:
server {
listen 443;
...
1
vote
0
answers
1k
views
Nginx proxy pass not working sometimes
I have a proxy server (ubuntu) that can accessible via my global IP (not have domain).
For Example 85.45.0.12:6021 and this reverse to local server. Local server (10.0.0.25) installed tomcat and ...
1
vote
0
answers
752
views
How to change http header using nginx
We have a problem that a backend system requires the parameters of the Content-Type http header to be in a certain order.
For example (note the position of the type="text/xml"):
Content-Type: ...
1
vote
0
answers
468
views
How to figure out nginx 502 errors when logs are ok
I'm running a blog (on Wordpress) with nginx 1.6.0 + HHVM 3.1.0 + memcache on Ubuntu 14.04. Every few hours (~12-20h), nginx throws a 502 error and my blog gets down.
I tried to figure it out, but I ...
1
vote
1
answer
280
views
nginx redirect to varios directories
I am looking for a way redirect the URLrequest to various directories.
For example the user calls server.com/get.php
I want it randomly be redirected to server.com/a/get.php, or server.com/b/get....
1
vote
2
answers
3k
views
tune up performance nginx php-fpm mysql
I am running a nginx+php-fpm+mysql on virtual server with 8 cores and 16G ram
My aplication is a simple API provider server, which returns JSONs generated from mysql database on requests. Datasets are ...
1
vote
0
answers
1k
views
CORS Fails on CloudFront Distribution with Nginx Origin
I have a CloudFront distribution set up with an Nginx server as the origin (a Media Temple DV server, to be specific). I enabled the Access-Control-Allow-Origin: * header so fonts will work in Firefox....