.

팅겨보고 Nginx 긴 도메인 이름을 서브 - VPS 성경은 # 15

English 영어 (변경)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

수정 / 증대 server_names_hash_bucket_size

서버 이름 - 해시 - 양동이 이미지

만약 당신이, 그리고 nginx를 사용하는 귀하의 도메인 이름이 32자를 초과하면 웹 서버를 다시 시작 오류 메시지가 나타날 수있습니다.

꽤 가능성이, 당신은 도메인 이름 nginx는 더 이상 허용하라고해야합니다.

이렇게하려면 설정 파일을 여십시오. 여러분은 패키지 관리자를 사용하여 Nginx를 설치한 경우이 액세스할 수있습니다 : -

설정 관리되지 않는 VPS (4 Newbies) .. 최대 VPS 성경

20 복사 있음 / 붙여넣기 단계 .. 제로의 영웅에서 빈 상자를 리눅스 서버 귀여운 -했다.

아래로 스크롤하여 전체 시리즈의 색인을 생성합니다.

그럼, 헤이, & 만세! 희망 가상 공유 창고에 도움이됩니다. the_guv

sudo nano /etc/nginx/nginx.conf

For others, who compiled from source:-

sudo nano /usr/local/nginx/conf/nginx.conf

.. and in there, within the http section, that looks like this ..

http {
#various settings here
}
Just add this line:-
server_names_hash_bucket_size 64;

Save the file.

Reboot nginx:-

sudo /etc/init.d/nginx restart

And your longer domain name should work. If the name is longer than 64 characters, swap the '64' value for 128, but I pity your users :)


If you liked that ...
... maybe you'll like these?

.