user-pic

Single Install with Mutliple Domains CGIPath, Alias and ScriptAlias Setup

Vote 0 Votes

I just bought a new MT PRO license with the thought of doing one install for multiple domains. I have MT PRO installed with all the needed perl modules. I'm running Apache 1.3.41 on a Mac OS X 10.4.11 server.

I'm going to have several sites each with their own domain. Naturally by doing one install I have one management interface to log into.

For the second domain the alias for mt-static files is working, however the cgi execution isn't working using the ScriptAlias. My log files indicate the following error suggesting ScriptAlias isn't mapping to the right directory.

[error] script not found or unable to stat: /WebServer/Documents/mtpro/SecondDomainf/mt-cp.cgi

Below is the relevant setup information. For purposes of this query to the group I've changed the domains and renamed the paths to suit.

Can anyone help me?

COMMON FILE SETUP:

mt-config.cgi
- set CGIPath to /
- No StaticWebPath or StaticFilePath set


DOMAIN 1 SETUP: www.MainMTInstall.com

ServerName MainMTInstall.com
ServerAlias www.MainMTInstall.com
DocumentRoot "/WebServer/Documents/mtpro"

Alias /mt-static "/WebServer/Documents/mtpro/mt-static"

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all


ScriptAlias /mtpro "/WebServer/Documents/mtpro"

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


DOMAIN 2 SETUP: www.SecondDomainInstall.com

ServerName SecondDomainInstall.com
ServerAlias www.SecondDomainInstall.com
DocumentRoot "/Volumes/HD2/WebServer/Documents/mtpro/SecondDomain"

Alias /mt-static "/WebServer/Documents/mtpro/mt-static"

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all

ScriptAlias /mtpro "/WebServer/Documents/mtpro"

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

Reported on Movable Type 4.2

4 Replies

| Add a Reply
  • Wow, I must have posted either a tough question or a stupid one :-) Which is it? Anyone care to tackle the issue.

  • This is my first post to MT as I am a new user with the same intentions. I just installed the script and I am so lost. I have been a Wordpress user and wanted something different. I Hope that this community is more responsive as I must say, "I have one foot in and one hanging outside when it comes to my overall view of MT." Good luck Mark.

  • Does the mtpro directory contain you mt scripts?

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

694 2908

Last Topic: Blogspot to Movable Type by sdude on Feb 8, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012