[OT] Problems with uwsgi/Python and httpd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




Hello,

I've tried to get Python working with Apache httpd and mod_proxy_uwsgi, but access to it results in an Error 503.

In httpd.conf I activated the module. In vhosts configuration, I made the following related entries:
    DocumentRoot "/srv/http/my.host.name/"
    <Directory "/srv/http/">
        Options -Indexes
    </Directory>
    <Location "/bud/">
        ProxyPass uwsgi://127.0.0.1:3031/
    </Location>

In location /srv/http/my.host.name/bud/ there's a script named buddy.py:

def application(env, start_response):
    start_response('200 OK', [('Content-Type','text/html')])
    return [b"Hello World"]

The URL I'm using is: http://my.host.name/bud/buddy

In /etc/uwsgi/vassals there's a configuration "example.ini":
[uwsgi]
chdir = /srv/http/my.host.name/bud
module = buddy
plugins = python

I've started uwsgi in emperor mode, starting "emperor.uwsgi.service".||

What am I doing wrong?

Kind regards
Peter

PS: I've tried to find the necessary information in Arch Wiki or in the uwsgi docs (e,.g. copied the Python example there ;-) ), but it seems I'm missing some "glue" ....



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux