I want to configure virtual hosts for my domains to use the same server to host both of the sites. Here is the output of apache2ctl -S:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message VirtualHost configuration: *:80 is a NameVirtualHost default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost www.kahveciderin.com (/etc/apache2/sites-enabled/kahveciderin.com.conf:1) alias www.kahveciderin.com alias kahveciderin.com port 80 namevhost www.returnnull.xyz (/etc/apache2/sites-enabled/returnnull.xyz.conf:2) alias www.returnnull.xyz alias returnnull.xyz ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/html" Main ErrorLog: "/var/log/apache2/error.log" Mutex default: dir="/var/run/apache2/" mechanism=default Mutex mpm-accept: using_defaults Mutex watchdog-callback: using_defaults Mutex rewrite-map: using_defaults PidFile: "/var/run/apache2/apache2.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG Define: ENABLE_USR_LIB_CGI_BIN User: name="www-data" id=33 not_used Group: name="www-data" id=33 not_used The problem is that both domains use /var/www/html as their documentroot