Change the domain name in targetprocess to modify the attachment address inside

Source: Internet
Author: User

By default, the TP-installed directory is under the Targetprocess2 of the default Web site (IIS), but if you want to use tp.targetprocess.cn for direct access, you need to make some settings.

The basic points are as follows:

1. Create a new Web site also bound to 80 ports, with different domain names

http:*:80:tp.targetprocess.cn

2. Note that the directory is pointing to directory Targetprocess2/wwwroot-targetprocess application pool with application pools

3. Convert the JavaScript under it to application while using the application pool targetprocess static pool

4. Start-Up

5. Remove the Targetprocess2 app from the original default website

6. Change the website address inside the setting.

Because some TP has been used for some time, so the attachment points to the address is not the new address, so that the picture can not be accessed and so on.

A text is placed inside the comment, so you need to use SQL update manually

Update TargetProcess.dbo.Comment
Set Description = REPLACE (Description, ' 120.25.xxx.xxx/targetprocess2 ', ' tp.targetprocess.cn ') where Description like ' %120.25.xxx.xxx/targetprocess2% '

One is in the story, etc. (data sheet equivalent to general)

Update targetprocess.dbo. [General]
Set Description = REPLACE (Description, ' 120.25.xxx.xxx/targetprocess2 ', ' tp.targetprocess.cn ') where Description like ' %120.25.xxx.xxx/targetprocess2% '

That's all you can do.

Change the domain name in targetprocess to modify the attachment address inside

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.