From SME Server

Web Application Redirect Tutorial

926 bytes added, 21:47, 11 May 2010
{{Needs review}}
== Web Application Redirect Tutorial ==
 {{Warning box|The method outlined in this Howto, whilst being functional, may cause some as yet to be defined odd problems with the primary domain, so you are advised to use it with discretion. Further testing needs to be carried out to correctly identify the exact source and nature of these problems. Please test these modifications on your system and if you notice issues report them to the bugtracker. '''Work is continuing to develop a better method, see the discussion page.'''}}
It is taken from
Webserver Templates - a workaround to enable the application to be located in a domain or subdomain rootwith root with joomla
return " # joomla-status is disabled.\n"
unless $status eq 'enabled';
my $domain = $joomla{'domain'} || "disabled";
return " # no hostname or domain for joomla defined\n"
if $domain eq 'disabled';
my $DocRoot = "/opt/joomla";
$OUT = "";
$OUT .= "\n";
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith
{{Warning box|This example refers to installation using the joomla rpm. When using the SiteMaker contrib, or doing additional installations of joomla or installing other rpms that do not setup default configuration db entries, it will be necessary to manually create the service entry and other db entries. In those cases you would do something like the following, as necessary.
config set joomla2 service
config setprop joomla2 DbName joomla2
config setprop joomla2 DbPassword joomla2passwordxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
config setprop joomla2 DbUser joomla2user
config setprop joomla2 Name Joomla2
config setprop joomla2 PublicAccess global
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith
Make sure you use the correct mysql db name, password & user, as already created for the joomla2 (or whichever) db in mysql.}}
===Reference links===
[[Category:Development Tools]]

Navigation menu