apache2

Set up Ubuntu Apache2 SSL using .pem and .key from Cloudflare

▼魔方 西西 提交于 2020-12-15 04:57:05
问题 I am using Cloudflare to set up a secure connection on Ubuntu 20 using Apache2. I used their Origin Server wizard to generate the following files: example.com.pem (Origin Certificate) example.com.key file (Private key) I gave them the extensions suggested by Cloudflare. I ran this: sudo a2enmod ssl sudo systemctl restart apache2 This is my setup: <VirtualHost *:443> .... SSLEngine on SSLCertificateFile /path/example.com.pem SSLCertificateKeyFile /path/example.com.key The non-secure site works

Flask app on non-root url of website with Apache2

…衆ロ難τιáo~ 提交于 2020-12-12 07:44:32
问题 I have a Flask app that I would like to host on a subdomain / non-root url of our lab website. For example, I want mylab.com/portal to lead to the flask app. I followed numerous guides but I keep getting a 404 error. My Directory structure: /var/www/ -html/ -Stuff for mylab.com -FlaskApp/ -FlaskApp.wsgi -FlaskApp/ -__init__.py -static/ -templates/ -... FlaskApp.wsgi: #!/usr/bin/python3 activate_this = '/home/cogsci-cnddcollab/FlaskApp/venv/bin/activate_this.py' with open(activate_this) as

Flask app on non-root url of website with Apache2

半腔热情 提交于 2020-12-12 07:44:06
问题 I have a Flask app that I would like to host on a subdomain / non-root url of our lab website. For example, I want mylab.com/portal to lead to the flask app. I followed numerous guides but I keep getting a 404 error. My Directory structure: /var/www/ -html/ -Stuff for mylab.com -FlaskApp/ -FlaskApp.wsgi -FlaskApp/ -__init__.py -static/ -templates/ -... FlaskApp.wsgi: #!/usr/bin/python3 activate_this = '/home/cogsci-cnddcollab/FlaskApp/venv/bin/activate_this.py' with open(activate_this) as

Unable to connect to gmail smtp linode django apache2 setup

ぃ、小莉子 提交于 2020-12-06 04:00:03
问题 Hello im having difficulties connecting to google smtp server. The context is that whenever a user fills in a form , my program will automatically email me the feedback to my gmail account. Everything is working except for the fact that the program is stuck within the send_mail function. I have tried doing this : telnet smtp.gmail.com 25 Trying 2404:6800:4003:c03::6c... Which will eventually result in a time out. Here is some of my code: settings.py EMAIL_BACKEND = 'django.core.mail.backends

Unable to connect to gmail smtp linode django apache2 setup

纵然是瞬间 提交于 2020-12-06 03:58:33
问题 Hello im having difficulties connecting to google smtp server. The context is that whenever a user fills in a form , my program will automatically email me the feedback to my gmail account. Everything is working except for the fact that the program is stuck within the send_mail function. I have tried doing this : telnet smtp.gmail.com 25 Trying 2404:6800:4003:c03::6c... Which will eventually result in a time out. Here is some of my code: settings.py EMAIL_BACKEND = 'django.core.mail.backends

Weird subprocess issue with Django

北慕城南 提交于 2020-11-27 04:32:34
问题 I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't produce anything. It works just fine in a regular python script, though. I've omitted most of the code here, but this is basically the important bit. I'm running this on apache2 with mod_wsgi, and I suspect that it might be an apache permissions

Weird subprocess issue with Django

≡放荡痞女 提交于 2020-11-27 04:31:21
问题 I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't produce anything. It works just fine in a regular python script, though. I've omitted most of the code here, but this is basically the important bit. I'm running this on apache2 with mod_wsgi, and I suspect that it might be an apache permissions

Weird subprocess issue with Django

微笑、不失礼 提交于 2020-11-27 04:29:25
问题 I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't produce anything. It works just fine in a regular python script, though. I've omitted most of the code here, but this is basically the important bit. I'm running this on apache2 with mod_wsgi, and I suspect that it might be an apache permissions