I'm trying to set up apache with multiple virtual hosts "filebrowser.com" and "videos.com" however, I'm only able to access filebrowser.com and not videos.com. I also have to enter the static IP of my server "172.16.0.6" in order to access the site. I'm assuming apache is using the most relevant host (alphabetically). Basically, I'm unable to load either site using the server alias.
Here is the config file for videos.com
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName 172.16.0.6
ServerAlias www.videos.com
DirectoryIndex index.html
DocumentRoot /home/usr/public/Videos
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/VideosError.log
CustomLog ${APACHE_LOG_DIR}/VideosAccess.log combined
and here is the config file for filebrowser.com
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName 172.16.0.6
ServerAlias www.filebrowser.com
DirectoryIndex filebrowser.html
DocumentRoot /home/usr/public
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/FileBrowserError.log
CustomLog ${APACHE_LOG_DIR}/fileBrowser.log combined
Now just to give some insight, my router does not allow me to configure DNS however, it does allow me to assign static ip's. Also, I can only access my web server by typing in the static ip 172.16.0.6.