<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: EvianZhang</title>
    <description>The latest articles on DEV Community by EvianZhang (@evianzhang).</description>
    <link>https://dev.to/evianzhang</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F352634%2F0ef9f4e2-804b-4737-ba1a-e062571b29aa.jpeg</url>
      <title>DEV Community: EvianZhang</title>
      <link>https://dev.to/evianzhang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/evianzhang"/>
    <language>en</language>
    <item>
      <title>What is recommended way to set up a web server?</title>
      <dc:creator>EvianZhang</dc:creator>
      <pubDate>Thu, 19 Mar 2020 06:51:56 +0000</pubDate>
      <link>https://dev.to/evianzhang/what-is-recommended-way-to-set-up-a-web-server-4lki</link>
      <guid>https://dev.to/evianzhang/what-is-recommended-way-to-set-up-a-web-server-4lki</guid>
      <description>&lt;p&gt;I have a server and I am designing some web applications. I use React as frontend framework and Rust Actix as backend framework. The backend program listens at 8000 port, and can be reached by &lt;code&gt;my_domain:8000/api/xxxx&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I think I can use a web server listening at 80 port, such that if client is requesting &lt;code&gt;/&lt;/code&gt;, then returning the frontend page, if client is requesting &lt;code&gt;/api&lt;/code&gt;, then redirect the request to 8000 port of localhost.&lt;/p&gt;

&lt;p&gt;My problems are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Is the above way recommended in the modern web application design? Are there any other ways of hosting both frontend and backend application in the server?&lt;/li&gt;
&lt;li&gt;What web server can I use? Apache, Nginx, or manually write a web server?&lt;/li&gt;
&lt;li&gt;I use two docker containers to contain the frontend and backend app. Do I need to dockerize the web server as well?&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>webdev</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
