correct vhost template

This commit is contained in:
Peter Hormanns 2013-03-07 14:35:30 +01:00
parent a9543dddc6
commit 2543cfcbcc
3 changed files with 10 additions and 8 deletions

View File

@ -51,9 +51,9 @@
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?\$ [novary]
RewriteCond /home/doms/${dom.name}/subs/\$\{tolower:%1\} -d
RewriteRule ^(.*) /home/doms/${dom.name}/subs/\$\{tolower:%1\}\$1 [last]
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary]
RewriteCond /home/doms/${dom.name}/subs/${tolower:%1} -d
RewriteRule ^(.*) /home/doms/${dom.name}/subs/${tolower:%1}$1 [last]
#if( !${htdocsfallback} )
RewriteCond %{REQUEST_URI} !^/cgi-bin/
@ -126,14 +126,14 @@
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?\$ [novary]
RewriteCond /home/doms/${dom.name}/subs-ssl/\$\{tolower:%1\} -d
RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/\$\{tolower:%1\}\$1 [last]
RewriteCond /home/doms/${dom.name}/subs-ssl/${tolower:%1} -d
RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/${tolower:%1}$1 [last]
#if( !${htdocsfallback} )
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:443)?\$ [novary]
RewriteCond /home/doms/${dom.name}/subs-ssl/\$\{tolower:%1\} !-d
RewriteCond /home/doms/${dom.name}/subs-ssl/${tolower:%1} !-d
RewriteRule ^(.*) - [redirect=404,last]
#end

View File

@ -211,6 +211,9 @@ public class Pac extends AbstractEntity implements Serializable {
}
public INetAddress getOldINetAddr() {
if (oldINetAddr == null) {
return getCurINetAddr();
}
return oldINetAddr;
}

View File

@ -27,7 +27,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
Hive hive = pac.getHive();
UnixUser unixUser = getPacAdminUser(pac);
String password = PasswordTool.generatePassword();
Processor processor = new CompoundProcessor(
return new CompoundProcessor(
createAddUserProc(pacName, unixUser, password),
createSetQuotaProc(pac),
createEtcHostsProc(hive),
@ -39,7 +39,6 @@ public class PacProcessorFactory implements EntityProcessorFactory {
createIfUp(pacName),
createHttpdVirtualProc(hive),
createAccountingRulesProc());
return processor;
}
private Processor createAccountingRulesProc() {