Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. Currently, when our domain name needs to be accessed with a port number, the sub-domain name deployment will not pass the port number.
At present, when we need to carry a port number to access our domain name, the sub-domain name deployment will not pass the port number.
Solution:
Find ThinkPHP/Common/functions. php line 878th.
$ Domain = $ key. (preg_match ('/\. (cn | com | org | net | cc) $/I', $ key )? '': Strstr ($ domain, '.'); // generate the corresponding subdomain name
Change
List ($ key, $ port) = explode (':', $ key );
$ Domain = $ key. (preg_match ('/\. (cn | com | org | net | cc) $/I', $ key )? '': Strstr ($ domain, '.'). ($ port? ':'. $ Port: ''); // generates the corresponding subdomain name, which is compatible with subdomain names with port numbers.
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB