Deployment of Craft 3 site to the production server
This looks like a well visited question, its easy as something like this with apache2:

&lt;VirtualHost *:80&gt;
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/web/

        &lt;Directory /var/www/html/web/&gt;
           Options FollowSymLinks
           AllowOverride None
           Require all granted
        &lt;/Directory&gt;
&lt;/VirtualHost&gt;


This is just a sample vhost file, but the real important part here is that you have the web folder set as your document root. This of course wont help anyone not using apache.