HI all,
i have a domain abc.info on a remote server and its files are hosted on let say 217.56.34.12, and a subdomain subdomain.abc.info hosted on let say 80.45.1.26 ("/docs/www/") and another subdomain2.abc. info is also hosted on 80.45.1.26 ("/docs/www/domain2")
I'm running apache, what settings should i do in apache when as i type subdomain.abc.i nfo and it opens the contents in /docs/www and as i type subdomain2.abc. info it opens the contents of /docs/www/subdomain2/
I have tried virtual host as follow
but the thing is when i type subdomain.abc.i nfo and subdomain.abc.i nfo both open the contents of /docs/www
Best Regards
i have a domain abc.info on a remote server and its files are hosted on let say 217.56.34.12, and a subdomain subdomain.abc.info hosted on let say 80.45.1.26 ("/docs/www/") and another subdomain2.abc. info is also hosted on 80.45.1.26 ("/docs/www/domain2")
I'm running apache, what settings should i do in apache when as i type subdomain.abc.i nfo and it opens the contents in /docs/www and as i type subdomain2.abc. info it opens the contents of /docs/www/subdomain2/
I have tried virtual host as follow
Code:
NameVirtualHost * <VirtualHost *:80> ServerName subdomain.abc.info DocumentRoot "/docs/www" </VirtualHost> <VirtualHost *:80> ServerName subdomain2.abc.info DocumentRoot "/docs/www/subdomain2" </VirtualHost>
Best Regards
Comment