Mobile app version of vmapp.org
Login or Join
Courtney195

: How to proper configurate mod_proxy_uwsgi I got uwsgi running behind nginx. All is working fine, but I want to change from nginx to Apache2 with mod_proxy_uwsgi. I cannot get a connection (access

@Courtney195

Posted in: #Apache2 #ModProxy

I got uwsgi running behind nginx. All is working fine, but I want to change from nginx to Apache2 with mod_proxy_uwsgi.

I cannot get a connection (access and error.log of appache are blank)

My uwsgi.ini is:

[uwsgi]
uid = umap
gid = users
chdir = /srv/umap/
module = umap.wsgi
home = /srv/umap/venv
env = UMAP_SETTINGS=/srv/umap/local.py
master = true
processes = 4
socket = /srv/umap/uwsgi.sock
chmod-socket = 666
stats = /srv/umap/stats.sock
vacuum = true
plugins = python3


my nginx-config

upstream umap {
server unix:///srv/umap/uwsgi.sock;
}
server {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
listen 8001;
listen [::]:8001;
server_name 192.168.127.25;
charset utf-8;
client_max_body_size 5M; # adjust to taste
location / {
uwsgi_pass umap;
include /srv/umap/uwsgi_params;
}
}


How is the right code for the pass to the proxy?

<VirtualHost *:8002>
ErrorLog ${APACHE_LOG_DIR}/8002error.log
CustomLog ${APACHE_LOG_DIR}/8002access.log combined
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass / unix:/srv/umap/uwsgi.sock|uwsgi://uwsgi-uds-app1/
ProxyVia On
LogLevel warn
</VirtualHost>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme