By Ceibo
Hi, i’ve been fighting with my droplet for the last 2 days and a can’t figure out what’s happening because i’m new to VPS. Here’s my problem: I created a droplet sing Ubuntu 16 32bits. I followed the next tutrorial https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04 And this one too https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04 The problem is with the last one. Everything it’s ok until i get to the apache configuration part, because no matter what i can’t get apache to show anything but the default page when i type the IP address in the browser. I’m sure it’s a silly error. Here’s my conf file:
<VirtualHost *:80>
ServerName <some ip>
DocumentRoot /home/pablo/myproject/myproject
ServerAdmin webmaster@localhost
ErrorLog ${APACHE_LOG_DIR}/error.
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/pablo/myproject/static
<Directory /home/pablo/myproject/static>
Require all granted
</Directory>
<Directory /home/pablo/myproject/myproject>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess myproject python-home=/home/pablo/myproject/myprojectenv python-path=/home/pablo/myproject
WSGIProcessGroup myproject
WSGIScriptAlias / /home/pablo/myproject/myproject/wsgi.py
</VirtualHost>
As you can see, it is not my Django project, it’s just the tutorial example. I just added the DocumentRoot and the ServerName to see if anything change but nothing happend.
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!
Hi @Ceibo,
Are you sure your DocumentRoot is /home/pablo/myproject/myproject? I would suspect that’s what’s going on. Apache is trying to fetch a file for you however it can’t find it.
Please make sure all the paths mentioned in your configuration file exist and have the proper permissions/ownership.
If nothing helps, you can check your Access and Error logs to further see if anything interesting will be shown there to help you pinpoint the problem.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.