Configure a URL Forwarding Policy

<p>You can configure a URL forwarding policy for an ELB instance configured with a seven-layer (HTTP and HTTPS protocol) listener to forward requests from different domain names or URLs to a specified pool.</p> <p><strong><span style="font-size:18px">Overview</span></strong></p> <p>For HTTP or HTTPS listener of external ELB instances, you can choose to configure the URL forwarding policy. After users create an ELB instance, as long as users has created a seven-layer (HTTP and HTTPS protocol) listener and specified a pool for the listener, namely the listener is in the state of the configured pool, it can use the domain name URL forwarding function. Listeners that do not specify a resource pool cannot be configured for URL forwarding. The four-layer listener TCP/UDP does not support URL rule forwarding.</p> <p><strong><span style="font-size:18px">Dependency and Linkage</span></strong></p> <p>1.&nbsp;When a listener is bound to a resource pool, the resource pool will be emptied and deleted if the host member is forcibly released. The system will delete all forwarding policies at the same time. Because a listener which is &quot;unconfigured&quot; with resource pool cannot complete the URL forwarding process. Deleting URL policy forwarding entries will not affect the status of the listener. You only need to re-edit the listener and bind the listener to a new pool before you use it.</p> <p>2. If the host member is forcibly released in the pool specified in the forwarding policy, causing the pool to be emptied and deleted. The system will delete all forwarding policies at the same time. Because a URL policy entry which is &quot;unconfigured&quot; with resource pool cannot take effect. Deleting URL policy forwarding entries will not affect the status of the listener.</p> <p>3. In the creation of the URL forwarding policy, if you edit different URL forwarding entries for the same domain name for multiple times, the system will automatically categorize the entries under the same domain name when displayed to make your searching more convenient.</p> <p>4.&nbsp;The policy entry first matches the standard domain name policy, and then matches the pan-resolved domain name composed of regular expressions.</p> <p><strong><span style="font-size:18px">URL Forwarding Policy Rule</span></strong></p> <p>If you need to enable policy forwarding, you need to enter at least the domain name policy or URL policy or both of them.</p> <p><strong>Domain Usage Rule</strong></p> <p>&bull;&nbsp;URL forwarding supports two domain name forwarding policies: Extensive[AD1]&nbsp; resolve domain name and standard domain name. Domain names with asterisk (*) are Extensive[AD2]&nbsp; resolved domain names, and the standard domain name example is &quot;yun.pingan.com.&quot;</p> <p>&bull;&nbsp;Asterisk (*) must be the first character that appears. For example &quot;*.pingan.com&quot; or &quot;*xxx.pingan.com.&quot;</p> <p>&bull;&nbsp;Asterisk (*) cannot be used repeatedly, for example, &quot;**.pingan.com&quot; is not allowed.</p> <p>&bull;&nbsp;Asterisk (*) cannot be the last character, for example, &quot;yun.pingan.*&quot; is not allowed.</p> <p><strong>URL Usage Rule</strong></p> <p>&bull;&nbsp;You do not need to enter &quot;URL&quot;. The system default URL as slash (/).</p> <p>&bull;&nbsp;The URL input length is limited to 0-80 characters.</p> <p>&bull;&nbsp;The URL can only use letters, numbers, en dash (-), slash (/), point (.), percent (%), question mark (?), hashtag (#), ampersand (&amp;) and other characters.</p> <p>&bull;&nbsp;The URL cannot be just slash (/), but it must start with slash (/). Slash (/) has been fixed at the front of the field and does not need to be entered separately.</p> <p><strong><span style="font-size:18px">URL Forwarding Policy Limits and Quotas</span></strong></p> <p>1.&nbsp;You can edit 10 policies at a time on the creating page for submission (the slash (/) default path generated by the system by default does not need editing.)</p> <p>2.&nbsp;Each listener can create and configure 40 URL forwarding policies (including the slash (/) default path generated by the system by default)</p> <p><strong><span style="font-size:18px">Prerequisites</span></strong></p> <p>You have successfully created an external ELB HTTP or HTTPS listener and bound it to a resource pool.</p> <p><strong><span style="font-size:18px">Procedures</span></strong></p> <p>1.&nbsp;Log in to the <a href="https://pinganyun.com/console/loadBalance/overview" target="_blank">ELB Console</a>.</p> <p>2. In the left navigation pane, click <strong>Instance Management</strong> to enter the <strong>Instance Management</strong> page.</p> <p>3.&nbsp;Select the target region to view the existing ELB instances of that region.</p> <p>4.&nbsp;Click the <strong>Instance Name</strong> of the target ELB instance and enter the <strong>Instance Information</strong> page.</p> <p>5.&nbsp;Click the <strong>Listener</strong> tab.</p> <p>6. Click <strong>Url Forward</strong> in the<strong> Operation</strong> column of the target listener.&nbsp;</p> <p>7.&nbsp;Enter the domain name and URL, specify the forwarding resource pool, add a note (optional), click <strong>Add Entry</strong>, and you will see an <strong>Operation succeeded</strong> message at the bottom of the page, indicating that the configuration takes effect.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20201607142040-11d7e70e92d4.png" style="height:20px; margin:1px; width:50px" /><strong>:</strong> The default entry slash (/) is an entry automatically generated by the system which is a default policy. When the access request related to the domain name does not match other URL rules, it will match this default policy. If the default policy is deleted, the access request for the domain name will be discarded when it does not match other rules and a 404 prompt will be returned. But you can still choose to delete the default policy, or manually add the default policy.</p> <p>&nbsp;</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products