Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   WebServer: Nginx (http://quantrinet.com/forum/forumdisplay.php?f=526)
-   -   redirect all subdomain on nginx (how to redirect all submain) (http://quantrinet.com/forum/showthread.php?t=10298)

hoctinhoc 18-12-2021 07:37 AM

redirect all subdomain on nginx (how to redirect all submain)
 
redirect all subdomain on nginx (how to redirect all submain)



để redirect tất cả subdomain về domain chính trong nginx bạn làm như sau:


server_name quantrinet.com *.quantrinet.com;

Tham khảo: https://stackoverflow.com/questions/...to-main-domain


Bây giờ là 04:41 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.