Apache2 virtual host load server documentroot - Ask Ubuntu
i have ubuntu 16.04.1 vps , installed apache2 there , php7, fail2ban , other things.
i set virtualhost domain (xxxxx.xx) link /var/www/html/twido-demo site loads content /var/www/html.
what did wrong?
file /etc/apache2/sites-available/twido.conf
<virtualhost *:80> servername xxxxx.xx serveralias www.xxxxx.xx documentroot /var/www/html/twido-demo <directory /var/www/html/twido-demo> options -indexes +followsymlinks +multiviews allowoverride require granted </directory> errorlog ${apache_log_dir}/myproject-error.log # possible values include: debug, info, notice, warn, error, crit, # alert, emerg. loglevel warn customlog ${apache_log_dir}/myproject-access.log combined </virtualhost>
file /etc/hosts
127.0.0.1 localhost 127.0.1.1 ubuntu # following lines desirable ipv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters xx.2.241.236 xxxxx.xx
image - content of folder should load
can see mistake in there?
Comments
Post a Comment