Possible Duplicate:
Can I specify a port in an entry in my /etc/hosts on OS X?
I have NGINX working on port 80, and APACHE on port 8080 (Listen 8080).
On Apache I have several Virtualhosts over port 8080.
Before (when I had apache running on port 80) I had the domain->ip mapping on the /etc/hosts file:
127.0.0.1 my-domain.dev
But now that I also need to specify the port, how should I do it?
I am running Mac Os 10.7 (Lion) and my VirtualHost looks like this:
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerName localhost
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
<VirtualHost *:8080>
ServerName my-domain.dev
DocumentRoot "/path/to/my/deploy/folder"
<Directory "/path/to/my/deploy/folder">
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
(...)