Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
NodeJS
(view source)
Revision as of 15:37, 29 January 2019
36 bytes added
,
15:37, 29 January 2019
→For SME 9
Line 100:
Line 100:
==Test==
==Test==
node -v
node -v
+
== Port Redirect for each application==
== Port Redirect for each application==
−
Each application you build must run on a different port. Configure that way in app.js file.
−
If you
don't
want to
put that port each time but
redirect an external URL
(if
the app
is
a
website hosted on your SME server)
you
need to:
+
{{Note box|| This is still work in progress and may not work correctly}}
+
+
Each Node application you build must run on a different port. This can be configured in app.js
+
+
If you want to redirect an external URL
to
the app
port using
a
reverse proxy
you
can do the following
a) create that external domain on SME web interface for domain as '''www.your.externaldomain.tld'''
a) create that external domain on SME web interface for domain as '''www.your.externaldomain.tld'''
Line 131:
Line 135:
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'''
+
+
You should be able to
access
your
app
externally
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
----
----
[[Category:Howto]]
[[Category:Howto]]
ReetP
Bureaucrats
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Administrators
891
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search