default redirect to https
| | |
| | | "chown " + userName + ":" + pacName + " " + domainDir + "/" + subDir |
| | | )); |
| | | } |
| | | templateVars.put("protocol", "http"); |
| | | templateVars.put("www", Boolean.FALSE); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/htaccess.vm", templateVars, dom, domainDir + "/htdocs/.htaccess", userName, pacName, "644", false) |
| | | ); |
| | | templateVars.put("protocol", "https"); |
| | | templateVars.put("www", Boolean.TRUE); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/htaccess.vm", templateVars, dom, domainDir + "/htdocs-ssl/.htaccess", userName, pacName, "644", false) |
| | | ); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/index.html.vm", templateVars, dom, domainDir + "/subs/www/index.html", userName, pacName, "644", false) |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/htaccess.vm", templateVars, dom, domainDir + "/subs/www/.htaccess", userName, pacName, "644", false) |
| | | ); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/index.html.vm", templateVars, dom, domainDir + "/subs-ssl/www/index.html", userName, pacName, "644", false) |
| | |
| | | Redirect permanent / ${protocol}://www.${dom.name}/ |
| | | #if( ${www} ) |
| | | Redirect permanent / https://www.${dom.name}/ |
| | | #else |
| | | Redirect permanent / https://${dom.name}/ |
| | | #end |