Changes

From SME Server
Jump to navigationJump to search
15 bytes added ,  11:47, 29 January 2019
m
→‎Port Redirect for each application: just formatting to looks better.
Line 112: Line 112:     
c) use a custom fragment template file '''/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/27ProxyNodeJS''' with:
 
c) use a custom fragment template file '''/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts/27ProxyNodeJS''' with:
  {
+
  <nowiki>
 +
{
 
     use esmith::DomainsDB;
 
     use esmith::DomainsDB;
 
     my $domains = esmith::DomainsDB->open_ro;
 
     my $domains = esmith::DomainsDB->open_ro;
Line 124: Line 125:  
     $OUT .= "    ProxyPass / http://localhost:$nodeport/\n" unless $nodeport eq 'disabled';
 
     $OUT .= "    ProxyPass / http://localhost:$nodeport/\n" unless $nodeport eq 'disabled';
 
     $OUT .= "    ProxyPassReverse / http://localhost:$nodeport/\n" unless $nodeport eq 'disabled';
 
     $OUT .= "    ProxyPassReverse / http://localhost:$nodeport/\n" unless $nodeport eq 'disabled';
   
  }
 
  }
 +
</nowiki>
   −
Now just expand templates and restart
+
Now just expand templates and restart
 
   
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
 
  /etc/init.d/httpd-e-smith restart
 
  /etc/init.d/httpd-e-smith restart
   
That's all. It's working. ou can access you app extrnally using '''http://www.your.externaldomain.tld'''
 
That's all. It's working. ou can access you app extrnally using '''http://www.your.externaldomain.tld'''
 
It's possible to access using SME with one LetsEncrypt certificate by directory/port
 
It's possible to access using SME with one LetsEncrypt certificate by directory/port
147

edits

Navigation menu