Open the Deployment dialog box. Do one of the following:
- Open the project settings ( ), and then click Deployment.
- Choose on the main menu.
- In the left-hand pane, that shows a list of all the existing server configurations, click the Add toolbar button . The Add Server dialog box opens.
- Specify the server configuration name in the Name text box. From the Type drop-down list, choose the server configuration type In-place.
- Click OK. The Add Server dialog box closes and you return to the Connection tab of the Deployment dialog box.
In the Web server root URL text box, type the URL address associated with the document root of your Web server as defined in the Web server configuration file. This URL address will be the starting point for building the URL address of your application.
For example, the Apache httpd server configuration file is httpd.conf. The default document root is the htdocs folder and the default URL address to access the data in it is http://localhost. If you have changed the default port 80, you have to specify the port explicitly: http://localhost:<port>.
- Switch to the Mappings tab.
- In the Local path text box, specify the full path to your project root folder. Type the path manually, or click the Browse button and choose the folder in the dialog box, that opens.
- In the Web path on server text box, type the path to the project root folder relative to the server document root specified in the server configuration file. As you type, WebStorm dynamically builds the URL address through which your project root folder will be accessible and shows it as a link in the Project URL read-only field. To check that the URL address is constructed correctly and ensures access to the project root, click the link.