StaticFilePath
The absolute file system path to the mt-static directory.
This value corresponds to the absolute URL path or fully-qualified domain name URL specified in StaticWebPath.
Tip: If not configured, it is assumed that the
mt-staticdirectory is located in the application directory. Thus theStaticFilePathdirective is only required if themt-staticdirectory has been moved out of the Movable Type application directory.
Values ¶
Filesystem path. Default is to assume that filepath is the value of CGIPath + "mt-static/"
Example ¶
If the application directory is located at:
URL: http://example.com/cgi-bin/mt/
Filepath: /var/www/cgi-bin/mt/
...and static files cannot be served from the cgi-bin directory, then you have two choices:
Alias
http://example.com/mt-static/to/var/www/cgi-bin/mt/mt-static/via symlink, Apache alias, etc.Because the
mt-staticdirectory is still in the application directory there is no need to use theStaticFilePathconfig directive. Themt-config.cgifile would look like this:CGIPath http://example.com/cgi-bin/mt/ StaticWebPath http://example.com/mt-static/Move the
mt-staticdirectory to the web root directory:/var/www/html/mt-static/and then set the
StaticFilePathconfig directive to this location:StaticFilePath /var/www/html/mt-static/The following three path settings would then be in the
mt-config.cgifile:CGIPath http://example.com/cgi-bin/mt/ StaticWebPath http://example.com/mt-static/ StaticFilePath /var/www/html/mt-static/

Jay Allen
January 29, 2008 2:23 PM | Reply
The StaticFilePath directive will be necessary if you have moved your mt-static directory out of the MT directory (and configured StaticWebPath).
The StaticFilePath is an absolute filesystem path to the mt-static directory and corresponds to the absolute URL path or fully-qualified domain name URL specified in StaticWebPath.
For example, if your MT directory is located at:
...and your CGI-bin disallows the serving of HTML files, you might move your mt-static subfolder to your document root:
In this case, you would want to include the following in your mt-config.cgi: