I have an nginx configuration where the virtual host keeps getting redirected to the localhost.
I have gzip enabled on nginx 1.2.8, but for some reason, it is not gzipping anything.
Nginx install info:
nginx version: nginx/1.2.8
built by gcc 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx-1.2.8 --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --with-pcre --conf-path=/etc/nginx/nginx.conf --add-modul
I have added a X-Accel-Expires header on my static contents as well as a Last-Modified header.
I would like to know whats the correct setting to cache those elements without caching anything else.
This is what I have at the moment but it doesn't cache anything :
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
client_max_body_size 2000m;
k
Here's my NGINX config (no apache, just php-fpm):
user nginx;
worker_processes 1;
error_log /usr/local/nginx/logs/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 384;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off;
server_tokens off;
sendfile
I have 2 files.
I use nginx as DAV server and apache which hosts a frontend to backuppc.
I'd like to make nginx host the frontend insead of apache. But I don't have a clue how to translate apache settings to nginx ones. Can you help me with it?
I am using a test instance of my application on non-standard ports and would like to use nginx to redirect all incoming http requests to https
Here is my nginx config:
I tried the above but Cant seem to get it working : please see below
......
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
listen 9000;
server
I'm new to this so please bear with me.
As I understand, it's like this, correct me where I'm wrong:
So i just edit the default config in /etc/nginx/sites-available/default and use it right away. Now I want to host more than 1 site on the server.
I try to start my Nginx and i get this errore after this commend -
sudo /etc/init.d/nginx start
Starting nginx: start-stop-daemon: unable to start /usr/local/nginx (Permission denied)
My config file -
user www-data www-data;
worker_processes 1;
events {
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off
sendf