AdminCGIPath

URL to the Movable Type application directory.

The AdminCGIPath configuration directive is the administrative analog to the CGIPath directive and allows for a distinct URL path to be used for access to the administrative interface and scripts (e.g. mt.cgi).

AdminCGIPath https://www.example.com/path/to/mt/

Its use is optional since the CGIPath setting is used in its absence. However, for added security, Six Apart recommends use of this directive in combination with SSL (via https protocol) in order to provide encryption/authentication of all administrative requests.

The value of this setting can be included in a template via the MTAdminCGIPath template tag.

Warning: If using AdminCGIPath to specify a different url or protocol for accessing admin scripts, the value for StaticWebPath must be a relative url to allow JavaScript to execute with same origin access for both AdminCGIPath and CGIPath URLs.

Warning: If using a different domain or subdomain for AdminCGIPath, the mt-static directory should be copied or aliased to the same relative path (specified with StaticWebPath) on both domains.

Value

Full URL.

Examples

In your mt-config.cgi, the following (without AdminCGIPath) would be used for all links to Movable Type scripts, public or private:

CGIPath http://www.example.com/path/to/mt/

The following, in addition to the CGIPath setting above, would use HTTP protocol for the public interface scripts and HTTPS protocol for the administrative scripts. You would, of course, need to enable SSL on your server before this will work.

AdminCGIPath https://www.example.com/path/to/mt/

The following, in addition to the CGIPath setting above, would preferentially use the admin subdomain of example.com for accessing the administrative scripts. All public scripts would still use the CGIPath setting.

AdminCGIPath http://admin.example.com/path/to/mt/
This page was last updated on 2009-11-09, 22:44.

1 Note

Hello,

Can this page be updated with a comprehensive example of AdminCGIPath usage?

Specifically (under MT 5.0):

  • Which are the "administrative" scripts?
  • Which are the "public" scripts?
  • To setup an administrative subdomain, should the admin scripts be moved to a separate directory?

Similar (unanswered) questions can be found in the support forums:

Thanks!

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.