Skip to content

config admincgipath

Violet edited this page Nov 2, 2010 · 2 revisions

AdminCGIPath

URL to the Melodyapplication 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. index.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 config.cgi, the following (without AdminCGIPath) would be used for all links to Melodyscripts, 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


Questions, comments, can't find something? Let us know at our community outpost on Get Satisfaction.

Clone this wiki locally