Clear the website on IIS Express, iisexpress

Source: Internet
Author: User

Clear the website on IIS Express, iisexpress

By default, When Visual Studio is used to browse Web pages, websites are saved on IIS Express and need to be cleaned manually. You can use the command line or interface to clean up.

 

□Use the command line

 

Find appcmd.exe in the C: \ Program Files \ IIS Express folder.
→ Enter the following command to access drive C:

Upload to the folder where appcmd.exe is located

→ List all Websites stored on IIS Express

→ If you want to see the folder where the website is located

→ If you want to rename a website, for example, you want to rename the "First WCF Demo"

→ If you want to delete a website, such as "hellowcf ",

Note: The website is only deleted from the IIS Express website and will not be deleted from the disk.

 

□Interface

 

→ Click "file" -- "New Website"
→ For example, select the "Visual C #" option under "template ".
→ Click "Browse"
→ Click "Local IIS" to view all websites on IIS and IIS Express. Select a website and click Delete in the upper-right corner to delete the website.

Note: The website is only deleted from the IIS Express website and will not be deleted from the disk.


How does the server clear IIS cache records?

IIS is available on each server. IIS is no stranger to everyone. IIS caching improves server capabilities for one reason, but its negative effects bring serious problems to websites. Check the HTTP protocol, and the netizens will find that this command Cache-Control: no-cache can be defined in the HTTP header returned by the server. This approach can be used to solve problems. Step 2: Open the IIS configuration management software (Internet Information Service (IIS) manager ). Select a website (You may want to configure the existing website, select the "website" icon in the "click" website "") and click the "attribute" option. A Configuration window is displayed. Step 2: Select the "HTTP header" TAB. Next, you will observe the column "select HTTP header. OK! This is the place! Step 2: click the "add (D)..." option next to it to add the command. In the pop-up window, in "select HTTP header name (C) by yourself", enter "Cache-Control", and in "select HTTP header value by yourself (U: "no-cache ". Okay, there will be OK in this place. Just click "OK" to save it. In this case, the IIS cache on the server has been completely cleared.

Can IIs7 Express be used as an IIS server independently?

Yes, I have used it.
"Website", "set", and change the IP address on the right to the machine name or IP address.

Related Article

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.