Questions tagged [nginx]

Questions relating to Nginx, an open source Web Server and reverse proxy server.

912 questions
229
votes
2 answers

What is the best way to uninstall nginx

I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx?
Shuo
  • 2,403
  • 2
  • 14
  • 4
93
votes
3 answers

What is the difference between the core, full, extras and light packages for nginx?

nginx on Ubuntu is a virtual package provided by one of five packages from the official repositories (at least as of 14.04, defaulting to nginx-core, I believe): $ apt-cache depends nginx | tail -n+2 | cut -d: -f 2 | sort -u nginx-core …
muru
  • 197,895
  • 55
  • 485
  • 740
70
votes
2 answers

What file permissions should I set on web root?

I use Ubuntu Server 10.10 and have installed Nginx web server with apt-get install nginx. It creates a default web page at /var/www/nginx-default/ and that directory has the permissions drwxr-xr-x 2 root root. When I access the default site on…
Jonas
  • 8,217
17
votes
1 answer

Multiple websites on nginx, one IP

So I'm using digital ocean and nginx. I want to host multiple websites (my projects) but dont want to buy a domain for each one. Is there a way to host multiple websites on nginx and digital ocean while accessing them using that one ip?
Bros Code
  • 183
15
votes
3 answers

After installing nginx with Passenger support in '/opt', why won't it start from 'init.d'?

I went through a tutorial http://craiccomputing.blogspot.com/2010/10/passenger-3-nginx-and-rvm-on-mac-os-x.html and everything was ok. There were no errors. Nginx with Passenger support was successfully installed. The Nginx configuration file…
Alex Malex
  • 2,632
  • 9
  • 25
  • 26
13
votes
2 answers

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 apt-get install nginx Then I used whereis nginx and…
april
  • 131
  • 1
  • 1
  • 4
10
votes
2 answers

Hotspot Login - http://nmcheck.gnome.org - 404 Not Found nginx/118.0

I am new to linux, maybe someone can help me out with this new challenge. A white screen randomly pops up with the following info Hotspot Login http://nmcheck.gnome.org 404 Not Found nginx/118.0 Will sudo apt-get install nginx solve the issue? I…
Zek
  • 101
6
votes
0 answers

Nginx: Failed to start A high performance web server and a reverse proxy server

I recently tried to install LetsEncrypt certificate, but I couldn't start nginx again. when I run the command service nginx status. I get this error message: nginx.service - A high performance web server and a reverse proxy server Loaded: loaded…
ranjith
  • 61
5
votes
1 answer

Where's an appropriate place to keep my nginx cache on Ubuntu?

Nginx specifies https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path: /data/nginx/cache but that doesn't see like a normal place to store anything on ubuntu. Another place suggest /tmp/nginx. What's an appropriate…
Kit Sunde
  • 11,096
5
votes
1 answer

Nginx - 301 moved permanently "problem"

As a Nginx noob, I have a problem which I can't solve. In Nginx website configuration I have: server { listen 443; listen [::]:443; ssl on; ssl_certificate /etc/letsencrypt/live/website.eu/fullchain.pem; …
JanezKranjski
  • 831
  • 7
  • 18
  • 36
4
votes
1 answer

Nginx does not start: "host not found"

Every time I turn on my computer my nginx is not activated: ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result:…
4
votes
2 answers

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 ls -l -rw-r--r-- 1 root root 1631 Oct 19 15:08…
3
votes
0 answers

Nginx index.html gets overwritten with default index.html file

I'm running Nginx on Ubuntu 14.04. I have my website installed in the default /usr/share/nginx/html directory. My website works fine for several days and then the system automatically overwrites my websites index.html file with the default Nginx…
Slick
  • 31
  • 3
3
votes
2 answers

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: https://github.com/wandenberg/nginx-push-stream-module/blob/master/README.textile How can i do that when i…
leslie
  • 41
2
votes
1 answer

Nginx loads index.html automatically without being instructed to

http://localhost:8001/whatever loads /var/www/nginx.html but http://localhost:8001 loads /var/www/index.html According to the grep result, there is no uncommented index.html mentioned whatsoever. What I expect is to load nginx.html in the second…
sinaza
  • 123
1
2 3 4 5