Address @Supermathie's concerns in PR1430

This commit is contained in:
Kevin P. Fleming 2013-09-30 16:28:22 -04:00
parent be0208182c
commit 3777d9f653
2 changed files with 7 additions and 3 deletions

1
config/nginx.global.conf Normal file
View file

@ -0,0 +1 @@
server_names_hash_bucket_size 64;

View file

@ -79,7 +79,10 @@ shiny). To install on Ubuntu:
sudo apt-get remove '^nginx.*$' sudo apt-get remove '^nginx.*$'
# Setup a sources.list.d file for the nginx repository # Setup a sources.list.d file for the nginx repository
echo "deb http://nginx.org/packages/ubuntu/ precise nginx" | sudo tee /etc/apt/sources.list.d/nginx.list cat << 'EOF' | sudo tee /etc/apt/sources.list.d/nginx.list
deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx
EOF
# Add nginx key # Add nginx key
curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add - curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add -
@ -118,7 +121,7 @@ Install RVM
# As 'discourse' # As 'discourse'
# Install RVM # Install RVM
curl -s -S -L https://get.rvm.io | bash -s stable \curl -s -S -L https://get.rvm.io | bash -s stable
. ~/.bash_profile . ~/.bash_profile
# rvm added shell initialization code to ~/.bash_profile, # rvm added shell initialization code to ~/.bash_profile,
@ -211,6 +214,7 @@ Not english? Set the default language as appropriate:
## nginx setup ## nginx setup
# Run these commands as your normal login (e.g. "michael") # Run these commands as your normal login (e.g. "michael")
sudo cp /var/www/discourse/config/nginx.global.conf /etc/nginx/conf.d/local-server.conf
sudo cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf sudo cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
If Discourse will be the only site served by nginx, disable the nginx default If Discourse will be the only site served by nginx, disable the nginx default
@ -221,7 +225,6 @@ site:
Edit /etc/nginx/conf.d/discourse.conf Edit /etc/nginx/conf.d/discourse.conf
- add: `server_names_hash_bucket_size 64;` at the beginning
- edit `server_name`. Example: `server_name cain.discourse.org test.cain.discourse.org;` - edit `server_name`. Example: `server_name cain.discourse.org test.cain.discourse.org;`
- change socket paths if Discourse is installed to a different location - change socket paths if Discourse is installed to a different location
- modify root location if Discourse is installed to a different location - modify root location if Discourse is installed to a different location