Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I wasn’t able to set my virtual host using the above method. after setting my virtual host, it showed internal server error 500 on even other sites I had. Can you clarify why that occured?!
I keep getting a “permission denied” with WSGIScriptAlias, even though the “document root” and related directives are configured correctly. The application files are set to “rwx” where the apache user has group access through “www-data”. The site is symlinked through “/var/www/html/project_name”. I’ve double and triple checked the virtual environment and directory structure, and the permissions. Not sure what the issue is…
DocumentRoot /var/www/html
Alias /static /piv/static
<Directory /static>
Require all granted
</Directory>
<Directory /piv/piv>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess piv python-path=/piv/piv:/lib/python2.7/site-packages
WSGIProcessGroup piv
WSGIScriptAlias /piv /piv/piv/wsgi.py
I follow your article and everything went fine but apache prompts following whenever i type IP of my system. Forbidden You don’t have permission to access / on this server.
I didn’t see any site activation. Did I miss something here?
I think I have this up and running correctly. I get the “It Worked” page but when I try going to /admin I am not able to login using the superuser I created previously.
You should mention that if you’re using python 3 with django you have to install libapache2-mod-wsgi-py3. I’ve been having errors for the past two weeks because WSGI was using the wrong version of python.
This comment has been deleted
I apologize for being late to the party. I appreciate your tutorial–it’s precisely what I need. I’ve followed your tutorial to the point that I can test Django’s toy-server. However, after executing “./manage.py runserver 0.0.0.0:8000” I cannot access the webpage from my browser at “http://IP-ADDRESS:8000.” The browser complains that the connection times out. That said, “http://IP-ADDRESS” quickly loads the default Apache Ubuntu Index page. Any help would be much appreciated!
PS I am not using a virtual environment. The permissions on my server have twisted my arm into using sudo for many commands that you do not. When using sudo, I noticed I would have to use the absolute path for all executables and scripts–even after activating the venv, which was too much of a pain for this quick exercise. Thanks so much!
Great technical article! But I encounter Forbidden You don’t have permission to access / on this server problem when I deployed with root user.
A great answer from StackOverflow. http://stackoverflow.com/a/14623574.