Changes

Jump to navigation Jump to search
4,213 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 185: Line 186:     
www.domain2.com
 
www.domain2.com
 +
 +
 +
----
 +
Russell, your howto is very good, but while found a solution, finish the howto.
 +
 +
I suggest you to modify for install only under /opt.
 +
 +
This is the final template I tested.
 +
 +
Please, delete the point about "Adding index.pl to DirectoryIndex" because it is not necesary. Simple remove the file  50DirectoryIndex00 under templates-custom and expand/restart to return to original state.
 +
 +
Alias /metadot /opt/metadot/metadot
 +
Alias /images/ /opt/metadot/images/
 +
Alias /js/ /opt/metadot/js/
 +
Alias /index.pl /opt/metadot/metadot/index.pl
 +
Alias /public/  /opt/metadot/sitedata/public/
 +
Alias /skins/    /opt/metadot/sitedata/skins/
 +
Alias /htmlarea3/ /opt/metadot/js/htmlarea3/
 +
Alias /private/  /opt/metadot/sitedata/private/
 +
Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 +
 +
<Directory /opt/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    Satisfy all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</Directory>
 +
 +
--[[User:PicsOne|PicsOne]] 19:39, 13 April 2007 (EDT)
 +
 +
----
 +
 +
== template change ==
 +
 +
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]
 +
name = dbi:mysql:metadotdb
 +
user = metadot
 +
pass = xxxxxx
 +
dbtype = MySQL
 +
public_uploads_dir = /opt/metadot/sitedata/public
 +
public_uploads_location = /public
 +
jsform_type = Chain
 +
jsform_filter = Checker|Dialog|Focus
 +
controller_type = Metadot::MetadotController
 +
skin_template_dir = /opt/metadot/sitedata/skins
 +
servers = <<SERVERS
 +
localhost
 +
SERVERS
 +
 +
[metadot2]
 +
name = dbi:mysql:domain2db
 +
user = domain2
 +
pass = xxxxxx
 +
dbtype = MySQL
 +
public_uploads_dir = /opt/outpost/site1/sitedata/public
 +
public_uploads_location = /public
 +
jsform_type = Chain
 +
jsform_filter = Checker|Dialog|Focus
 +
controller_type = Metadot::MetadotController
 +
skin_template_dir = /opt/outpost/site1/sitedata/skins
 +
servers = <<SERVERS
 +
localhost
 +
domain2.com.au
 +
www.domain2.com.au
 +
SERVERS
 +
 +
 +
'''Template Fragements'''
 +
 +
'''Domain 1'''
 +
 +
 +
#Metadot
 +
 +
    ServerName domain1.com.au
 +
   
 +
    DocumentRoot        /opt/metadot/metadot
 +
    Alias /metadot /opt/metadot/metadot
 +
    Alias /images/ /opt/metadot/images/
 +
    Alias /js/ /opt/metadot/js/
 +
    Alias /index.pl /opt/metadot/metadot/index.pl
 +
    Alias /public/  /opt/metadot/sitedata/public/
 +
    Alias /skins/    /opt/metadot/sitedata/skins/
 +
    Alias /htmlarea3/ /opt/metadot/js/htmlarea3/
 +
    Alias /private/  /opt/metadot/sitedata/private/
 +
    Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 +
 +
<Directory /opt/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</Directory>
 +
 +
 +
'''Domain 2'''
 +
 +
#domain2
 +
 +
    ServerName domain2.com.au
 +
   
 +
    DocumentRoot        /opt/domain2/metadot
 +
    Alias      /index.pl /opt/domain2/metadot
 +
    Alias      /domain2  /opt/domain2/metadot
 +
    Alias      /js/  /opt/domain2/js/
 +
    Alias      /site1/public/  /opt/domain2/site1/sitedata/public/
 +
    Alias      /site1/private/  /opt/domain2/site1/sitedata/private/
 +
    Alias      /site1/images/ /opt/domain2/site1/images/
 +
    Alias      /site1/skins/    /opt/domain2/site1/sitedata/skins/
 +
    Alias      /htmlarea3/ /opt/domain2/js/htmlarea3/
 +
    Alias      /outpost/ /opt/domain2/metadot/index.pl
 +
    Alias      /userchannel.pl /opt/domain2/metadot/userchannel.pl
 +
 +
<Directory /opt/domain2/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</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