charles remote mapped to the URL address

Reference article: charles mapped to a remote URL address

Remote Mapping / Map Remote Settings

Function: To request your address is mapped to a remote address; equivalent to modify the address your request;

Remote mapping tool

Remote mapping tool change position depending on the configuration of the mapping request,

To the new position of "visible" to provide a response, just as the original request.
This mapping enables you to provide all or part of the site A from site B (A is the original goal, B is where you map the remote).

For example, you can do the following operations

  • You can xk72.com/charles/ mapped to localhost / charlesdev / subdirectory is to provide a xk72.com,
  • Or to map all files xk72.com/*.php such a designation suffix to localhost / charlesdev /.

Recommendations

If you want to develop a website, and already have a web site development environment, and want to apply some of the file you just updated to the online site, how effective the test, the "Remote Mapping" will be very useful.

For example, you might put the files in the css and images directory test environment updated. You can be mapped to dev.com/css/ live.com/css/ or mapped to the live.com/*.css such dev.com.

Mapping Types

  • You can map the directory to the directory, such as xk72.com/charles/ mapped to localhost / charlesdev /
  • You can map files to the file, such as xk72.com/charles/download.php mapped to abc.com/testing/test.html
  • You can directories and files to the directory schema mapping, such as xk72.com/charles/*.php to localhost / charlesdev /
  • If the path is not specified in the target map, the path part of the URL will not change. If you want to map to the root directory, / you have at the end of the destination path field.

Personally feel that, in fact, there is no need to do so, if you want to achieve the same result can also be achieved by modifying the local HOST way ; of course if you modify the host's way, may be easy, but it may need the help of a host management artifact switchhosts

Although not recommended remote mapping, but very recommended "local map"

Local maps

See local mapping tool, some requests can be mapped to local files on a network file, so you do not have to file thrown up a test environment, direct refresh your browser can view the latest results.

locations match

Each location may contain a matching protocol, host, port, and path pattern to match a specific URL. Location may include wildcards.
Reference article: https://www.axihe.com/

Guess you like

Origin www.cnblogs.com/broszhu/p/11561197.html