2011-07-12, 21:29:29
Hi there.
Dont really know where to put this.
Basically I played today to make a GS version that can handle mutli subdomains. This is just a quick thing and needs more work have currently worked on it from localhost just. But what I did is made that the domain name
is the key to all upload/pages/user files etc. Thus a user logs in under
peter.mydomain.com
then he will only see his pages and upload etc and the themes will be controlled seperatly for him all from 1 instance of GS installed. the subdomain must just point to the normal index.php file of GS and it will make the split internally.
this is just a proof of concept. I have also added some defines to be used in plugins to be able to work in the multi subdomain enviroment
GSSITEURLUPLOADPATH
GSSITEURLOTHERPATH
GSSITEURLPAGESPATH
GSSITEURLTHUMBNAILPATH
GSSITEURLTHEMESPATH
It works on mine seperating everything uploading editing etc with no problem and plugins also work (those provided).
This does not allow for a site admin yet, stuff that can be added if it is decided to take this forward. Idea was just to see how easy it can be done and how fast.
I have not tested it with a clean install yet. Worked from my box.
Hope it can help somebody
thanks
Johannes
Dont really know where to put this.
Basically I played today to make a GS version that can handle mutli subdomains. This is just a quick thing and needs more work have currently worked on it from localhost just. But what I did is made that the domain name
is the key to all upload/pages/user files etc. Thus a user logs in under
peter.mydomain.com
then he will only see his pages and upload etc and the themes will be controlled seperatly for him all from 1 instance of GS installed. the subdomain must just point to the normal index.php file of GS and it will make the split internally.
this is just a proof of concept. I have also added some defines to be used in plugins to be able to work in the multi subdomain enviroment
GSSITEURLUPLOADPATH
GSSITEURLOTHERPATH
GSSITEURLPAGESPATH
GSSITEURLTHUMBNAILPATH
GSSITEURLTHEMESPATH
It works on mine seperating everything uploading editing etc with no problem and plugins also work (those provided).
This does not allow for a site admin yet, stuff that can be added if it is decided to take this forward. Idea was just to see how easy it can be done and how fast.
I have not tested it with a clean install yet. Worked from my box.
Hope it can help somebody
thanks
Johannes