Incorrect mountpoint for uWSGI in emperor mode
<p>I am setting up emperor mode for several apps on the same domain, where each has a different alias. I almost have it working, but it is not giving the correct mountpoint.</p>

<p>My <code>emperor.ini</code> file (in <code>/etc/uwsgi</code>) is </p>

<pre><code>[uwsgi]
emperor = /etc/uwsgi/vassals
</code></pre>

<p>And my test vassal config <code>reg_demo.ini</code> (in <code>/etc/uwsgi/vassals</code>) is:</p>

<pre><code>[uwsgi]
chdir = /usr/share/nginx/wsgi/flask-appbuilder/peds_registry
pyhome = /usr/share/nginx/wsgi/flask-appbuilder/venv
venv = /usr/share/nginx/wsgi/flask-appbuilder/venv
binary-path = /home/gms/Envs/Python/bin/uwsgi
chmod-socket = 666
logto = /etc/uwsgi/test.log
callable = app
module = run
mount: /reg_demo=run.py
socket = /tmp/reg_demo.sock
manage-script-name = true
vacuum = true
env = LC_ALL=en_US.UTF-8
threads = 1
workers = 4 #can be adjusted
master = true
max-requests = 1000
harakiri = 120
buffer-size = 24576
if-env = VIRTUAL_ENV
virtualenv = %(_)
endif =
</code></pre>

<p>The defined alias in nginx.conf is:</p>

<pre><code>location /reg_demo {
    include uwsgi_params;
    uwsgi_pass unix:/tmp/reg_demo.sock;
    uwsgi_read_timeout 300;
}
</code></pre>

<p>But, when I fire up uwsgi (<code>uwsgi --emperor /etc/uwsgi/emperor.ini</code>), my log shows that:</p>

<pre><code>WSGI app 0 (mountpoint='') ready in 4 seconds on interpreter 0x23dd840 pid: 16690 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 16690)
spawned uWSGI worker 1 (pid: 16693, cores: 1)
spawned uWSGI worker 2 (pid: 16694, cores: 1)
spawned uWSGI worker 3 (pid: 16695, cores: 1)
spawned uWSGI worker 4 (pid: 16696, cores: 1)
</code></pre>

<ul>
<li>as opposed to the expected <code>WSGI app 0 (mountpoint='/reg_demo')</code> - otherwise, everything else starts up just fine.</li>
</ul>

<p>And, thus, when I go to the web page for this, <code>http://hostname/reg_demo</code>, it 
is all buggered, because it cannot resolve all references based on my mountpoint.<a href="https://i.stack.imgur.com/Bo8GW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bo8GW.png" alt="Screwy routes on web app munging output"></a> </p>

<p>This works great in non-emperor mode, but alas, I need to be able to deploy multiple apps.</p>