You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I often find myself ssh'ing into my servers and checking my systemd service logs with $ journalctl -f -u {name}.service. One day I got tired of this and wanted all of my important logs in once place (Amazon AWS Cloudwatch). To my dismay, there weren't any real good tutorials on how to do so. So, voilà.
Steps
Overall, it's a fairly simple process consisting of the following few steps.
1. Modify the service file
Open the service file with $ sudo vi /lib/systemd/system/{name}.service
Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.
prerequisites
at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
là CẤU TRÚC DỮ LIỆU trong UNIX filesystem, dùng để chứa các thông tin về file (owner, permission, time,
disk block location - địa chỉ trên ổ cứng thực sự chứa dữ liệu file) - CHÚ Ý: inode không chứa tên file
ít gặp khi vận hành hệ thống (chỉ xuất hiện khi ổ cứng hết inode không tạo được thêm file, xem bằng df -i)
thường xuyên được hỏi khi phỏng vấn các công ty nước ngoài
là khái niệm ở level tương đối thấp (UNIX filesystem: ext2, ext3, ext4, ...)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nginx proxy for Wordpress.com on custom domain with subpath.
Let's say we can a blog hosted as Wordpress.com but visible on our custom domain in subpath due to SEO.
WordPress.com supports changing domain/subdomain but not path.
We could either make our own installation, change hosting provier or make nginx proxy with URL rewrites.