Accessing OpenResty
- Open in browser:
http://<SERVER_IP>
Important Files & Directories
- Main Config:
/usr/local/openresty/nginx/conf/nginx.conf - Config Directory:
/usr/local/openresty/nginx/conf - Lua Libraries:
/usr/local/openresty/lualib - Web Root:
/usr/local/openresty/nginx/html - Logs Directory:
/usr/local/openresty/nginx/logs - Systemd Service :
/lib/systemd/system/openresty.service
Managing OpenResty
Check service status:
systemctl status openresty
Restart OpenResty:
systemctl restart openresty
Reload configuration:
systemctl reload openresty
Test configuration:
openresty -t
View logs:
journalctl -u openresty -f