WebStorm 9.0.2 Web Help

Create New Project: Add Local Server

File | New Project From Existing Files - Web server is installed locally, source files are located under its document root


The page opens if you have selected the Add new local server option on the Create New Project: Specify Local Server page. On this page, define a new local Web server access configuration.

Item Description
Name In this text box, type the name of the new configuration.
Web server root URL In this text box, type the URL address of the server configuration root. Both the HTTP and the HTTPS protocols are supported.

To access a server through HTTPS, you need to acquire a certificate file <certificate_name>.cert signed by a recognized authority and import this certificate in the truststore/keystore of the Oracle JRE (Java Runtime Environment) on which WebStorm runs. Note that self-signed certificates are rejected as unsafe.

To import a certificate in Oracle JRE:

  1. Open the embedded Terminal and type the following command:
    <jre_home>/bin/keytool.exe -importcert -keystore <path to jre truststore/keystore> -file <full_path_to_<cert_name>.cert>
    If you are using the Oracle JRE bundled with WebStorm, the default path to the truststore/keystore is <%product_installation_folder>/jre/jre/lib/security/jssecacerts or <%product_installation_folder>/jre/jre/lib/security/cacerts.

    Otherwise it is <jre_home>/jre/lib/security/jssecacerts or <jre_home>/jre/lib/security/cacerts.

  2. When asked to enter a password for the truststore/keystore, specify the default one changeit.
  3. Open the WebStorm.exe.vmoptions file in the <WebStorm_installation_folder>/bin and add the following line to it:
    -Djavax.net.ssl.keyStore=<path to keystore>
  4. Restart WebStorm.
Learn more at Java6 and Java7.

Open Click this button to open the page at the specified URL address in the default browser and make sure that the URL actually points at the server configuration root.

See Also

Last modified: 11 December 2014
comments powered by Disqus