You have to create a host entry for your development server and use this inside WordPress instead of localhost.
Add the following line to your
hosts file and reload your dns cache or reboot the system.
Use a DB tool (e.g. phpMyAdmin, Sequel Pro) to change the options
home inside the
wp_options table. Replace
localhost with the new name
wp.local defined in the hosts file.
If you have existing content in WordPress, you also have to search&replace all hardcoded links (e.g. site/article links or pictures).
You will need to add that hostname to your Apache's vhost configuration as well (except it's setup as default site).