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.

I need to have this site’s root be /var/www/example_site/docroot/ Running SSL with a Let’s Encrypt certificate, and heavy .htaccess file in /var/www/example_site/docroot
Whenever I run phpinfo() it tells me that the DOCUMENT_ROOT still remains /var/www/example_site
Here is the apache2 Virtual Hosts conf directive, which I took care of enabling with a2ensite and have restarted apache2 numerous times. The default 000 conf file was disabled.
<VirtualHost *:443 *:80>
<Directory /var/www/example_site/docroot>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ServerAdmin webmaster@example_site.org
ServerName example_site.org
ServerAlias www.example_site.org
DocumentRoot /var/www/example_site/docroot
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =example_site.org [OR]
RewriteCond %{SERVER_NAME} =www.example_site.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Also, does a ‘Virtual Host’ directive need to have both port 443 and 80 specified, or would *:80 be enough?
jeffs
0621335d663b4b699a60eb27e28153
accesstrax
Dwight Trumbower
admin
yimprogramming
samunyi90
1d6ce141ab5444dfb1ea2dd29cf4b1
Matt Fricker
joel9b158e40551b15093f213f
EmilJacobs