HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2012-10-30 b92369eea81b24af215ed8447414be47324da356
vhost templates from michael
1 files modified
12 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 12 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -325,21 +325,21 @@
        // TODO: This code should be cleaned up after switching to the velocity template engine.
        query.setParameter("option", "htdocsfallback");        
        if (query.getResultList().isEmpty()) {
            templateVars.put("HTDOCSFALLBACKHTTP",
            templateVars.put("NOHTDOCSFALLBACKHTTP",
            "    RewriteCond %{REQUEST_URI} !^/cgi-bin/\n" +
            "    RewriteCond %{REQUEST_URI} !^/fastcgi-bin/\n" +
            "    RewriteCond %{HTTP_HOST} ^(.+)\\.{DOM_HOSTNAME}\\.?(:80)?$ [novary]\n" +
            "    RewriteCond /home/doms/{DOM_HOSTNAME}/subs/${tolower:%1} !-d\n" +
            "    RewriteRule ^(.*) - [redirect=404,last]");
            templateVars.put("HTDOCSFALLBACKHTTPS",
            "    RewriteRule ^(.*) - [redirect=404,last]\n");
            templateVars.put("NOHTDOCSFALLBACKHTTPS",
            "    RewriteCond %{REQUEST_URI} !^/cgi-bin/\n" +
            "    RewriteCond %{REQUEST_URI} !^/fastcgi-bin/\n" +
            "    RewriteCond %{HTTP_HOST} ^(.+)\\.{DOM_HOSTNAME}\\.?(:443)?$ [novary]\n" +
            "    RewriteCond /home/doms/{DOM_HOSTNAME}/subs-ssl/${tolower:%1} !-d\n" +
            "    RewriteRule ^(.*) - [redirect=404,last]");
            "    RewriteRule ^(.*) - [redirect=404,last]\n");
        } else {
            templateVars.put("HTDOCSFALLBACKHTTP", "\n");
            templateVars.put("HTDOCSFALLBACKHTTPS", "\n");
            templateVars.put("NOHTDOCSFALLBACKHTTP", "\n");
            templateVars.put("NOHTDOCSFALLBACKHTTPS", "\n");
        }
                
        Processor domSetupProcessor = new CompoundProcessor(