A virtual directory maps a web address on your site (for example yourdomain.com/app) to a folder. In IIS you can also mark it as an application, so the folder runs as its own ASP.NET application with its own web.config and bin folder. This is useful for running a separate app under your main site.
Step-by-Step Guide:
-
Open Virtual Directories:
- Log in to Plesk, click Websites & Domains and find your domain.
- Click Virtual Directories (on the Hosting & DNS tab). You can also type "Virtual Directories" in the search box at the top of Plesk.
-
Create the directory:
- Browse to the location where it should appear (usually the site root) and click Create Virtual Directory.
- Name: the web path, e.g. app for yourdomain.com/app.
- Path: the physical folder in your hosting space. Leave Plesk's suggestion to create a new folder, or choose an existing one.
- Tick Create application (or Application) if the folder holds a separate ASP.NET app.
- Set other options as needed (default documents, script permissions, ASP.NET version).
- Click OK.
-
Upload your files:
- Upload the application's files into the folder you chose using the File Manager or FTP.
Additional Information:
- A sub-application inherits settings from the parent site's web.config. If you see configuration errors, you may need to wrap parent settings in
<location path="." inheritInChildApplications="false">. - ASP.NET Core apps in a sub-application need their own published web.config.
- A virtual directory or sub-application shares the main site's application pool, so recycling the site's pool restarts both.
- To edit or delete a virtual directory, open the same page and click its name or its properties icon.
Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.