Ok, that would be cool. Im definitely open to nginx just havent delved
there yet. Still in amateur development stage. Working on pushing my
first site live very soon. Ill post my flask and django vhost wsgi configs
here, if you can show how to integrate nginx with them that would be great,
and perhaps that forum app below. Other stuff I need to implement in my
apps are dynamic dashboard (i have basic one), forums, commenting system
for blog (know blog basics), cms, i8ln, ecommerce (know paypal w/flask) and
thats about it hah.
flaskapp wsgi vhost conf:
<VirtualHost *:80>
ServerName site1.me
WSGIDaemonProcess site1
python-home=/var/www/site1/FlaskApp/FlaskApp/venv
WSGIProcessGroup site1
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /var/www/site1/FlaskApp/flaskapp.wsgi
<Directory /var/www/site1/FlaskApp/FlaskApp/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/site1/FlaskApp/FlaskApp/static
<Directory /var/www/site1/FlaskApp/FlaskApp/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/site1/logs/error.log
LogLevel warn
CustomLog /var/www/site1/logs/access.log combined
</VirtualHost>
django wsgi vhost conf:
<VirtualHost *:80>
ServerName dsite1.me
WSGIDaemonProcess dsite1 python-home=/var/www/dtuts/venv
python-path=/var/www/dtuts/dsite1
WSGIProcessGroup dsite1
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /var/www/dtuts/dsite1/dsite1/wsgi.py
<Directory /var/www/dtuts/dsite1/dsite1/>
<Files wsgi.py>
Order allow,deny
Allow from all
</Files>
</Directory>
Alias /static /var/www/dtuts/dsite1/static
<Directory /var/www/dtuts/dsite1/static>
Order allow,deny
Allow from all
</Directory>
Alias /robots.txt /var/www/dtuts/dsite1/static/robots.txt
#Alias /favicon.ico /var/www/dtuts/dsite1/static/favicon.ico
Alias /media /var/www/dtuts/dsite1/media
<Directory /var/www/dtuts/dsite1/media>
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/dtuts/logs/error.log
LogLevel warn
CustomLog /var/www/dtuts/logs/access.log combined
</VirtualHost>
On Sunday, October 2, 2016 at 9:40:20 PM UTC-7, Jason Garber wrote:
>
> Strongly suggest embracing nginx and modwsgi.
>
> If you configure nginx to serve anything ending in .*, and proxy the rest
> to apache, then apache becomes your app server and nginx becomes your
> webserver and everything flows. I can provide sample configurations if
> desired.
>
> Nginx excels at ssl, buffering requests and responses, rate limiting, and
> it is blindingly fast.
>
> Just a tip from a heavy production user.
>
> On Oct 3, 2016 12:34 AM, "Jalapene Burro" <[email protected] <javascript:>>
> wrote:
>
>> Ok so I got django configured properly a few days ago, was a hassle at
>> first but now I got it with collectstatic. Anyways I was checking out this
>> new project - flaskbb, forums for flask. Its still sort of in beta, but I
>> was wondering if it would be possible to configure with mod wsgi. Right
>> now they use uwsgi and nginx, but I dont see why uwsgi wouldnt work. If
>> you got a min to check it out, would be cool, thanks.
>> https://forums.flaskbb.org/
>> https://flaskbb.readthedocs.io/en/latest/installation.html .
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/modwsgi.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.