StaticFilePath

The StaticFilePath directive is 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.

Values

Filesystem path, ie. /home/example/www/html/mt-static

Example

If the MT directory is located at:

  • URL: http://example.com/cgi-bin/mt/
  • FIlepath: /home/example/www/cgi/mt/

...and your CGI-bin disallows the serving of HTML files, you might move your mt-static subfolder to your document root:

  • URL: http://example.com/mt-static/
  • FIlepath: /home/example/www/html/mt-static/

In this case, you would want to include the following in your mt-config.cgi:

CGIPath http://example.com/cgi-bin/mt  # Can also be: /cgi-bin/mt
StaticWebPath http://example.com/mt-static  # Can also be: /mt-static
StaticFilePath /home/example/www/html/mt-static/
This page was last updated on 2009-06-30, 11:00. [Edit]

1 Note

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.