Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live

Re: How do i enable http2 module ?

You don't need to buy anything, the default free release has http2 in it.

View Article


Use nginx lua extension with custom lua in C-modules

Hi, How to use custom Lua modules written in C in Nginx? 1) It is clear how to extend Lua with C: http://www.troubleshooters.com/codecorn/lua/lua_lua_calls_c.htm Tried test samples -> all work good...

View Article


Re: Use nginx lua extension with custom lua in C-modules

Try here https://groups.google.com/forum/#!forum/openresty-en

View Article

Re: Server redirect without rewrite rules in Nginx config

I need a lot of help I can't read my messages

View Article

Displaying multiple files in folder

I have a folder that contains multiple files that need to be accessed and displayed. I could setup a location {} for each easily enough, but this folder can have files added and deleted by a program...

View Article


Re: Displaying multiple files in folder

You're looking for the autoindex module. See http://nginx.org/en/docs/http/ngx_http_autoindex_module.htm. You can consider looking at the third party fancyindex module if you want something "prettier".

View Article

Re: Displaying multiple files in folder

Thanks for the pointer.

View Article

nginx deny allow with http inside https encapsulation

Hi all We have machine with nginx running on port 80 behind a hardware load balancer which has the ssl binded. Hence https is in load balancer and requests are transfered to nginx on port 80. No access...

View Article


Custom log method with perl

Is there any solution in perl like log_by_lua? https://github.com/openresty/lua-nginx-module#log_by_lua_block Or any method i can catch the sent byte data in perl? Curently we have a system that parses...

View Article


Modify cached content

Hi, any chance to modify cached content on the fly? I want to display a messag on cached sites if the backend isn't available anymore. .dff

View Article

Multiple node.js on same server

Hi there. I'm a newbie with nginx and I'm trying to host two node.js apps (my own application on port 5000 and a mongo db manager on port 1234). I have created the CNAME entries on my DNS server to...

View Article

Load Balance Two Sockets with Different Roots

I am using Unicorn as the application server in front of my web application. I want to essentially do blue/green testing by having two versions of the site running at the same time. The problem is that...

View Article

Laravel & Opencart Config

I'm not a network admin (as you'll quickly realise) but have set up a test environment of a new customer's site on a VPS. For reasons beyond my control this is an Opencart site with a bit of Laravel 4...

View Article


Re: Restricting access to a folder

We have the same problem but in conjunction with ssl. Here is my config. Any help is appreciated. I restarted several times. Where exactly should I Paste The authentication part? [quote] server {...

View Article

Re: Restricting access to a folder

diapason Wrote: ------------------------------------------------------- > We have the same problem but in conjunction with ssl. Here is my > config. > Any help is appreciated. I restarted...

View Article


Re: Restricting access to a folder

Sry, I don’t understand. All I want to do is to protect https://myserver/geheim1/secret.php which opens without password promt, while https://myserver/geheim1/ asks my for a password.

View Article

Reverse proxy is not working after configuration

I am using a Linux AMI Amazon instance on which I have installed nginx following this tutorial : https://castix.wordpress.com/2012/09/23/web-hosting-installing-nginx-as-a-reverse-proxy/ My reverse...

View Article


LBActive active dynamic load balancing

hey all, I just finished up the first working version of my active dynamic load balancing enabler. It's intended for systems that could work as an active (active backend health checks) dynamic...

View Article

Client certificate based AUTH (ssl_client_certificate vs...

Hello, I have client certificate based authorization defined in nginx as follows: ssl_client_certificate /path/to/MY_CA_ROOT.pem; ssl_verify_client optional; ssl_verify_depth 2; #special location -...

View Article

Nginx allow access to location which falls under regex deny

Hi everyone! I have a problem with my nginx configuration. I have a deny rule in the root location like this location ~* "/([a-z]{2})/lib/" but I want to add some exclude for this rule, I need access...

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>