title: Nginx how to add extra server configuration to without modifying nginx.conf
body: <p>I want to add this extra config to my nginx.conf:</p>
  
  <pre><code>server {
    listen 0.0.0.0:8081;
    rewrite     ^  https://$host$request_uri? redirect;
  }
  </code></pre>
  
  <p>But as my app is deployed in a hosting service I don't want to modify the already present <code>nginx.conf</code>. It can be problematic.</p>
  
  <p>Is there any way I can add this extra configuration without modifying nginx.conf?</p>