I thought I should be able to, but I was unable to get it to work.
Here are the steps I took…
(From EE Docs)
<img1.jpg> == Folder Structure on server. SYSTEM is where my EE Install resides.
Inside of SYSTEM is my ‘system’ folder. I copied the index.php file from there and placed it in a folder located inside of SITE1. I then renamed this file ‘admin.php’.
<img2.jpg> == Folder Structure on server with ‘_admin’ folder.
Now in this ‘admin.php’ file, I have uncommented the line for MASKED CP ACCESS.
/*
* --------------------------------------------------------------------
* MASKED CP ACCESS
* --------------------------------------------------------------------
*
* This lets the system know whether or not the control panel is being
* accessed from a location outside the system folder
*
* NOTE: If you set this, be sure that you set the $system_path and the
* 'cp_url' item in the $assign_to_config array below!
*
*/
define('MASKED_CP', TRUE);
I then changed my ‘$system_path’ to point to the actual system folder, using a relative path.
/*
* --------------------------------------------------------------------
* SYSTEM PATH
* --------------------------------------------------------------------
*
* The following variable contains the server path to your
* ExpressionEngine "system" folder. By default the variable is left
* blank. If you need to run your CP from somewhere other then
* the default location you can set name here and move a copy of this
* file to that location. If you set the name, please include the
* server path. The path can be a simple relative path or it can
* be a full server path.
*
* Example: $system_path = './mysecretfolder';
*
*/
$system_path = "../../SYSTEM/system";
I then uncommented the ‘cp_url’ override and entered the URL as:
/*
* --------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* --------------------------------------------------------------------
*
* 'cp_url' is typically the only config override variable
* that would need to be managed in the control panel index.php file
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
$assign_to_config['cp_url'] = 'http://myDomain.com/_admin/admin.php'; // masked CP access only
Now, according to the documentation on the site, I needed to add a ‘site_name’ variable to the array because I am using MSM, so I added this directly below the last one. (‘cp_url’)
$assign_to_config['site_name'] = 'SITE1';
This is how it looks to be on the documentation and everything else I have read, however, when I try to navigate to that location, I end up getting a page rendering the SITE1 without anything on it. (Like a blank page)
I hope this all makes sense…
Thanks,