Skip to content

config admincgipath

Byrne edited this page Nov 1, 2010 · 2 revisions

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/

Related

  • CGIPath

  • StaticWebPath

  • Categories: Appendix: Configuration Directives

  • Tags: admin, config, https, Updated for MT5

  • Updated for MT5

Clone this wiki locally