HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-05-10 9d22db16239cd6818b4adb008edf7eef54543a93
fix dynamic web issue on vhost template
2 files modified
14 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm 12 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -271,7 +271,7 @@
    private Processor createApacheVHostSetupProcessor(EntityManager em, Domain dom)  throws ProcessorException {
        Map<String, Object> templateVars = new HashMap<String, Object>();
        templateVars.put("dom", dom);
        templateVars.put("dynamicWeb", new Boolean(dom.isDynamic()));
        String domName = dom.getName();
        int level = domName.split("\\.").length;
        String linkPrefix = Integer.toString(100 - level);
hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm
@@ -13,7 +13,7 @@
    DocumentRoot /home/doms/${dom.name}/htdocs
#if( ${dom.isDynamic} )
#if( ${dynamicWeb} )
    Alias /cgi-bin/ /home/doms/${dom.name}/cgi/
    Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi/
#end
@@ -26,7 +26,7 @@
        AllowOverride AuthConfig FileInfo Indexes Limit
    </Directory>
#if( ${dom.isDynamic} )
#if( ${dynamicWeb} )
    <Location /cgi-bin/>
        SetHandler cgi-script
        Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch
@@ -63,7 +63,7 @@
    RewriteRule ^(.*) - [redirect=404,last]
#end
#if( ${dom.isDynamic} )
#if( ${dynamicWeb} )
    AddType application/x-httpd-php .php .php5 .php4 .php3
    Action application/x-httpd-php /fastcgi-bin/phpstub
#end
@@ -86,7 +86,7 @@
    DocumentRoot /home/doms/${dom.name}/htdocs-ssl
#if( ${dom.isDynamic} )
#if( ${dynamicWeb} )
    Alias /cgi-bin/ /home/doms/${dom.name}/cgi-ssl/
    Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi-ssl/
#end
@@ -100,7 +100,7 @@
        AllowOverride AuthConfig FileInfo Indexes Limit
    </Directory>
#if( ${dom.isDynamic} )
#if( ${dynamicWeb} )
    <Location /cgi-bin/>
        SetHandler cgi-script
        Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch
@@ -137,7 +137,7 @@
    RewriteRule ^(.*) - [redirect=404,last]
#end
#if( ${dom.isDynamic} )
#if( ${dynamicWeb} )
    AddType application/x-httpd-php .php .php5 .php4 .php3
    Action application/x-httpd-php /fastcgi-bin/phpstub
#end