I use this tutorial from DO but, it doesn’t works: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04
I see that the structure of virtual host file configuration (Eg: example.config) is different that the tutorial is showing.
<VirtualHost *:80> ServerAdmin webaster@domain DocumentRoot /var/www/html
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
What is the problem?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @georodrigues,
It should be okay to use the following virtual host
It’s let’s say simpler than what you’ve posted. Having said that, you can use the one you’ve provided as well.
Can you confirm what’s the exact issue you are experiencing?
Regards, KDSys