here is my /etc/httpd/conf.d/test.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName test.dev
ServerAlias test.dev.*.xip.io
DocumentRoot /var/www/html/user/test/web
ErrorLog "/var/www/html/user/test/app/logs/httpd_error.log"
CustomLog "/var/www/html/user/test/app/logs/httpd_access.log" combined
<Directory "/var/www/html/user/test/web">
# AllowOverride All # Deprecated
# Order Allow,Deny # Deprecated
# Options All
# Allow from all # Deprecated
# Require all granted # << New way of doing it
Options +FollowSymlinks +Indexes
AllowOverride all
</Directory>
</VirtualHost>
Accessing http://test.dev.192.168.1.4.xip.io/ successfully redirects me to the proper website. Accessing http://192.168.1.4/ also redirects me to the same website instead of the index that I was expecting to see. Also, accessing http://test.dev-some-random-string.192.168.1.4.xip.io/ will also redirect me to the same website.
How do I configure this so when I try to access test.dev.192.168.1.4.xip.io, I will end up in page I am coding while accessing 192.168.1.4.xip.io will show me the home page.
I am currently using a centos 6 running in a virtual box with a bridged adapter for the network. Here is my /etc/httpd/conf/httpd.conf.