Categories AWS Cloud Docker

[AWS, Bitnami Apache Server Stack] – Assign a subdomain to a web service hosted on VPS and exposed through the port 8080

Ở đây mình sẽ gán subdomain cho jenkins admin site chạy trong container và expose ra cổng 8080. Mình đã có thể truy cập bằng địa static ip hoặc domain và port bằng public internet.

  • Vào /opt/bitnami/apache/conf/extra
  • Thêm đoạn code tạo virtual host như sau:
  • Vào /opt/bitnami/apache/conf và uncomment Include conf/extra/httpd-vhosts.conf
  • Khởi động lại bằng sudo /opt/bitnami/ctlscript.sh restart apache

Xong. Giờ bạn có thể truy cập webapp bằng subdomain. Chúc các bạn thành công!

More From Author

Leave a Reply

Your email address will not be published. Required fields are marked *