This time I want a variety of friends how to run a gateway fire on shared hosting. For those who have a more budget usually use VPS to run all the services / fire services. However, for those who are limited, it is usually blocked to publish the fire services that have been made.
This article can be used to provide solutions to the problems above. For the steps more or less as follows:
Create a sub-domain on hosting
The first step is to make a sub-domain. Examples of how to make sub-domains on hosting please read the article How to Make Sub-Domains on CPanel
Create a .htaccess file for stomach traffic from the sub domain to the gateway service port
Options +FollowSymLinks -Indexes
IndexIgnore *
DirectoryIndex
<IfModule mod_rewrite.c>
RewriteEngine on
# Simple URL redirect:
RewriteRule ^(.*)$ [P]
</IfModule>
Run the Gateway API service on port 8080 according to the configuration .htaccess
The port can be adjusted yourself, 8080 is only an example. The example of how the gateway fire service is run, as follows:
nohup ./usr/bin/krakend run --config=krakend-production.json > ./log/krakend.out 2> ./log/krakend.err &
Yes, here I use Krakend software as a gateway fire because the file can be in the form of binary that can be run anywhere without the need to runtime / interpreter.
Review Film
Berita Terkini
Berita Terkini
Berita Terkini
review anime
Gaming Center
Berita Olahraga
Lowongan Kerja
Berita Terkini
Berita Terbaru
Berita Teknologi
Seputar Teknologi
Berita Politik
Resep Masakan
Pendidikan
Comments are closed, but trackbacks and pingbacks are open.