Changes

Jump to navigation Jump to search
2,913 bytes added ,  05:49, 14 April 2007
template change
Line 220: Line 220:     
----
 
----
 +
 +
== 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>
 +
=======================================================
276

edits

Navigation menu