Introduced Phusion Passenger for Dynamic Web.
1 files renamed
1 files modified
| | |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/index.html.vm", templateVars, dom, domainDir + "/subs-ssl/www/index.html", userName, pacName, "644", false) |
| | | ); |
| | | if (dom.isDynamic()) { |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/test.cgi.vm", templateVars, dom, domainDir + "/cgi/test.cgi", userName, pacName, "755", false) |
| | | ); |
| | | domDirsProcessor.appendProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/test.cgi.vm", templateVars, dom, domainDir + "/cgi-ssl/test.cgi", userName, pacName, "755", false) |
| | | ); |
| | | domDirsProcessor.appendProcessor( |
| | | new CopyFileProcessor("/usr/local/src/phpstub/phpstub", domainDir + "/fastcgi/phpstub", userName, pacName, "755") |
| | | ); |
| | | domDirsProcessor.appendProcessor( |
| | | new CopyFileProcessor("/usr/local/src/phpstub/phpstub", domainDir + "/fastcgi-ssl/phpstub", userName, pacName, "755") |
| | | domDirsProcessor.appendProcessor( |
| | | new CopyFileProcessor("/usr/local/src/phpstub/phpstub", domainDir + "/fastcgi/phpstub", userName, pacName, "755") |
| | | ); |
| | | } |
| | | domDirsProcessor.appendProcessor( |
| | | new CopyFileProcessor("/usr/local/src/phpstub/phpstub", domainDir + "/fastcgi-ssl/phpstub", userName, pacName, "755") |
| | | ); |
| | | domDirsProcessor.appendProcessor( |
| | | new ShellProcessor("ln -sf " + domainDir + " /home/doms/ && " + |
| | | "chown --no-dereference " + userName + ":httpd /home/doms/" + domName |
| | |
| | | ifOption(templateVars, query, "multiviews", "+MultiViews", "-MultiViews"); |
| | | ifOption(templateVars, query, "htdocsfallback", Boolean.TRUE, Boolean.FALSE); |
| | | Processor domSetupProcessor = new CompoundProcessor( |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/httpd-vhost.vm", templateVars, dom, "/etc/apache2/sites-available/" + domName + ".tmp", "root", "root", "644", true), |
| | | new CreateFileProcessor("/de/hsadmin/mods/dom/apache-vhost.vm", templateVars, dom, "/etc/apache2/sites-available/" + domName + ".tmp", "root", "root", "644", true), |
| | | new ShellProcessor("ls /etc/apache2/pems/" + pac + ".pem >/dev/null 2>&1" + |
| | | " && sed -i '/SSLCertificate.*default/d' " + "/etc/apache2/sites-available/" + domName + ".tmp" + |
| | | " && (ls /etc/apache2/pems/" + pac + ".chain.pem >/dev/null 2>&1 || sed -i '/SSLCertificateChain.*" + pac + "/d' " + "/etc/apache2/sites-available/" + domName + ".tmp )" + |
File was renamed from hsarback/src/de/hsadmin/mods/dom/httpd-vhost.vm |
| | |
| | | # |
| | | |
| | | <VirtualHost ${pac.curINetAddr.inetAddr}:80 ${pac.oldINetAddr.inetAddr}:80> |
| | | |
| | | ServerName ${dom.name} |
| | | ServerAlias *.${dom.name} |
| | | ServerAdmin webmaster@${dom.name} |
| | | |
| | | SuexecUserGroup ${dom.user.name} ${pac.name} |
| | | |
| | | #if( ${dynamicWeb} ) |
| | | PassengerEnabled on |
| | | PassengerUser ${dom.user.name} |
| | | PassengerGroup ${pac.name} |
| | | PassengerAppRoot /home/doms/${dom.name}/app/ |
| | | #end |
| | | |
| | | DocumentRoot /home/doms/${dom.name}/htdocs |
| | | |
| | | #if( ${dynamicWeb} ) |
| | | Alias /cgi-bin/ /home/doms/${dom.name}/cgi/ |
| | | Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi/ |
| | | #end |
| | | |
| | | <Directory /> |
| | | Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch |
| | | </Directory> |
| | | |
| | | <Directory /home/doms/${dom.name}/> |
| | | AllowOverride AuthConfig FileInfo Indexes Limit |
| | | AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,Indexes,MultiViews,PassengerNodejs,PassengerPython,PassengerRuby,PassengerAppEnv |
| | | </Directory> |
| | | |
| | | #if( ${dynamicWeb} ) |
| | |
| | | SetHandler cgi-script |
| | | Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
| | | </Location> |
| | | #else |
| | | <Location /cgi-bin/> |
| | | Redirect 501 / |
| | | </Location> |
| | | #end |
| | | |
| | | #if( ${dynamicWeb} ) |
| | | <Location /fastcgi-bin/> |
| | | SetHandler fcgid-script |
| | | Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
| | | </Location> |
| | | #else |
| | | <Location /cgi-bin/> |
| | | Redirect 501 / |
| | | </Location> |
| | | |
| | | <Location /fastcgi-bin/> |
| | | Redirect 501 / |
| | | </Location> |
| | |
| | | AddType application/x-httpd-php .php .php5 .php4 .php3 |
| | | Action application/x-httpd-php /fastcgi-bin/phpstub |
| | | #end |
| | | |
| | | </VirtualHost> |
| | | |
| | | <VirtualHost ${pac.curINetAddr.inetAddr}:443 ${pac.oldINetAddr.inetAddr}:443> |
| | | |
| | | ServerName ${dom.name} |
| | | ServerAlias *.${dom.name} |
| | | ServerAdmin ${dom.user.name}@${dom.name} |
| | | |
| | | SuexecUserGroup ${dom.user.name} ${pac.name} |
| | | |
| | | #if( ${dynamicWeb} ) |
| | | PassengerEnabled on |
| | | PassengerUser ${dom.user.name} |
| | | PassengerGroup ${pac.name} |
| | | PassengerAppRoot /home/doms/${dom.name}/app-ssl/ |
| | | #end |
| | | |
| | | SSLEngine On |
| | | SSLCertificateFile /etc/apache2/pems/default.pem |
| | | SSLCertificateChainFile /etc/apache2/pems/default.chain.pem |
| | | SSLCertificateFile /etc/apache2/pems/${pac.name}.pem |
| | | SSLCertificateChainFile /etc/apache2/pems/${pac.name}.chain.pem |
| | | |
| | | |
| | | DocumentRoot /home/doms/${dom.name}/htdocs-ssl |
| | | |
| | | #if( ${dynamicWeb} ) |
| | | Alias /cgi-bin/ /home/doms/${dom.name}/cgi-ssl/ |
| | | Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi-ssl/ |
| | | #end |
| | | |
| | | <Directory /> |
| | | SSLRequireSSL On |
| | |
| | | </Directory> |
| | | |
| | | <Directory /home/doms/${dom.name}/> |
| | | AllowOverride AuthConfig FileInfo Indexes Limit |
| | | AllowOverride AuthConfig FileInfo Indexes Limit Options=Includes,Indexes,MultiViews,PassengerNodejs,PassengerPython,PassengerRuby,PassengerAppEnv |
| | | </Directory> |
| | | |
| | | #if( ${dynamicWeb} ) |
| | |
| | | SetHandler cgi-script |
| | | Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
| | | </Location> |
| | | #else |
| | | <Location /cgi-bin/> |
| | | Redirect 501 / |
| | | </Location> |
| | | #end |
| | | |
| | | #if( ${dynamicWeb} ) |
| | | <Location /fastcgi-bin/> |
| | | SetHandler fcgid-script |
| | | Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch |
| | | </Location> |
| | | #else |
| | | <Location /cgi-bin/> |
| | | Redirect 501 / |
| | | </Location> |
| | | |
| | | <Location /fastcgi-bin/> |
| | | Redirect 501 / |
| | | </Location> |
| | |
| | | AddType application/x-httpd-php .php .php5 .php4 .php3 |
| | | Action application/x-httpd-php /fastcgi-bin/phpstub |
| | | #end |
| | | |
| | | </VirtualHost> |