Web Hosting Talk







View Full Version : Siteadmins


-Edward-
02-18-2001, 04:27 PM
is it possible to disable these on certain domains? ... I know i dont have to tell people about them but id like to remove it from certain ones altother if possible.

Jason_Berresford
02-18-2001, 04:42 PM
The siteadmin system is built into the cobalt itself, when a user types in http://www.domain.com/siteadmin/ they are forwarded to the control panel engine. Now if you do a little investigating your httpd.conf file you will see that for each site you will have something like the following:

RewriteEngine On
RewriteCond %{HTTP_***** ^([^:]+)
RewriteRule ^/admin/?$ http://%1:81/.cobalt/sysManage/index.html [L,R]
RewriteCond %{HTTP_***** ^([^:]+)
RewriteRule ^/siteadmin/?$ http://%1:81/.cobalt/siteManage/%1/index.html [L,R]
RewriteCond %{HTTP_***** ^([^:]+)
RewriteRule ^/personal/?$ http://%1:81/.cobalt/personal/index.html [L,R]
RewriteCond %{HTTP_***** ^([^:]+)
RewriteRule ^/.cobalt/(.+) http://%1:81/.cobalt/$1 [L,R]
RewriteCond %{HTTP_***** ^([^:]+)
RewriteRule ^/cgi-bin/.cobalt/(.+) http://%1:81/cgi-bin/.cobalt/$1 [L,R]


Of course there is more to it then that, h owever you can see, that each site has this information built into it, so by simply changing this information, or removing it all together. you "SHOULD" beable to stop users from gainning access to the control panel.

Chicken
02-18-2001, 10:08 PM
Plan B: Don't make them a siteadmin. yeah, I know that's the obvious one, but hey, it works!

You can create a symbolic link to a user's directory, so that they can still upload the 'site' so to speak. I think this might be what you want to do.