How to Access the Web.config for Websites Hosted in Our Environment
Caution: Before making any modifications to your web.config make sure you create a viable backup of your site that can be restored should the edits create a problem. To back up your site, refer to Back Up Your Website Using Plesk.
In a default installation, your web.config file is located in the httpdocs folder. If file extensions are not listed, it may just appear as web. Visual Studio is the program we recommend using when modifying the web.config. However, if it is not installed on your local machine, you can use Notepad ++ or simply Notepad to make changes to the web.config file.
Options for Accessing Your Web.config
- Use FTP to download, modify, then upload the file.
- Use Plesk Control Panel to access and modify the file.
- Use Remote Desktop to access the file (for Dedicated Server customers).
Use FTP to Download, Modify, and then Upload the Web.config File Back to the Server
- Open your FTP program on your local machine.
- Use FTP to access your site. See How to Use FTP for information on how to use your ftp account to access your files.
- Navigate to the httpdocs folder.
- Select the web.config file and drag it to your local machine.
- Make a copy, then modify the file as needed to resolve the issue you are working through.
- To send the updated file back to your server, drag the modified version to the httpdocs folder.
Use Plesk 12.x and Onyx to Access and Modify the Web.Config File
- Log into your Control Panel.
- In the Subscriptions tab, click on your domain.
- Click on Websites and Domains tab and click Show More at the bottom of the page.
- Click the icon for File Manager.
- Click on the httpdocs directory on the left
- Click on your web.config.
- To edit your web.config, click Edit in Text Editor or Edit in Code Editor.
- When you have finished editing it, click on Save to save your changes and recycle the application pool.
Use Remote Desktop to Access and Modify the Web.config File on Your Dedicated Server
- Log into your Dedicated Server using Remote Desktop.
- Click on Start > Computer > double click on Local Disk (C:)
- Double click on inetpub. Double click on vhosts. Double click on the domain of which the web.config needs to be accessed.
- Double click on httpdocs. Right click on the web.config (or simply web if file extensions are hidden) and choose Copy.
- Paste a copy of the web.config in the Private folder of the domain or on the Desktop in case the changes you make need to be reverted.
- Double click on web.config in httpdocs and make the necessary modifications to the file.
Article ID: 636, Created: April 18, 2012 at 10:15 AM, Modified: January 28, 2020 at 10:40 AM