×ðÁú¿­Ê±¹ÙÍøµÇ¼

Nginx Proxy ManagerʵÏÖURLÖض¨ÏòµÄÉèÖÃÖ¸ÄÏ

Nginx Proxy ManagerʵÏÖURLÖض¨ÏòµÄÉèÖÃÖ¸ÄÏ

¸ÅÊö£º

Nginx Proxy ManagerÊÇÒ»¸ö»ùÓÚNginxµÄͼÐλ¯½çÃæÖÎÀí¹¤¾ß£¬¿ÉÒÔͨ¹ý¼òÆÓµÄÉèÖÃʵÏÖURLÖض¨Ïò¡£±¾ÎĽ«ÏÈÈÝÔõÑùʹÓÃNginx Proxy Manager¾ÙÐÐÉèÖ㬲¢ÌṩÏêϸµÄ´úÂëʾÀý¡£

°ì·¨Ò»£º×°ÖÃNginx Proxy Manager

Ê×ÏÈ£¬ÐèÒªÔÚЧÀÍÆ÷ÉÏ×°ÖÃNginx Proxy Manager¡£¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÔÚUbuntuϵͳÖоÙÐÐ×°Öãº

sudo apt-get update
sudo apt-get install nginx
sudo apt-get install certbot

µÇ¼ºó¸´ÖÆ

°ì·¨¶þ£ºÉèÖÃNginx Proxy Manager

Ò»µ©×°ÖÃÍê³É£¬¿ÉÒÔͨ¹ýWeb½çÃæ¾ÙÐÐÉèÖá£ÔÚä¯ÀÀÆ÷ÖÐÊäÈëЧÀÍÆ÷µÄIPµØµã»òÓòÃû£¬²¢»á¼ûÒÔÏÂÍøÖ·£ºhttp://ЧÀÍÆ÷IPµØµã:81£¨Çëƾ֤ÏÖÕæÏàÐÎÐÞ¸ÄIPµØµã£©¡£

½øÈëNginx Proxy ManagerµÄÖÎÀí½çÃæºó£¬µã»÷×ó²à²Ëµ¥À¸ÖеĔProxy Hosts”Ñ¡ÏȻºóµã»÷”Add Proxy Host”°´Å¥¡£

ÔÚµ¯³öµÄÒ³ÃæÖУ¬ÐèÒªÌîдÒÔÏÂÄÚÈÝ£º

Domain Names£ºÒª¾ÙÐÐÖض¨ÏòµÄÓòÃû¡£

Scheme£ºÖض¨ÏòµÄЭÒ飨http»òhttps£©¡£

Forward Hostname/IP£ºÒªÖض¨Ïòµ½µÄÄ¿µÄµØµã¡£

µã»÷”Save”°´Å¥£¬ÉúÑÄÉèÖá£

°ì·¨Èý£ºÎªÓòÃûÉêÇëSSLÖ¤Êé

ÈôÊÇÒª¶ÔÖض¨ÏòµÄÓòÃûʹÓÃSSLÖ¤Ê飬ÐèÒªÉêÇëÒ»¸öÃâ·ÑµÄSSLÖ¤Êé¡£¿ÉÒÔʹÓÃCertbotÀ´¾ÙÐÐÉêÇë¡£

sudo certbot certonly --standalone -d ÄãµÄÓòÃû

µÇ¼ºó¸´ÖÆ

ÉêÇëÀֳɺó£¬Certbot½«»á×Ô¶¯½«SSLÖ¤ÊéÉúÑĵ½Ð§ÀÍÆ÷ÉÏ¡£

°ì·¨ËÄ£ºÉèÖÃSSLÖ¤Êé

»Øµ½Nginx Proxy ManagerµÄÖÎÀí½çÃ棬µã»÷×ó²à²Ëµ¥À¸ÖеĔProxy Hosts”Ñ¡ÏÕÒµ½¸Õ¸ÕÌí¼ÓµÄÊðÀíÖ÷»ú£¬²¢µã»÷¶ÔÓ¦µÄ”Edit”°´Å¥¡£

ÔÚµ¯³öµÄÒ³ÃæÖУ¬¿ÉÒÔ¿´µ½”SSL”Ò»À¸¡£Ñ¡Ôñ”Custom”Ñ¡Ï²¢ÌîдÒÔÏÂÄÚÈÝ£º

SSL Certificate£ºÑ¡Ôñ¸Õ¸ÕÉêÇëµÄSSLÖ¤ÊéÎļþ¡£

SSL Key£ºÑ¡ÔñSSLÖ¤Êé¶ÔÓ¦µÄ˽ԿÎļþ¡£

µã»÷”Save”°´Å¥£¬ÉúÑÄÉèÖá£

°ì·¨Î壺ÖØÆôNginxЧÀÍ

×îºó£¬ÔÚЧÀÍÆ÷ÉÏÖ´ÐÐÒÔÏÂÏÂÁÖØÆôNginxЧÀÍ¡£

sudo service nginx restart

µÇ¼ºó¸´ÖÆ

Íê³ÉÒÔÉÏ°ì·¨ºó£¬URLÖض¨ÏòÉèÖþÍÍê³ÉÁË¡£µ±»á¼ûÉèÖõÄÓòÃûʱ£¬Nginx½«»á×Ô¶¯½«ÇëÇóÖض¨Ïòµ½Ö¸¶¨µÄÄ¿µÄµØµã¡£

ʾÀý£º

¼ÙÉèÎÒÃÇÒª½«ÓòÃûwww.example.comÖض¨Ïòµ½www.newexample.com£¬ÏÂÃæÊÇÏêϸµÄÉèÖÃʾÀý¡£

Domain Names£ºwww.example.com

Scheme£ºhttp

Forward Hostname/IP£ºwww.newexample.com

Íê³ÉÒÔÉÏÉèÖú󣬵±»á¼ûwww.example.comʱ£¬Nginx½«»á×Ô¶¯½«ÇëÇóÖض¨Ïòµ½www.newexample.com¡£

×ܽ᣺

±¾ÎÄÏÈÈÝÁËÔõÑùʹÓÃNginx Proxy ManagerʵÏÖURLÖض¨Ïò£¬²¢ÌṩÁËÏêϸµÄÉèÖÃʾÀý¡£Í¨¹ýʹÓÃNginx Proxy Manager£¬¿ÉÒÔÀû±ãµØ¾ÙÐÐURLÖض¨ÏòµÄÉèÖúÍÖÎÀí¡£Ï£Íû±¾ÎÄÄܶÔÄãÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇNginx Proxy ManagerʵÏÖURLÖض¨ÏòµÄÉèÖÃÖ¸ÄϵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ