title: How to run authentication on a mlFlow server?
body: <p>As I am logging my entire models and params into mlflow I thought it will be a good idea to have  it protected under a user name and password.</p>
  
  <p>I use the following code to run the mlflow server</p>
  
  <p><code>mlflow server --host 0.0.0.0 --port 11111</code>
  works perfect,in mybrowser i type <code>myip:11111</code> and i see everything (which eventually is the problem)</p>
  
  <p>If I understood the documentation and the following <a href="https://groups.google.com/forum/#!topic/mlflow-users/E9QW4HdS8a8" rel="noreferrer">https://groups.google.com/forum/#!topic/mlflow-users/E9QW4HdS8a8</a> link here correct, I should use nginx to create the authentication.</p>
  
  <p>I installed <code>nginx open sourcre</code>  and <code>apache2-utils</code></p>
  
  <p>created <code>sudo htpasswd -c /etc/apache2/.htpasswd user1</code> user and passwords.</p>
  
  <p>I edited my <code>/etc/nginx/nginx.conf</code> to the following:</p>
  
  <pre><code>server {
          listen 80;
          listen 443 ssl;
  
          server_name my_ip;
          root NOT_SURE_WHICH_PATH_TO_PUT_HERE, THE VENV?;
          location / {
              proxy_pass                      my_ip:11111/;
              auth_basic                      "Restricted Content";
              auth_basic_user_file /home/path to the password file/.htpasswd;
          }
      }
  </code></pre>
  
  <p><strong>but no authentication appears.</strong></p>
  
  <p>if I change the conf to listen to  <code>listen 11111</code>
  I get an error that the port is already in use ( of course, by the mlflow server....)</p>
  
  <p>my wish is to have a authentication window before anyone can enter by the mlflow with a browser.</p>
  
  <p>would be happy to hear any suggestions.</p>