Trending
  • CentOS Nginx error: could not open error log file: open() “/usr/share/nginx/logs/error… denied
  • Ubuntu 20.04: install MongoDB Driver for Lua – part 2
  • Ubuntu 20.04: setup MongoDB Replica Set
  • How to convert DAA file to ISO file
Skip to content
March 31, 2023

Free Online Tutorials

Tutorials, Resources and Snippets

Skip to content
  • About us
  • Contact
  • Privacy Policy
  • Terms and Conditions

Tag: Openresty

  • Uncategorized
openresty

Lua + Nginx | Openresty : Using many SSL certificates in a server block

phptuts June 9, 2022
With Nginx you can use many SSL certificates with many server blocks. You can’t do this with only one server block. But with Openresty or…
Continue Reading
  • Uncategorized
lua

Lua Nginx|Openresty: use session with redis sentinel

phptuts May 18, 2022
Read first: Lua Nginx|Openresty: use session with redis cluster Lua / Openresty: work with redis master-slave replication and redis sentinel Edit file /usr/local/share/lua/5.1/resty/session/storage/redis.lua Note: new…
Continue Reading
  • Uncategorized
lua

Lua / Openresty: work with redis master-slave replication and redis sentinel

phptuts May 18, 2022
We use lua-resty-redis-connector Install lua-resty-redis-connector luarocks install lua-resty-redis-connector Example of usage: Online demo: http://5.161.72.222/test/sentinel
Continue Reading
  • Uncategorized
lua

Lua / Openresty: Error: no resolver defined to resolve

phptuts May 13, 2022
Example code: And we see error: How to fix this error: Solution 1: use directive resolver example: resolver 8.8.8.8; in block location Solution 2: You…
Continue Reading
  • Uncategorized
lua

Lua / Openresty: How to get real client IP address

phptuts May 4, 2022
Supports CloudFlare, Incapsula, Sucuri, Any Proxy … Note: if you use reverse proxy, you should use: Test: Online demo: http://5.161.72.222/test/ip
Continue Reading
  • Uncategorized
lua

Openresty websocket: Could not decode a text frame as UTF-8.

phptuts April 26, 2022
We use lua-resty-websocket to create websocket server: https://github.com/openresty/lua-resty-websocket Solution: don’t use send_text, should use send_binary
Continue Reading
  • Uncategorized
lua

Openresty websocket: payload too big

phptuts April 26, 2022
We use lua-resty-websocket to create websocket server: https://github.com/openresty/lua-resty-websocket And we see in log file: Solution: chunk data then send each chunk: We use some value…
Continue Reading
  • Uncategorized
lua

Lua Nginx|Openresty: use session with redis cluster

phptuts April 15, 2022
Require: lua-resty-redis , lua-resty-lock , lua-resty-redis-cluster , lua-resty-session Example nginx.conf Now test http://localhost:8080/test/session
Continue Reading
  • Uncategorized
lua

Lua Nginx | Openresty : lua-resty-string error: undefined symbol: EVP_CIPHER_CTX_init

phptuts April 12, 2022
Sample code: Check log: tail /var/log/nginx/error.log Reason: lua-resty-string v0.15 remove EVP_CIPHER_CTX_init Check here Check version in file: /usr/local/share/lua/5.1/resty/string.lua lua-resty-string Version 0.09 You must update to…
Continue Reading
  • Uncategorized
Git logo

Luarocks/git error: The unauthenticated git protocol on port 9418 is no longer supported.

phptuts April 11, 2022
Example error: Fix: run this command first: git config --global url."https://".insteadOf git:// Done, retry: now, we have two files xmodem.lua rediscluster.lua in folder /usr/local/share/lua/5.1/resty/
Continue Reading

Posts navigation

Page 1 Page 2 Next page

Categories

  • ANDROID
  • CSS
  • golang
  • HTML
  • JS
  • LINUX
  • MYSQL
  • PHOTOSHOP
  • PHP
  • Uncategorized

Recent Search Terms

  • open() /run/nginx pid failed
  • android studio listfiles
  • js get client country without api
  • name or service not known centos 7
  • java file listfiles android studio
  • centos7 /etc/hosts ping name or service not known
  • cannot find ecosystem config js
  • online unrar
  • https://tutorialspots com/how-to-mount-drive-on-centos-7-4488 html
  • dnf install php-pgsql cant find

Archives

  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • January 2015
  • October 2014
  • September 2014
  • June 2014
  • March 2014
  • February 2014
  • August 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012

Blogroll

  • PHP official site
  • Free ebooks download

Ads

Recent Comments

  • CentOS 7: use certbot to register SSL certificate for multiple domains with Cloudflare | Free Online Tutorials on CentOS 7: install certbot to register wildcard SSL certificate
  • AWS REST API mediaconvert: example convert mp4 to HLS | Free Online Tutorials on AWS error: You must use the subscription API to subscribe your account to the service before using this operation
  • AWS REST API mediaconvert: example convert mp4 to HLS | Free Online Tutorials on AWS IAM: create role for mediaconvert
  • AWS REST API mediaconvert: example convert mp4 to HLS | Free Online Tutorials on Create IAM user for AWS
  • Windows: how to install tesseract | Free Online Tutorials on How to add packages after install Cygwin

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Free Online Tutorials © 2023 - Designed By BfastMag Powered by WordPress