Development

HowToRedirectPublicHtmlToWebFolder (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of HowToRedirectPublicHtmlToWebFolder

Show
Ignore:
Author:
smeves (IP: 208.120.3.76)
Timestamp:
12/11/06 03:12:28 (11 years ago)
Comment:

added section about subdomains

Legend:

Unmodified
Added
Removed
Modified
  • HowToRedirectPublicHtmlToWebFolder

    v1 v2  
    3030}}} 
    3131 
    32 DRAFT 
     32 
     33 
     34== How to host multiple projects under subdomains == 
     35 
     36I generally will upload my symfony projects to a staging area while I am working on them so I can show clients progress. The process is really easy once you get used to it, and it requires ssh access. 
     37 
     38Goal: host multiple symfony projects under different subdomains on the same hosting account. 
     39 
     401. Create the subdomain using your web host's control panel. If I set up the subdomain "app1.mydomain.com", it will generally point to a new directory in my public_html folder with the same name (app1).  
     41 
     422. Upload symfony project to my root directory (NOT public_html, but the level above that). In this example the path is: 
     43 
     44{{{ 
     45/home/[myusername]/app1 
     46}}} 
     47 
     483. Now, I need to point the folder created by the subdomain in step 1 to my new project's web folder uploaded in step 2: 
     49 
     50{{{ 
     51# cd ~/public_html 
     52# rm -rf app1                //remove the original directory created by subdomain 
     53# ln -s /home/[myusername]/app1/web app1   //make a symlink to my projects web directory 
     54}}} 
     55 
     564. You're done!