I'm trying to configure gitlab running in an Ubuntu 12.04 guest with Windows7 host. I can ssh the guest using port-forwarding and access the nginx server using port redirection (8888 in host is 80 in guest, so localhost:8888 in host gets to the nginx server in the guest), but the server_name in nginx configuration file is giving me trouble. What is the correct listen and server_name that nginx would accept?
The guest has the NAT interface at 10.0.2.15 and Host-Only interface at 192.168.56.101, static.
EDIT: Because the host uses a static ip address I can't use bridged mode for the Ubuntu guest, so I have to stick with Host-Only and Port Forwarding. With this I can access the nginx server in the guest, but server_name is still wrong, as I have to use localhost:8888 in the Windows host and forward it to port 80 in the guest. What should be server_name?