Just install samba from the synaptic package manager and you can access your ubuntu webserver through its hostname.

To access Windows Machines from your ubuntu through its hostnames, just install winbind from the synaptic package manager.

happy coding…