หากคุณใช้ nginx และชื่อโดเมนของคุณเกิน 32 ตัวอักษรที่คุณอาจได้รับข้อความแสดงข้อผิดพลาดเมื่อคุณเริ่มต้นเว็บเซิร์ฟเวอร์.
จะค่อนข้างคุณต้องบอก nginx ให้การอีกชื่อโดเมน.
โดยให้เปิดไฟล์ config ของคุณ. ให้คุณติดตั้ง Nginx ใช้ผู้จัดการแพคเกจคุณสามารถใช้กับ: --
ตั้ง VPS Unmanaged (4 Newbies) .. พระคัมภีร์ VPS
ใน 20 สำเนา / ขั้นตอนวาง .. จากศูนย์ให้พระเอกช่องว่างที่น่ารัก-เป็นเซิร์ฟเวอร์ Linux.
เลื่อนลงสำหรับดัชนีชุดเต็ม.
ดังนั้นเดี๋ยวก่อนโรงสาธารณะและขอให้มีอายุยืนยาวเสมือน! หวังช่วย. 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 ...
-
The bashrc file is where we create aliases to shortcut those long CLI commands, plus functions to improve usability. In this tutorial, as well as setting locale, performing a software index update & a Linux [...]
-
Let's take a quick look at our Nginx server and site error & access logs, and where to find them.
You have one pair of Nginx logs server-wide and another for each site, unless you omitted them. The error logs [...]
-
Create sub-sites or prefixed WordPress blogs quickly & easily. Just create an A record, add a vhost file & symlink and restart Nginx.
This is very similar to adding a domain, which is detailed here and [...]
-
Installing & configuring Nginx web server, tweaking the default file structure, then setting up a vhost file with symlink is the subject of this copy/paste how-to. So open up that CLI and I'll explain.
So [...]
-
Create additional sites & blogs quickly & easily. After creating the DNS entries, just add a vhost file, its symlink, restart Nginx and go play.
OK. So I did this guide already, already! But as this is one [...]
-
This guide & cheatsheet - using simple memorable commands, not complex syntax - will make you not only faster at the Linux shell, but enjoy it too.
Copying over my old bashrc file to a new install (it lives in [...]
... maybe you'll like these?
THE_GUV NEEDS YOU!!
.. to improve this post ..
Please clue me in. What's wrong or missing?
Or, hey, just pile on the praise ;) Ah, yup, and fix a feed, fella.
Or link the page to your social network!
thank you, thanx, tx, ta, t, tsst, twaddle, cheek, cheers, cheerio