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.

By truleighsyd
###I’ve recently changed the config files of my virtual hosts and rather than use an .htaccess file at the directory root I wanted to use the config file for server optimization. However it’s not working.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
RewriteEngine On
# RewriteBase /
</IfModule>
####And using this rewrite condition…
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
</IfModule>
####With the virtual host set as follows…
<virtualhost>
ServerName: example.com
ServerAlias: www.example.com
.......
</virtualhost>
####The WWW URL is still NOT redirecting to non-WWW URL.
What am I missing? Is this not possible to do using Digital Ocean? I could really use someones help. I’ve tried other methods such as update the A and CNAME records based on some of the communities suggestions but still have not been able to get this to work. Help anyone? Please and thank you!