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

learn more… | top users | synonyms

3
votes
1answer
351 views

Existing laravel 4 project gives 404 in browser

I'm trying to set up a development environment on a virtual machine running Ubuntu 14.04 LTS using Nginx and HHVM. To do this, I followed the tutorial here. This goes well with a new installation of ...
2
votes
1answer
586 views

Upstart unknown job problem

I set up nginx according to instructions here and it all went well but I am unable to start with $ start <my app name> I created /etc/init/nomilkfor.me.conf (this is the domain name) and this ...
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 ...
3
votes
0answers
54 views

SSL on one domain and not the server ip or any virtual hosts (nginx)

I have a SSL setup on my nginx server and the SSL works perfectly, only problem is it is working on all other virtual hosts and also the server IP which I don't want it to. It should only work in the ...
2
votes
0answers
953 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 ...
2
votes
0answers
337 views

Why rewrite directive causes “301 Moved Permanently” with Nginx?

Below is a much simplified version of what I have in the configuration file of a server run by Nginx 1.2.5, yet it causes 301 Moved Permanently with Location: http://example.com/phpmyadmin/ before ...
1
vote
0answers
202 views

Can't configure NGINX to cache the images

I have been trying to cache images that are stored in nginx server, I am quite new here and to nginx I have installed it and configure it with php5-fpm, I have been reading many tutorial regarding ...
1
vote
0answers
43 views

Make a Ubuntu Server ready for takeoff as a webserver

What are the necessary steps to make an ubuntu server ready for productive operation as a webserver? I've assumed that the server distro of ubuntu doesn't have to be further tweaked to make it ready ...
1
vote
0answers
125 views

Nginx processes have disappeared - why?

I've been following the arts technica web served series which has been great at teaching me how to get an Nginx server established on a fresh Ubuntu 12.04 server. I'm having a few problems however. ...
1
vote
0answers
552 views

nginx with hhvm - Not found

I'v set up nginx with hhvm but, any file .php returns me "Not found" except index.php that returns me Running on HHVM version 2.3.2. Some of my configurations /etc/nginx/sites-enable/default ...
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
0answers
440 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 ...
0
votes
0answers
12 views

Cannot access 2nd virtual host in nginx

I am still learning how to use nginx and setup a site so bare with me if my question here is very basic. I am trying to set up two websites on the same nginx server without having bought any domain ...
0
votes
0answers
37 views

ngnix will not restart

I had a 502 error when running laravel. So I changed my default.conf to this : server { listen 80; server_name localhost; access_log /var/log/nginx/project.access.log main; error_log ...
0
votes
0answers
42 views

14.04 update broke my ruttorent setup

I just updated my system and now my rutorrent isn't working. When I go to the web page, I get this error JS error: [http://192.168.0.36/rutorrent/js/jquery.js : 2] TypeError: a is null I googled it ...
0
votes
0answers
6 views

Can't put content in fastcgi_cache dir

I set up nginx to use the fastcgi_cache parameter. I also set fastcgi_cache_path. And everything works fine. What I tried to do is to manually add a CACHEDIR.TAG file in the fastcgi_cache_path dir in ...
0
votes
0answers
30 views

wait for job in bash script

find /var/www/ -ipath */logs/access.log.gz -execdir mv "{}" "old/`date +\%G-\%m-\%d`-access.log.gz" \; wait service nginx reload wait python /var/www/default/piwik/misc/log-analytics/import_logs.py ...
0
votes
0answers
27 views

setup default directory for ftp user and not to allow him to access the parent directories

I have setup an ubuntu instance on Amazon AWS with nginx webserver installed on it. I would like to create an ftp user and give default access to /usr/share/nginx/www. The user shouldn't be able to ...
0
votes
0answers
27 views

problem nginx on ubuntu with nodejs

I'm trying to make nginx upstream configuration working for ubuntu 14.04, and make my nodejs app visible from virtual host name. this is my conf file in available-sites under the /etc/nginx upstream ...
0
votes
0answers
38 views

Why doesn't lsof show localhost TCP connections in 14.04?

I have two servers running 12.04.4 and 14.04.1 respectively. Both have nginx (port 80) and a Java process (port 8080). As expected, the lsof output for the Java process (sudo lsof -nP -p $PID) on ...
0
votes
0answers
42 views

Nginx Configure: Error: no [MY ADD MODDS]/config was found

nweb here on ask-Ubuntu I have been trying to compile Nginx from source on Ubuntu 14.04 x64 and I get the following error: ./configure: error: no /src/mods/[MY ADD MODDS]/config was found If I ...
0
votes
0answers
40 views

Nginx redirecting to https when it shouldn't

I have a new site set up, and I think I may have messed something up. If I go to mysite.com, it works, if I go to www.mysite.com, it redirects to https://www.mysite.com and says 'This webpage is not ...
0
votes
0answers
82 views

Application doesn't launch on startup (autostart) inside docker's container

the problem I faced with is none of applications doesn't launch on the system boot. I have image based on ubuntu:14.04 installed Nginx, Php5 and Mariadb. On every boot (!) I have to start services ...
0
votes
0answers
13 views

nginx on ubuntu 12.04 localhost does not render

I installed nginx software and http :// localhost does not render. What to do in default to make localhost show website?
0
votes
0answers
11 views

Ubuntu-Files become read only in production.App down

I am a newbie and I had posted a question on stackoverflow and I got a satisfactory answer.Now the site is back online. The issue was that the files such as thin.log and all the app files had become ...
0
votes
0answers
26 views

Can I share a host process with linux container?

On my Ubuntu 12.04 host, I have created a linux container p2. On the host I have nginx installed and running. My question - Can I share the running nginx on host with one or more linux container? By ...
0
votes
0answers
49 views

pure-ftpd set default uid and gid for nginx and fpm

I have web application on my Ubuntu 14.04, I installed pureftpd it runs fine. Normally I create ftpuser and ftpgroup, create a new user with pure-pw and it works fine. After ftp uploads are ...
0
votes
0answers
17 views

Questions about setting up SSL

I have a subdomain on a server that is pointing to an IP hosting an application. I need to enable SSL on the application. The way I understand it is that because SSL is domain specific the ...
0
votes
0answers
389 views

Nginx Load-Balacing node.js, SSL Not Working

I'm running 12.04 and using Nginx to load-balance node.js and I'm having an issue getting SSL to work. The Problem Using the configuration below, when I send any requests via https I get no response ...
0
votes
0answers
175 views

Set nginx configuration file to different location

I'm trying to keep all my server code/configuration files in one place. I tried nginx -c /var/www/nginx.conf but received the following error: nginx: [emerg] open() "/var/www/mime.types" failed (2: ...
0
votes
0answers
33 views

Django chmod using wrong user:group

I have installed django and some other services to start up one front-end community forum. However i've managed to do it everythings run but i have problem with CHMOD permissions. My nginx server ...
0
votes
0answers
41 views

Transmission RPC slow down

I use transmission RPC to control transmission daemon on Ubuntu 12.4 with Nginx. When there are more than 25 active torrents, transmission RPC takes too long to respond, around 15 seconds to ...
0
votes
0answers
45 views

ubuntu 12.10 install ispconfig

Hey guys I am currently working on this installation tutorial for Ubuntu 12.10 with ISPconfig/BIND/dovecot. I am currently stuck on page 4 the section where you you are attempting to start php-fpm. ...
0
votes
0answers
45 views

Ubuntu EC2 memory usage issue-High disk usage by log files.

I am new to ubuntu and I had deployed my application code(Ruby on Rails) on Amazon Ec2 instance which is 32 bit medium instance a couple of months ago. Now I have installed Nginx and thin server on ...
0
votes
0answers
114 views

Nginx rewrite domain to CDN url

I want to redirect all my media files to maxcdn origin poll, this might be duplicate question but couldn't find the way i was looking for. server { listen 80; ## listen for ipv4; this line is ...
0
votes
0answers
295 views

Error writing /etc/nginx/nginx.conf: No such file or directory

I just installed Nginx in ubuntu 12.04 then I want to configure it but I'm having a problem saving it. When I hit save, it says: Error writing /etc/nginx/nginx.conf: No such file or directory . How ...
0
votes
0answers
232 views

can't connect to BigBlueButton from external address

I installed a bigbluebutton server ver 0.81. When i set ip using sudo bbb-conf --setip 192.168.0.190 It's the local ip address and it work fine. but when i switch to my external static IP: sudo ...
0
votes
0answers
17 views

Need help with Mail Server on Ubuntu

I am running Ubuntu 12.04 with nginx I do not have name servers like ns1.mydomain.com neither I have mx records I am using cloudflare for nameservers and then point it to my servers IP. I have ...
0
votes
0answers
117 views

Forbidden error 403 when accessing site using nginx

I am running a node web app which is accessed via a URL. When I go to the URL I get the following message: directory index of "/var/www/MYDOMAIN/public_html/app/views/" is forbidden, client: ...
0
votes
0answers
73 views

How to access domains via IP using nginx?

I'm currently working on switching my webserver from Cent OS running Apache2 and Cpanel to Ubuntu 12.04 LTS running nginx without a GUI (unless I can find a good one). One thing I haven't been able ...
0
votes
0answers
73 views

Create new domain tools or script?

I'm new to *nix, Ubuntu, and nginx and so far it's a lot of fun playing around with new technology. However, after following tutorials on how to setup a new domain (server block) I can see how this ...
0
votes
0answers
276 views

Apache / Nginx / Varnish - GZIP does not work on css, js

My current setup is as following: Apache -> Nginx -> Varnish running on Ubuntu apache2.conf: h**p://pastebin.com/A3wehAbe .htaccess: h**p://pastebin.com/Yre4hdSy (edited to allow deflate) ...
0
votes
0answers
68 views

Nginx bad behavior while parsing Links

I use Nginx 1.1.9 and ubuntu 12.4 LTS and following config file for my VHOST config. server { server_name www.DOMAINNAME; rewrite ^(.*) http://DOMAINNAME$1 permanent; } server { ...
0
votes
0answers
74 views

Restarting Ubuntu Server 13.10 Breaks nginx & SSH

I am wondering what might be causing this. Any ideas would be super helpful. I have a little MicroPC in my room running Ubuntu Server 13.10. It's all setup, but here is what I have to do if I have ...
0
votes
0answers
164 views

How to manage sqlite database with ubuntu server 12.04

I have installed php and sqlite in my Ubuntu server running nginx. I'm in doubt in how I should manage the SQL database. How should I install something like phpmyadmin that would work in these ...
0
votes
0answers
92 views

My server is making me download the code instead of running it

I am running an ubuntu server 12.04 but unfortunately I am not being able to make the interpreter run the code exactly. I am using nginx encrypted lvm and here is the conf.d (main part): server { ...
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"; ...