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
https://forums.phpfreaks.com/topic/186415-building-a-control-panel/
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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.