resolve #19, Probleme mit Basepac
| | |
| | | templateVars = new HashMap<String, String>(); |
| | | templateVars.put("DOMAIN", domName); |
| | | templateVars.put("USER_NAME", domUser.getComment()); |
| | | templateVars.put("PROTOCOL", "http"); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/htaccess.jtpl", templateVars, domainDir + "/htdocs/.htaccess", userName, pacName, "644") |
| | | ); |
| | | templateVars.put("PROTOCOL", "https"); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/htaccess.jtpl", templateVars, domainDir + "/htdocs-ssl/.htaccess", userName, pacName, "644") |
| | | ); |
| | |
| | | <!-- BEGIN: main -->Redirect permanent / http://www.{DOMAIN}/ |
| | | <!-- BEGIN: main -->Redirect permanent / {PROTOCOL}://www.{DOMAIN}/ |
| | | <!-- END: main --> |
| | |
| | | private BasePac basepac; |
| | | |
| | | public Pac() { |
| | | basepac = null; |
| | | basepac = new BasePac(); |
| | | } |
| | | |
| | | public Pac(String name, Customer cust, BasePac basePac, Hive hive) { |