LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-20-2017, 06:24 PM   #1
alanware
Member
 
Registered: Aug 2011
Location: Midwest-USA
Distribution: Slackware
Posts: 68

Rep: Reputation: Disabled
OpenBSD httpd bottle app and uwsgi


I want to develope and deploy bottle apps on OpenBSD using the native httpd web server. From what I have found, the uWSGI will run the bottle app and the httpd will proxy the request. I do not follow how uWSGI gets started nor how to use the ini file on OpenBSD.

I can start the httpd and serve static content and my bottle app works fine with the development web server and pythonanywhere. Now I need to run it using httpd and uwsgi. How do I start the uwsgi server?

Code:
httpd.conf
server "default" {
        listen on egress port 80

        location "/bottleapp/*" {
                fastcgi socket ":3031"
        }
}
types {
        text/css css ;
        text/html htm html ;
        text/txt txt ;
        image/gif gif ;
        image/jpeg jpg jpeg ;
        image/png png ;
        application/javascript js ;
        application/xml xml ;
}
 
Old 04-21-2017, 01:00 PM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: In flux just now between AntiX, Devuan, MIYO, & Vuu-Do.
Posts: 1,833

Rep: Reputation: Disabled
This may help you - https://uwsgi-docs.readthedocs.io/en/latest/
 
Old 04-21-2017, 01:06 PM   #3
alanware
Member
 
Registered: Aug 2011
Location: Midwest-USA
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: Disabled
I have been looking through that document. The httpd server is the native OpenBSD one, not apache.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPI/odroid/banana storage with archlinux arm + mariadb + nginx + uwsgi DarkhunterCZ Linux - Embedded & Single-board computer 0 12-26-2016 08:52 PM
[SOLVED] autostart uwsgi as a user 'webmaster' gonny95 Linux - Newbie 0 02-09-2015 05:45 AM
$JAIL for mysql and uWSGI as well as nginx. poly_s Linux - Server 1 12-04-2013 07:56 AM
System becoming very sluggish, hard to tell what the bottle neck is... tgp1994 Linux - Software 10 01-23-2010 03:40 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration