How to handle subdomains

I have a site with several subdomains. I've tried to map these directories, but when a path relative to the FTP root is requested, there is no way to meet this requirement.

Here's a basic outline of the server's structure:

Files located in 'public_html' reference files in the includes directory via relative file paths. In this case, the directory 'includes' is not a subdomain, but merely a directory located above web root to prevent unauthorized access.

Files located in 'new' reference files in the subdomain 'cdn'. The 'new' directory contains new software that will eventually replace that located in the 'public_html' directory; at that point 'public_html' will contain files referencing the subdomain 'cdn'.

In Deployment->Mappings the Web Path is required to be "relative to the web server root URL". How can I accomplish this when the subdomain is not relative to the web server root URL? That is, is NOT

I've enclosed a pair of screenshots.

Screen Shot 2012-01-20 at 12.28.40 PM.JPG
Screen Shot 2012-01-20 at 12.06.04 PM.JPG
Comment actions Permalink

Hi Marty,

It cannot be done in current version of PhpStorm. Please check this ticket: and feel free to vote/comment/etc :).

If it is not exactly your case -- check for other issues in that category or submit new one.

Comment actions Permalink

Thanks Andriy!

I'll have to add my vote to that ticket.


Please sign in to leave a comment.