Virtual server Bad path

4 posts / 0 new
Last post
#1 Mon, 06/20/2016 - 12:45
HyDrake

Virtual server Bad path

OS: Debian 8 Domain by Godaddy Nameserver: NS17.DOMAINCONTROL.COM

After creating the virtualserver example.com with the path to the website in /home/example/public_html when i try to browse the website, it take the data from /var/www/html

Result of grep -i '<virtualhost' /etc/apache2/sites-enabled/*.conf

/etc/apache2/sites-enabled/000-default.conf:<VirtualHost *:80>
/etc/apache2/sites-enabled/example.com.conf:<VirtualHost *:80>
/etc/apache2/sites-enabled/example.com.conf:<VirtualHost xxxxxxxHEREMYIPxxxxxxxx:443 [xxxxxxxxxxx:]:443>

IP is the same in /sbin/ifconfig

root@example:~# /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 9c:5c:8e:51:69:47
          inet addr:xxxxSAME IPxxxxxx  Bcast:xxxxxxxxxxxxxxx  Mask:255.255.255.0
          inet6 addr: xxxxxxxxxxxxxxxxxxxxxxxxxxxx Scope:Link
          inet6 addr: xxxxxxxxxxxxxxxxxxxxxxxxxxxx Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:78341338 errors:0 dropped:0 overruns:0 frame:0
          TX packets:185394859 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8873718600 (8.2 GiB)  TX bytes:25404116245 (23.6 GiB)
          Memory:de200000-de27ffff

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:267319 errors:0 dropped:0 overruns:0 frame:0
          TX packets:267319 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:291454783 (277.9 MiB)  TX bytes:291454783 (277.9 MiB)

Please Help me!

Thanks

-Giulio

Mon, 06/20/2016 - 14:35
andreychek

Howdy -- you may want to get rid of that "000-default.conf" file and then restart Apache, removing that should resolve the issues you're seeing there.

Mon, 06/20/2016 - 14:59 (Reply to #2)
HyDrake

❤ I love YOU ❤

Mon, 06/20/2016 - 14:58
HyDrake

❤ I love YOU ❤

Topic locked