ispman/lib/ISPMan/ApacheMan Aliases.pm,1.10,1.11
Joerg Delker <[email protected]> Sun, 11 Feb 2007 12:21:57 +0000
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv14226/lib/ISPMan/ApacheMan
Modified Files:
Aliases.pm
Log Message:
fixed bug [ 1656167 ] Website alias of the type "mydomain.de"
Index: Aliases.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan/Aliases.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Aliases.pm 30 Dec 2004 01:47:14 -0000 1.10
+++ Aliases.pm 11 Feb 2007 12:21:51 -0000 1.11
@@ -86,6 +86,13 @@
}
);
$self->addVhostProcess( $domain, $vhost, "ModifyVirtualHost", "ispmanVhostName=$vhost" );
+
+ # optimize special case where alias=domain
+ $alias="." if $alias eq $domain;
+
+ # if alias points to foreign domain skip DNS entry
+ return if $alias =~ /\..+/;
+
if ( $self->checkDomainType( $domain, "primary" ) ) {
$self->newDNSRecord( $domain, "cNAMERecord", $alias, $vhost,
{ txTRecord => "ispmanVirtualHostAlias:$vhost.$domain" } );
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642