hello , i have this message error on my site and i try to solve it but no way i can’t : Not Found The requested URL was not found on this server. this is my /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
Redirect permanent / https://domain.com/
ServerAdmin webmaster@localhost
Alias /static /var/www/static-root
<Directory /var/www/static-root>
Require all granted
</Directory>
Alias /media /var/www/media-root
<Directory /var/www/media-root>
Order deny,allow
Allow from all
</Directory>
<Directory /var/www/venv/src/myproject >
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess myproject python-path=/var/www/venv/src/:/var/www/venv/lib/python3.5/site-packages
WSGIProcessGroup myproject
WSGIScriptAlias / /var/www/venv/src/myproject /wsgi.py
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
so can anyone help me please
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!
Hello,
It sounds like that the Apache Mod Rewrite is not enabled.
In order to enable it, you could use the following command:
sudo a2enmod rewrite
You might also have to restart Apache after that:
sudo systemctl restart apache2
For more information on how to use the module you could take a look at this tutorial here:
https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite
Let me know how it goes. Best, Bobby
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.