My server configuration is as follows
1) centos 7
2) apache 2.4.6
i have configuration file abc.conf in /etc/httpd.conf.d and its content is as follows
def.com is main domain and abc.def.com is subdomain.
<VirtualHost X.X.X.X:80> (X.X.X.X is server IP)
ServerAdmin
abc@def.com
ServerName abc.def.com
ServerAlias
www.abc.def.com
########FOR ERROR LOG AND ACCESS LOG#######################
ErrorLog /var/log/httpd/abc-error.log
CustomLog /var/log/httpd/abc-access.log common env=!dontlog
###############TO REDIRECT TO PROPER PAGE##################
RewriteEngine On
RewriteOptions Inherit
RewriteRule ^/$ /administration [R=301,L]
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
############### PROXYPASS TO THE JBOSS INSTANCE #############
ProxyPass /
http://localhost:8080/
ProxyPassReverse /
http://localhost:8080/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
Now I mapped another domain pqrs.in to X.X.X.X IP in domain control panel and didn't write any virtual host file for apache.
But when I open pqrs.in in browser it automatically redirects to pqrs.in/administration which is not intended. how can i stop this and avoid redirection and show nothing in the browser for pqrs.in