I'm having trouble setting up my virtual host on Apache2 with Debian.
I created the folder:
mkdir /var/www/site/public_html
Within this directory I created a index.html
file.
After that I configured the virtual host like this:
<VirtualHost *:80>
ServerName site.org
ServerAlias www.site.org
DocumentRoot /var/www/site/public_html/
</VirtualHost>
So if I'm going to access through the url link , it does not access the page, only if you access it by link .
Where I'm wrong, because I've lost all of it.