skip to Main Content

How to serve Redis key with Nginx?

I have all my JSON files located in Redis cache. I want to get it served through Nginx. # redis-cli -h redis-master redis-master:6379> get "zips/80202.json" "{"zipCode":"80202","City":"DENVER","StateCode":"CO"}" I would like to request the url to be like, http://nginx-host/zips/80202.json where nginx-host and…

VIEW QUESTION

Configure nginx vhosts by path

I want to serve my projects by first item in the path, for example http://example.com/projectname should serve a project in /usr/share/nginx/html/projectname. This is what my configurations look like: server { listen 80; server_name example.com www.example.com; rewrite ^/(.*) https://example.com/$1 permanent; }…

VIEW QUESTION

how is Nginx finding default root

I just installed nginx using brew and its default config is located at /usr/local/etc/nginx. The server configuration in default conf file is as below (only small portion pasted) server { listen 8080; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location…

VIEW QUESTION
Back To Top
Search