I have made a virtual host on a machine and reloaded apache, but I can't seems to be able to access it from another computer on the same network. (It does work when I set the ip of the server and in the host file of the other machine)
to make the virtualhost I have edited /etc/httpd/conf/httpd.conf and added:
<VirtualHost 192.168.0.1:80>
DocumentRoot /home/sites/mysite
ServerName mysite.test.corp
ErrorLog logs/mysite.test.corp-error_log
CustomLog logs/mysite.test.corp-access_log common
<Directory /home/sites/mysite>
AllowOverride All
</Directory>
</VirtualHost>
If it works when you set the IP in your hosts file, then there is a DNS problem somewhere on the local network. Did you create the record "mysite.test.corp." on your local authoratative DNS servers?