login community faq

I have a Yii application installed as a php webapp in /home/myusername/webapps/example. The app is served at www.example.com. This works fine.

Now I want to split the application into two separate applications, a front-end app and a back-end admin area as described in The directory structure of the Yii project site. Without needing to read that document, basically will have an index.php in each app that serves as the entry point for that application.

So the frontend would be served at www.example.com and the backend served at admin.example.com. Ideally I like these two separate applications grouped in the webapps folder. So I'd want folders ~/webapps/example/frontend (to serve the main site) and ~/webapps/example/backend (to server the admin backend). They may share common code in ~/webapps/example/common

How can I set this up in webfaction (in terms of configuring websites, apps, and domains)?

asked Sep 24 '12 at 16:15

user's gravatar image

user
3710

edited Oct 05 '12 at 17:37


Use a 'symbolic link' type application and point the 'extra info' to the admin directory(using the file-system path), than bind that to admin.example.com.

answered Sep 24 '12 at 18:24

johns's gravatar image

johns ♦♦
345427

So would I also create a symbolic link application to ~/webapps/example/frontend and bind it to www.example.com?

(Oct 04 '12 at 16:44) user user's gravatar image

Yes, you can certainly do that for the front-end also. Then again, if your application by default will serve the front-end on the application you already have then you may not need a 3rd app for the front-end.

(Oct 04 '12 at 18:22) waynek ♦♦ waynek's gravatar image

@waynek: currently my app serves from ~/webapps/myapp. However I'd like to serve it from ~/webapps/myapp/frontend instead. Logically my site only has two applications but it's sounding like I'll need three to pull it off (one "regular" app, and two symbolic link apps). Is creating a symbolic link app the only way to do this or is there another way?

(Oct 05 '12 at 01:51) user user's gravatar image

If your app can't be configured to server from the frontend sub-directory then yes, a symbolic link app is the way to go.

(Oct 05 '12 at 02:08) waynek ♦♦ waynek's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×149
×34
×26
×16
×14

Asked: Sep 24 '12 at 16:15

Seen: 581 times

Last updated: Oct 05 '12 at 17:37

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited