Changes

Jump to navigation Jump to search
151 bytes added ,  03:07, 19 April 2007
Line 31: Line 31:  
In the point "modify 50DirectoryIndex00 to include index.pl" not modify template. Instead copy this template to customs-template dir, and make the necesary changes under customs-template files.
 
In the point "modify 50DirectoryIndex00 to include index.pl" not modify template. Instead copy this template to customs-template dir, and make the necesary changes under customs-template files.
 
--[[User:PicsOne|PicsOne]] 14:12, 11 April 2007 (EDT)
 
--[[User:PicsOne|PicsOne]] 14:12, 11 April 2007 (EDT)
 +
 
=====================================
 
=====================================
 
I would if I knew how
 
I would if I knew how
Line 225: Line 226:  
OK, what I did was make some changes to the template fragements and also made modifications to metadot.conf in /opt/metadot/etc for virtual host. This has now allowed both domains access without interfering with each other
 
OK, what I did was make some changes to the template fragements and also made modifications to metadot.conf in /opt/metadot/etc for virtual host. This has now allowed both domains access without interfering with each other
   −
[metadot1]
+
[metadot1]
name = dbi:mysql:metadotdb
+
name = dbi:mysql:metadotdb
user = metadot
+
user = metadot
pass = xxxxxx
+
pass = xxxxxx
dbtype = MySQL
+
dbtype = MySQL
public_uploads_dir = /opt/metadot/sitedata/public
+
public_uploads_dir = /opt/metadot/sitedata/public
public_uploads_location = /public
+
public_uploads_location = /public
jsform_type = Chain
+
jsform_type = Chain
jsform_filter = Checker|Dialog|Focus
+
jsform_filter = Checker|Dialog|Focus
controller_type = Metadot::MetadotController
+
controller_type = Metadot::MetadotController
skin_template_dir = /opt/metadot/sitedata/skins
+
skin_template_dir = /opt/metadot/sitedata/skins
servers = <<SERVERS
+
servers = <<SERVERS
localhost
+
localhost
SERVERS
+
SERVERS
 
+
[metadot2]
+
[metadot2]
name = dbi:mysql:domain2db
+
name = dbi:mysql:domain2db
user = domain2
+
user = domain2
pass = xxxxxx
+
pass = xxxxxx
dbtype = MySQL
+
dbtype = MySQL
public_uploads_dir = /opt/outpost/site1/sitedata/public
+
public_uploads_dir = /opt/outpost/site1/sitedata/public
public_uploads_location = /public
+
public_uploads_location = /public
jsform_type = Chain
+
jsform_type = Chain
jsform_filter = Checker|Dialog|Focus
+
jsform_filter = Checker|Dialog|Focus
controller_type = Metadot::MetadotController
+
controller_type = Metadot::MetadotController
skin_template_dir = /opt/outpost/site1/sitedata/skins
+
skin_template_dir = /opt/outpost/site1/sitedata/skins
servers = <<SERVERS
+
servers = <<SERVERS
localhost
+
localhost
domain2.com.au
+
domain2.com.au
www.domain2.com.au
+
www.domain2.com.au
SERVERS
+
SERVERS
      Line 263: Line 264:       −
#Metadot
+
#Metadot
 
+
 
     ServerName domain1.com.au
 
     ServerName domain1.com.au
   
+
   
 
     DocumentRoot        /opt/metadot/metadot
 
     DocumentRoot        /opt/metadot/metadot
 
     Alias /metadot /opt/metadot/metadot
 
     Alias /metadot /opt/metadot/metadot
Line 277: Line 278:  
     Alias /private/  /opt/metadot/sitedata/private/
 
     Alias /private/  /opt/metadot/sitedata/private/
 
     Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 
     Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 
+
<Directory /opt/metadot>
+
<Directory /opt/metadot>
 
     Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 
     Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 
     AllowOverride All
 
     AllowOverride All
Line 286: Line 287:  
     PerlSendHeader      On
 
     PerlSendHeader      On
 
     DirectoryIndex      index.pl
 
     DirectoryIndex      index.pl
</Directory>
+
</Directory>
 +
 
   −
====================================================
   
'''Domain 2'''
 
'''Domain 2'''
   −
#domain2
+
#domain2
 
+
 
     ServerName domain2.com.au
 
     ServerName domain2.com.au
 
      
 
      
Line 306: Line 307:  
     Alias      /outpost/ /opt/domain2/metadot/index.pl
 
     Alias      /outpost/ /opt/domain2/metadot/index.pl
 
     Alias      /userchannel.pl /opt/domain2/metadot/userchannel.pl
 
     Alias      /userchannel.pl /opt/domain2/metadot/userchannel.pl
 
+
<Directory /opt/domain2/metadot>
+
<Directory /opt/domain2/metadot>
 
     Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 
     Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 
     AllowOverride All
 
     AllowOverride All
Line 315: Line 316:  
     PerlSendHeader      On
 
     PerlSendHeader      On
 
     DirectoryIndex      index.pl
 
     DirectoryIndex      index.pl
</Directory>
+
</Directory>
=======================================================
+
 
 +
== Metadot Howto Updated ==
 +
 
 +
I have updated the howto and have tested it on a production server using 2 domains,so far so good, also tested on a file server and works good.
 +
 
 +
Thanks to those who have helped
 +
 
 +
Russell
276

edits

Navigation menu