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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User