Questions relating to nginx, an open source Web server and reverse proxy server

learn more… | top users | synonyms

0
votes
0answers
78 views

NGINX on Ubuntu 12.04 LTS Server showing wrong 'REMOTE_ADDR'

I have an Ubuntu Production Server running on NGINX 1.1.19. I also have a PHP web application running on it which relies on the REMOTE_ADDR to select the Network Printer nearest to it. However, the ...
0
votes
0answers
321 views

Trying to access my ubuntu server via a domain name registered via godaddy

I am trying to host my own web server. So I registered a domain name example.com via godaddy. I have an A record of example.com pointing to 12.34.56.78 (my wan IP address). I have nginx setup on ...
0
votes
0answers
311 views

I can't get Ubuntu Server 12.04/NginX to outperform Windows 2008 Server/IIS 7.5

I am determined to get NginX on Ubuntu Server 12.04 LTS to outperform IIS 7.5 on Windows 2008 Server. For comparison, I am using a Apache Bench and a simple (231 byte) html file. The Ubuntu server and ...
0
votes
0answers
62 views

LEMP Stack on Ubuntu Server 13.04 not parsing PHP Switch Statement Properly

On my Ubuntu 12.04 Server LTS on nginx 1.1.19, the following PHP code works properly: switch($_SESSION['user']['permissions']) { case 9: echo "Super Admin Privileges"; ...
2
votes
1answer
2k views

Nginx: Cant see index html

I use Ubuntu 13.10 + nginx (from repos), but I have one problem: I cant see in browser my local index.hmtl (with help nginx). Install: sudo apt-get install nginx Make dirs for my static files ...
2
votes
1answer
1k views

Nginx unable to connect

I am referring to this link to install Nginx on Ubuntu: Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Ubuntu 13.04. sudo su — Runs OK. apt-get install mysql-server ...
0
votes
2answers
78 views

Ubuntu server and services

I've been using Linux+Plesk Virtual Server as a web server for a while, but I want to give a try on doing it manually, so my question is: I'll have a server which is: 80GB HDD, 4GB RAM, 1TB Bandwith, ...
1
vote
1answer
258 views

Is the rewrite module activated for nginx in the Wordpress juju

Is the rewrite module activated for nginx in the Wordpress juju? When I change the permalink to anything other than default I get bad gateway. rewrite is mandatory for buddypress to function ...
2
votes
1answer
5k views

how to install nginx after removed it manually

I have installed nginx using apt sudo apt-get install software-properties-common sudo add-apt-repository ppa:nginx/stable sudo apt-get install software-properties-common sudo apt-get update sudo ...
2
votes
2answers
4k views

Cannot access a directory on my webserver (nginx: 403 forbidden)

I installed nginx and all php extensions. My web directory is /usr/share/nginx/www/ Browsing to http://localhost shows "Welcome to nginx" Browsing to http://localhost/vnstat/ shows 403 forbidden ...
15
votes
2answers
26k views

Can't use PHP extension Mcrypt in Ubuntu 13.10 (Nginx, PHP-FPM) [duplicate]

I installed a fresh Ubuntu 13.10 on my laptop. Like I usually do, I install the packages I need for Web development, which are nginx, php5-fpm, mysql, php5-mysql, php5-mcrypt and a few others. After ...
1
vote
1answer
2k views

php5-fpm : Depends: php5-common (= 5.3.10-1ubuntu3.8) but 5.4.6-1ubuntu1.4 is to be installed

I want to set up PHP behind Nginx with FastCGI but I stuck on the sudo apt-get -f install php5-fpm what i've tried: sudo apt-get -f install php5-fpm Reading package lists... Done Building ...
0
votes
0answers
149 views

how can i rewrite url to a specific ip or another domain in dnsmasq? [duplicate]

i added two lines: address=/dev/127.0.0.1 address=/g.cn/127.0.0.1 to /etc/dnsmasq.conf file, and i have nginx listened 80 port. open urls like http://xxx.dev/, i can see nginx's default site. ...
0
votes
1answer
1k views

nginx on Ubuntu Server in VirtualBox on Windows 7, how to access localhost:8080

I have nginx running on Ubuntu Server (guest) in VirtualBox on Windows 7 (host) I need to access the nginx webserver's localhost. I'm assuming there's no way to do this directly from Ubuntu Server's ...
0
votes
1answer
185 views

what is the nginx equivalent command apache has for a2enmod?

I'm following this guide: How to Setup OwnCloud Server 5 with SSL Connection Problem though is that the guide is for apache but I am using nginx for my server. As such I am trying to "reverse ...
1
vote
1answer
968 views

How do I install nginx modules

I just installed nginx through apt-get repository. But, unfortunately HttpAuthDigestModule is not included while installing. This is how to install from source - ./configure ...
0
votes
1answer
445 views

Run Sickbeard behind NGINX

I've been at this for so long now, trying to get my sickbeard to run behind nginx and having no luck at all, excuse my noobness. Here's what I've tried. I have sickbeard installed in[b] ...
0
votes
1answer
451 views

Can't install php5-fpm after upgrade to 12.10

I upgraded to 12.10 from 12.04 and began getting gateway errors when I accessed phppgadmin via nginx. After looking around I realised that the required program php5-fpm wasn't running and further what ...
1
vote
1answer
539 views

Why is my Nginx package not upgraded?

I'm trying to upgrade my nginx install to 1.3+. I already added the PPA for nginx/development and updated with apt-get update. I ran this command to install nginx: me@server:~$ sudo apt-get ...
0
votes
1answer
793 views

Setting up websites with Ubuntu 13.04 server and Nginx

I'm trying to setup 2 websites on my server ---> A_website and B_website I don't have a domain name registered and I just want to use the site privately so I'll be accessing it via the static IP ...
2
votes
2answers
347 views

Is the nginx charm stable for production?

I'll like to use the nginx charm in production and will like to know if it's stable and ready enough for production. Yes, I'm talking about specific juju charm for Nginx. I'm talking about this: ...
4
votes
4answers
2k views

Which interprets PHP faster on Ubuntu Server 12.04 32-bit, Apache or Nginx?

I have currently installed Apache on my 12.04 32-bit Ubuntu server, but I'm interested into switching to Nginx. I have read a number of comparisons and reviews, where Nginx is faster than Apache ...
10
votes
3answers
2k views

How to enable TLS 1.2 in Nginx?

How do I enable TLS 1.1 and 1.2 for SSL connections in my Ubuntu 12.04 server? I am using the following version of nginx and openssl library. $ ./nginx -v nginx version: nginx/1.2.3 $ openssl ...
0
votes
1answer
266 views

kworker blocking port 80 after update

After an update and reboot, my file server doesnt work as expected anymore - port 80 gets blocked right away by a process kworker, making it impossible for nginx to use it. :~# ps aux | grep kworker ...
0
votes
1answer
68 views

Access to the site without a port

My nginx listen on port 33333 listen 33333; in /etc/nginx/sites-available/ I have: server { listen 33333; server_name domain.com www.domain.com; My website work only If I run: ...
1
vote
0answers
313 views

PHP-FPM dynamic vs ondemand Speed

In terms of speed, which is better? dynamic or ondemand? I just switch from apache to nginx so I need to know which of the two is better.
1
vote
2answers
7k views

Nginx will not start

I'm trying to run service nginx restart but I get this error: root@user /etc/nginx/sites-enabled # service nginx restart Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address ...
2
votes
0answers
951 views

How do I fix “chdir(): No such file or directory [uwsgi.c line 1723]” on in wsgi on nginx?

I have treeio project in my home directory, now I want to run that treeio in nginx server. Already treeio can independently run on Django comes with the source. I don't want to run that in Django ...
1
vote
2answers
629 views

a catch-22 situation with apt-offline

I am installing ubuntu 12.04 onto a HP 1U rack server that is in a lab with no internet connection. I need to install PHP, Nginx and other packages so that I can run my web app on it that will serve ...
2
votes
1answer
962 views

How do I point a domain to an Ubuntu VPS?

I've recently purchased a VPS hosting (rackspace) and want to configure a domain for this account. I've configured nginx and other stuff to run Ruby on Rails on it. And everything works perfectly when ...
0
votes
1answer
2k views

Nginx Basic Auth and subfolders

I have a problem with subfolders in a basic auth procted folder. In the protected folder i have a folder named phpmyadmin, which contains phpmyadmin. Im not able to run phpmyadmin, when basic is ...
1
vote
2answers
125 views

Upgrading Nginx on Raring Ringtail

I have have added ppa:nginx/stable to my apt sources. And have done an update. But when i try to upgrade, it fails to upgrade. Here are the list of commands. sudo add-apt-repository ppa:nginx/stable ...
1
vote
1answer
458 views

NginX access configuration

I'm using ubuntu x64 server with nginx as webserver. In my company, we configured intranet (local) dns server so that, when you enter domain1.com, it goes directly into defined LAN ip adress. We ...
1
vote
0answers
439 views

Setting up Mail server on Ubuntu 12.04.2 Server

Based on this article http://iain.it/linux/how-to-install-php-fpm-and-nginx-on-ubuntu-12-04 I've built my LEMP web server. I need one more function to work: mail. It's production server and I can't ...
1
vote
1answer
2k views

How to set-up Nginx correctly? “Welcome to nginx” is not displayed

I installed Nginx on my Ubuntu Server 12.10 using this instructions https://www.digitalocean.com/community/articles/how-to-install-nginx-on-ubuntu-12-04-lts-precise-pangolin , the Nginx was installed ...
2
votes
1answer
2k views

Localhost always show Welcome to nginx!

I was working fine on my projects. After restarting my machine, I tried to access a local project and I get the message "Welcome to nginx!" even if I want to open phpmyadmin. What is the problem and ...
2
votes
1answer
331 views

Can Ubuntu Server be run through Ubuntu Desktop

I have both Ubuntu Server and Ubuntu Desktop on a hard drive. But I was wondering if there is a way to have the server running while I am on the Desktop version? Does this make sense?
0
votes
1answer
56 views

How can I find out how nginx was “./configure”d for Ubuntu?

nginx is my web server of choice. It doesn't provide loadable module support as of yest, therefore everything has to be compiled and linked into the final binary. How can I find out which ...
4
votes
1answer
2k views

Can't pass PCI scans for vulnerability compliance SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS

I'm trying to pass a pci scan, I'm on Ubuntu 12.04 lts server and Nginx. I've tried everything I know and did a lot of research... apparently seems that need to disable a setting in OpenSSL which I ...
0
votes
1answer
326 views

+30 sites using 1gb ram on nginx

I have a LEMP setup (Ubuntu 12.04, Nginx, Mysql, PHP 5.3 and APC) and I have 30 sites hosted on it. They all are wordpress sites. It uses about 1GB RAM. Is this normal? I thought nginx would use less ...
0
votes
1answer
657 views

hiphop, nginx, spdy

I'm about a month young at linux and brand new to ubuntu. I can do this to install hiphop https://github.com/facebook/hiphop-php/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04 (I installed ...
21
votes
2answers
14k views

Trying to start nginx on VPS, I get “nginx: unrecognized service”

Following the How to install rails and nginx with passenger on Ubuntu tutorial from DigitalOcean.com, the seventh step manually starts nginx: sudo service nginx start but fails with the following ...
6
votes
1answer
711 views

deploy multiple wordpress sites with juju

This may seem like an obvious question, but can you deploy multiple (distinct) wordpress sites with their own databases etc? But using a single deployment? So not dedicated vm's for each sites ...
1
vote
2answers
2k views

Recompile Nginx with nginx-push-stream-module?

I've installed Nginx on Ubuntu with apt-get. Now i need to somehow add the module: Their install suggests to recompile Nginx with the module: ...
2
votes
1answer
370 views

Is nginx-extras supposed to have passenger compiled with it?

From the way the Launchpad description reads, the nginx-extras package should have the Passenger module installed with it. However, when I install nginx-extras and try to enable Passenger, I get the ...
2
votes
2answers
3k views

Ubuntu 11.10 Nginx and fastcgi-php not working

I have nginx successfully running on my home server. I dont have a .com specified because it is just a trial run until I get everything figured out. I can navigate to the server ip address and the ...
2
votes
2answers
3k views

nginx dependency problem trying to upgrade

Trying to upgrade my Ubuntu 12.04 vps I get the following error: henrik@neung:~$ sudo apt-get upgrade [sudo] password for henrik: Reading package lists... Done Building dependency tree ...
0
votes
1answer
98 views

Starting LEMP server at startup

Based on this blog post I've installed LEMP server. Is there any easy way to add this web server: PHP-FPM, Nginx, MySQL into startup applications list?
12
votes
1answer
35k views

What is the best way to uninstall nginx [closed]

I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx?
1
vote
1answer
1k views

uwsgi can't find python plugin

I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message: nickd@my-vps:~$ sudo ...