apache

Flask shows apache2 page on DNS

Flask shows apache2 page on DNS Question: My flask app works when accessed via IP(http://194.233.174.220/) but when using the dns(http://friendhub.social/), it only shows the default apache2 page. If I try to move my own page over to /var/www/html, it will only show a directory tree /etc/apache2/sites-available/social.conf: <VirtualHost *:80> ServerName 194.233.174.220 ServerAdmin [email protected] WSGIScriptAlias / /var/www/social/social.wsgi …

Total answers: 1

Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django

Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django Question: I read ton of articles, but still can’t figure out what I’m missing. I’m running a django website from virtualenv. Here’s my config file. The website address is replaced by <domain.com>, can’t use that here. Config <VirtualHost *:80> ServerAdmin sidharth@collaboration-management ServerName <domain.com> ServerAlias <domain.com> DocumentRoot …

Total answers: 4

How do I host a Dash app on an Apache Server?

How do I host a Dash app on an Apache Server? Question: I’m new to hosting a Raspberry Pi Apache server and I have a simple Dash application I would like to host via a .wsgi file. Following Flask’s official documentation, this post’s answer, modwsgi’s documentation, and this guide for connecting Flask to Apache; I …

Total answers: 2

Django Locale not working after deploying to server [ FIXED ]

Django Locale not working after deploying to server [ FIXED ] Question: when i test it locally the translations do worked, but when I deploy it on a server it doesn’t work. Some of the words do get translated but it’s not from my locale, it’s django’s default translation. In settings.py: MIDDLEWARE = [ ‘django.middleware.security.SecurityMiddleware’, …

Total answers: 2

Django / Apache / Ubuntu Static files not being served

Django / Apache / Ubuntu Static files not being served Question: Everything was working fine until I moved from my local PC to a web server (AWS Ubuntu). I am using Apache with WSGI adapter. DEBUG = FALSE so this is a live production environment. I followed all the guides I could and have been …

Total answers: 1

bottle + CGI always matches / route

bottle + CGI always matches / route Question: I can’t get bottle to match any other route than “/” when deploying in a CGI environment. (I’m stuck with the hosting provider, FastCGI or WSGI are not on offer, unfortunately). Bottle lives in a subdirectory lib – I have dropped the bottle.py from bottle-0.12.18.tar.gz there. Python …

Total answers: 2

How to install mod_wsgi into Apache on Windows?

How to install mod_wsgi into Apache on Windows? Question: Other similar answers are out of date or focus on a particular error and not the whole process. What is the full installation process of mod_wsgi into an Apache installation on Windows 10? Asked By: Robin De Schepper || Source Answers: Install Microsoft Visual C++ Build …

Total answers: 3

apache/mod_wsgi – how to configure mutiple webapps using different python virtual environments

apache/mod_wsgi – how to configure mutiple webapps using different python virtual environments Question: Environment: Ubuntu, Apache HTTPD, mod_wsgi compiled with python 3.6, website (assumed): testthisout.com Problem: I have 2 different webapps which will use 2 different python virtual environments. They will be hosted at testthisout.com/app1 and testthisout.com/app2 I am struggling to figure how to tell …

Total answers: 1

"ImportError: No module named django.core.wsgi" apache error

"ImportError: No module named django.core.wsgi" apache error Question: I’m trying to run a django project on CentOS 7. I have a virtual environment inside my project containing all the required packages, … . I configured my httpd.conf file as follows: <VirtualHost *:80> ServerName the_server_ip_address ServerAlias localhost DocumentRoot /var/www/html # adding these lines for handling static …

Total answers: 3

Why does `flask_bootstrap` fail to import?

Why does `flask_bootstrap` fail to import? Question: When running a flask app, Apache2’s error.log shows that the flask_bootstrap module cannot be found: [wsgi:warn] mod_wsgi: Compiled for Python/2.7.11. [wsgi:warn] mod_wsgi: Runtime using Python/2.7.12. [mpm_event:notice] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured — resuming normal operations [core:notice] AH00094: Command line: ‘/usr/sbin/apache2’ [wsgi:error] mod_wsgi (pid=18587): Target WSGI script ‘/var/www/myapp/myapp.wsgi’ …

Total answers: 2