Hello,
Is it possible to set up the CMS Control Panel admin under a sub-domain?
I would like to view the site from http://www.site.com/ and the Admin CP from http://cms.site.com/cms/
Is this just a setting in the CP preferences?
Thanks,
Aidan
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 19, 2011 10:19am
Subscribe [4]#1 / Jan 19, 2011 10:19am
Hello,
Is it possible to set up the CMS Control Panel admin under a sub-domain?
I would like to view the site from http://www.site.com/ and the Admin CP from http://cms.site.com/cms/
Is this just a setting in the CP preferences?
Thanks,
Aidan
#2 / Jan 19, 2011 10:46am
Heya, you should be able to relatively easily if you are on the same server. The way I’d approach it is to use the MASKED_CP feature and then just put the cp index.php onto the subdomain.
e.g.
EE system: /var/www/ee2_system/<ee2 system files>
Domain #1: /var/www/www.domain1.com/<web_root>/<web files>
Sub Domain # 1: /var/www/subdomain.domain1.com/<web_root>/index.php where index.php is the CP index file.
If you’re trying to secure the control panel then I could suggest something like use MASKED_CP and change the name of the cp index.php file to something like my_obfuscated_cp_index.php OR if you want it to look a little nicer in the url you could do something like http://www.domain1.com/my_obfuscated_cp/index.php where index.php is the cp index.php file.
If you have index.php being +Indexed in Apache then you wont need to specify it in the url therefore making it look a little more clean. You can also .htpasswd the folder for added security.
#3 / Jan 20, 2011 3:48am
Thanks for stepping in, theLim3y. Does that help?
#4 / Jan 20, 2011 7:50am
Thanks theLim3y, that looks relatively simple, just one question to clarify..
Are <web files> everything except the EE2 “system” folder? like images, themes etc?
Thanks again,
Aidan
#5 / Jan 20, 2011 7:53am
and… Will this have any negative affect on incorporating the MSM?
#6 / Jan 20, 2011 1:02pm
<web_files> = All your typical front side files like css, images, js etc…
You can keep your templates folder outside of the webroot as they’re only used by the ee system.
It doesn’t affect the MSM.
This is the manual (doc) entry for how to mask the cp: http://ellislab.com/expressionengine/user-guide/general/system_above_webroot.html
Best,
J
#7 / Jan 21, 2011 1:51am
Thanks again J. Does that answer everything for you Citylogic?