I'm trying to do some "jiggery pokery", but somehow it seems I've misunderstood something:
Scenario:Smeserver 7.3 with TWO separate Joomla installations. The installations were made with the help of SMEServerSiteMaker, and they work OK.
So I have:
/opt/joomla1 & /opt/joomla2
Pointing the browser at
http://servername/joomla1 directs to the /opt/joomla1 installation, and
http://servername/joomla2 directs to the /opt/joomla2
SiteMaker also created two files:
/opt/99SMESiteMaker_joomla1
/opt/99SMESiteMaker_joomla2
Now I want to connect /opt/joomla2 with a REAL domain name, so I try to follow the instructions from
http://wiki.contribs.org/Web_Application_Redirect_TutorialThis is what I did:
First of course the A records ”@” and ”www” were (externally) pointed to the IP address of the server.
Created the IBAY "joomla2bay"
Added the nameofmyvirtualdomain.com in server-manager as a virtual domain, and pointing this to the ibay "joomla2bay"
At the server, the following things were done:
Created a file /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainSMESiteMaker_joomla2 , contining thje following lines:
{
my $status = $joomla2{'status'} || "disabled";
return " # joomla2-status is disabled.\n"
unless $status eq 'enabled';
my $domain = $joomla2{'domain'} || "disabled";
return " # no hostname or domain for joomla2 defined\n"
if $domain eq 'disabled';
my $DocRoot = "/opt/joomla2";
$OUT = "";
$OUT .= "\n";
$OUT .= "# Redirect an existing hostname or domain to $DocRoot.\n";
$OUT .= "<VirtualHost 0.0.0.0:80>\n";
$OUT .= " ServerName $domain\n";
$OUT .= " DocumentRoot $DocRoot\n";
$OUT .= "</VirtualHost>\n";
$OUT .= "<VirtualHost 0.0.0.0:443>\n";
$OUT .= " ServerName $domain\n";
$OUT .= " DocumentRoot $DocRoot\n";
$OUT .= " SSLEngine on\n";
$OUT .= "</VirtualHost>\n";
}
Finally, I executed the following db-commands:
config setprop joomla2 status enabled
config setprop joomla2 domain www.nameofmyvirtualdomain.com
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith
...it doesn't work
Also, the command
config show joomla2
returns NOTHING!
(Also, "config show" doesn't include anything from my above lines)
I would be very happy if someone could point out what I have misunderstood here. As you can see, I'm all screwed up today so I really need some guideance