Jump to content

Building A Control Panel


jj20051

Recommended Posts

Hello,

 

I've decided I'm going to build my own control panel, however I need some help getting started. I'm unsure how to make the server give/receive the correct files from each domain. As some of you may know a control panel puts each users files into a folder like this:

 

/users/yourdomain.com/public_html

 

I'm just unsure how to have the server point to those files like this:

 

User requests yoursite.com -> server points them to: /users/yoursite.com/public_html/index.html

 

Any ideas?

Link to comment
Share on other sites

you mean subdomains?

 

like site1.mysite.com?

 

I've never seen site1/mysite.com

 

If that is the case, you need to look into htaccess 301 redirects for certain users to redirect to certain sub domains.  However as the server admin you need to make those subdomains point to the right places in apache.

Link to comment
Share on other sites

This sounds more like an apache redirect/alias system, than a php issue.

Although you can do something like this with php, but apache must be configured for PATH_INFO.

 

Apache Alias look at AliasMatch config setting, which will give you general info on how to use it (although you will need some knowledge of regex) but it should be complicated to add

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.