Oh, and you might have to increase your `server_names_hash_size`, it's in the main `nginx.conf`.
On Thursday, April 24, 2014 5:17:09 AM UTC-5, Kurtis Rainbolt-Greene wrote: > > Alright so I have a normal server with a normal setup. All I wanted was ` > http://gitlab.mydomain.com` to respond to requests. > > Problem: All requests to `.mydomain.com` respond with nginx welcome page. > > Solution: It's not in the guide, but the first step is to remove the > site-enabled default symlink: `sudo rm /etc/nginx/sites-enabled/default` > > --- > > Problem: All requests to `.mydomain.com` respond with gitlabs (close, but > not great!) > > Solution: > > 1. Edit nginx settings file: `sudo editor /etc/nginx/nginx.conf` > 2. Add this snippet in the `http {}` directive anywhere above the > `include /etc/nginx/sites-enabled/*;` > > server { > > listen *:80 default_server; > > server_name .mydomain.com; # Your FQDN with a period in >> front > > return 404; > > } > > 3. Remove the `default_server` from your gitlab nginx server block > (This should probably be changed in the install process). > > Now only your specifically chosen server_name will respond with gitlab. > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
