File | Settings | Web Contexts for Windows and Linux
IntelliJ IDEA | Preferences | Web Contexts for Mac OS

Use this dialog box to specify the Web context settings that IntelliJ IDEA uses to resolve Web paths in HTML and JSP for a file, directory, or the entire project.

ItemDescription
File/DirectorySelect the file, or directory, or project to specify a Web context for.

Expand the nodes in the tree until you access the required item.

Web ContextIn this drop-down list, select the relevant Web context.

If you select the Clear option, Web paths in the corresponding file or directory are resolved using the Web context setting inherited from the parent.

See Also

Procedures:

Web Resources: