Cactus,
I did what you told me and all went ok (I did not break up my server), but the virtual domain still end in the Ibay.
Do I simply remove the Ibay now or should there be some changes in one of the files?
00Setup
{
use esmith::DomainsDB;
# Convert the passed hash for the domain object back into an object.
$domain = bless \%domain, 'esmith::DB::db::Record';
# Make scalars from some of the properties of the domain
$virtualHost = $domain->key;
$virtualHostContent = $domain->prop('Content');
$OUT = "";
}
02ServerName
ServerName {$virtualHost}
25SSLDirectives
{
return " # skipping SSL directives\n" unless $port eq "443";
return "" unless $modSSL{'status'} eq 'enabled';
$OUT = <<SSL_END;
# SSL Directives
SSLEngine on
SSL_END
}
26RewriteTraceAndTrack
{
$OUT =<<'HERE';
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
HERE
}
50DirectoryIndex00
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
DirectoryIndex index.htm index.html index.shtml index.cgi
50DirectoryIndex00PHP
{
return "" unless (defined $php{'status'} and $php{'status'} eq 'enabled');
my @directives = qw(
index.htm index.html index.shtml index.cgi
index.php index.php3 index.phtml
);
$OUT = "DirectoryIndex @directives\n";
}
85DefaultAccess
# First, we configure the "default" to be a very restrictive set of
# permissions.
<Directory />
Options None
AllowOverride None
order deny,allow
deny from all
allow from none
</Directory>
92joomla
{
$OUT = "";
my $allow = 'all';
my $pass = '0';
my $satisfy = 'all';
my $name = $joomla{'Name'} || 'Joomla CMS';
for ('exit-if-none')
{
if ($joomla{'PublicAccess'})
{
if ($joomla{'PublicAccess'} eq 'none')
{
next;
}
elsif ($joomla{'PublicAccess'} eq 'local')
{
$allow = $localAccess;
$pass = 0;
$satisfy = 'all';
}
elsif ($joomla{'PublicAccess'} eq 'local-pw')
{
$allow = $localAccess;
$pass = 1;
$satisfy = 'all';
}
elsif ($joomla{'PublicAccess'} eq 'global')
{
$allow = 'all';
$pass = 0;
$satisfy = 'all';
}
elsif ($joomla{'PublicAccess'} eq 'global-pw')
{
$allow = 'all';
$pass = 1;
$satisfy = 'all';
}
elsif ($joomla{'PublicAccess'} eq 'global-pw-remote')
{
$allow = $localAccess;
$pass = 1;
$satisfy = 'any';
}
}
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "# joomla - $joomla{'Name'}\n";
$OUT .= "#------------------------------------------------------------\n";
{
if ((exists $joomla{'URL'}) && ($joomla{'URL'} ne ''))
{ $OUT .= "Alias /$joomla{'URL'} /opt/joomla\n"; }
}
$OUT .= "Alias /joomla /opt/joomla\n";
$OUT .= "\n";
$OUT .= "<Directory /opt/joomla>\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from $allow\n";
if ($pass)
{
$OUT .= " AuthName \"$joomla{'Name'}\"\n";
$OUT .= " AuthType Basic\n";
$OUT .= " AuthExternal pwauth\n";
$OUT .= " require valid-user\n";
$OUT .= " Satisfy $satisfy\n";
}
$OUT .= " AddType application/x-httpd-php .php .php3 .phtml\n";
$OUT .= " php_admin_value open_basedir /opt/joomla:/tmp\n";
$OUT .= " php_admin_value display_errors 1\n";
$OUT .= "</Directory>\n";
}
}
template-begin
<VirtualHost {$ipAddress}:{$port}>
template-end
</VirtualHost>
I can't really find a line that redirects to /opt/joomla, so I think that's the problem?