Answer» hi people,
i've LINUX centos installed on a cpu and i'm gonna include it in our current network together with windows system so that all development can be done in a centralise area.
currently i've not gotten samba to work on linux for file sharing with windows. however, im just using filezilla for file transfer.
i've created virtual host in linux apache. e.g: dev.domain.com which points to /var/www/html/project. this works fine in linux, i can access via the browser.
however, i will be doing the development in window xp instead. i can access the file on the linux system from window by specifying the ip ADDRESS of the linux system, e.g http://192.168.1.123/project/index.php. but, i wanna use the virtual names created. how can i CALL http://dev.domain.com on window system instead?
Thanks i hope i'm not confusing thingsFind your hosts file (in XP it's in C:\WINDOWS\system32\drivers\etc) and put the definitions in there. E.g.:
192.186.1.123 dev.domain.com
This will only work on the machine that has that in its hosts file. For a network-wide solution, you'd NEED to put this definition in a local DNS server (Win2003, for example).
Incidentally, before you go much further with your Linux dev box, I strongly recommend installing Webmin, then Virtualmin. That will greatly ease administration of virtual domains and will also help with Samba configuration.Hey rob,
Thks for the reply.
I've inserted 192.186.1.123 dev.domain.com on my windows localhost Host file.
For virtual host settings, this is what was inserted into httpd.conf on the linux system: Code: [Select]NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1> SERVERNAME localhost DocumentRoot /var/www/html </VirtualHost>
<VirtualHost 127.0.0.1> ServerName dev.domain.com ServerAlias dev.domain.com DocumentRoot /var/www/html/project </VirtualHost> when i browse http://dev.domain.com on my windows system, im getting the default apache test page showing the successful installation of apache. however, if i browser http://dev.domain.com/project, it works. All works well if everything was done on the linux system itself.
What am i missing? Have you tried putting that on your DNS Server? If im not mistaken, you could add that on DNS Records (A)oh..
i've not done so.. how shall i do that?Quote from: Rob Pomeroy on July 10, 2009, 12:39:10 AM This will only work on the machine that has that in its hosts file. For a network-wide solution, you'd need to put this definition in a local DNS server (Win2003, for example). Do you have a Windows server?
Also take another look at my previous comments about Webmin/Virtualmin. I promise you won't be disappointed in the long run.im working on LAN. Do i need to deal with DNS?DNS is essential in LAN..
http://technet.microsoft.com/en-us/library/cc787921(WS.10).aspxQuote from: nuttynibbles on July 14, 2009, 09:35:07 AMim working on LAN. Do i need to deal with DNS?
You can put your definitions within the host file on each machine, as I said before.
|