إنشاء مواقع إضافية بلوق بسرعة & & بسهولة. بعد إنشاء مداخل نظام أسماء النطاقات ، فقط إضافة ملف vhost ، والرمزي ، وإعادة تشغيل Nginx دور الذهاب.
موافق. ولم أكن أعرف أن هذا الدليل بالفعل ، بالفعل! ولكن بما أن هذا هو واحد من الناس من الامور الرئيسية تفعل مع المبادئ الطوعية -- إضافة مجالات إضافية -- وأنا أحسب أنها لن تؤذي لتوفير أساسيات المختصرة جدا ، ناقص تملق.
هذا البرنامج التعليمي يفترض كنت قد قمت بالفعل بإنشاء موقع أو بلوق مع الكتاب المقدس المبادئ الطوعية ، وبالتالي قد مكن FastCGI و، لورد ، والمطلوب لف & النصية التخزين المؤقت. إن لم يكن ، في إجراء فحص المبادئ الطوعية فهرس الكتاب المقدس. على خلاف ذلك ، مجرد بديل "mydomain.com" لyour_domain.tld طوال هذا كيف ل.
إذا كنت لا تريد من التفصيل ، ولكن لماذا ، وأين ، ولهذا السبب على ل، ثم يمكنك التحقق من البرنامج التعليمي مفصلة هنا.
انشاء قاعدة بيانات الفيروسات أونمنجد (4 نوبي).. الكتاب المقدس المبادئ الطوعية
في 20 نسخ / لصق خطوات.. من صفر إلى بطل ، مربع فارغ لطيف ، وخادم لينكس.
بالتمرير لمؤشر سلسلة كاملة.
لذا ، مهلا ، تسليط المشتركة وتحيا الظاهري! نأمل أن يساعد. the_guv
إنشاء نظام أسماء النطاقات الوثائق
إضافة إعدادات نظام أسماء النطاقات كما هو موضح هنا.
إضافة الموقع بنية دليل
في المحطة ، اكتب : --
sudo mkdir -p /home/public_html/mydomain.com/{public,private,log,backup}
Create a Temporary Homepage (optional)
You don't have to bother with this, but I guess some folks will find it handy.
Type:-
sudo nano /home/public_html/mydomain.com/public/index.html
.. hit return and paste:-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My New Nginx-Powered Site</title>
</head>
<body>
<p>It works!</p>
</body>
</html>
Add Virtual Host (vhost) with FastCGI, FURL Support & Optional WordPress Caching
Type this:-
sudo nano /usr/local/nginx/sites-available/mydomain.com
Return and paste this:-
server {
listen 80;
server_name www.mydomain.com;
rewrite ^/(.*) http://mydomain.com/$1 permanent;
}
server {
listen 80;
server_name mydomain.com;
access_log /home/public_html/mydomain.com/log/access.log;
error_log /home/public_html/mydomain.com/log/error.log;
location /
{
root /home/public_html/mydomain.com/public/;
index index.php index.html;
# Basic version of Wordpress parameters, supporting nice permalinks.
# include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
include /usr/local/nginx/conf/wordpress_params.super_cache;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/public_html/mydomain.com/public/$fastcgi_script_name;
}
}
Option: If you don't use WordPress with this site, delete the following lines from the above:-
# Basic version of Wordpress parameters, supporting nice permalinks.
# include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
include /usr/local/nginx/conf/wordpress_params.super_cache;
Option: If you do want WordPress, and want both pretty permalinks and WP Super Caching support, leave the above, as is.
Option: If you do want WordPress, and want pretty permalinks but not WP Super Caching, swap this:-
# Basic version of Wordpress parameters, supporting nice permalinks.
# include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
include /usr/local/nginx/conf/wordpress_params.super_cache;
.. for this :-
# Basic version of Wordpress parameters, supporting nice permalinks.
include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
# include /usr/local/nginx/conf/wordpress_params.super_cache;
Save the file.
Create the Symlink and Restart Nginx
Paste this into the terminal:-
sudo ln -s /usr/local/nginx/sites-available/mydomain.com /usr/local/nginx/sites-enabled/mydomain.com
And reboot the web server by typing ..
sudo /etc/init.d/nginx stop && sleep 2 && sudo /etc/init.d/nginx start
.. Or if you followed Set Up Unmanaged VPS (4 Newbies) - Part 7: Edit bashrc for User-Friendly Linux, plus System Updates , just type:-
n2r
Upload your new domain's site files and go check it. If you're relocating an existing site, you should read this for a seamless move .
Serve multi sites & blogs on a budget .. at the fastest possible speed .. with the least downtime .. in the most secure environment .. and future-proofed for easy admin.
That's what the VPS Bible is about, stepped out in simple copy & paste guides.
From high traffic WordPress blogs to startup web hosts, here's what you need.
Congratulations! You have one humdinger of a web server! If you followed the Bible to a T, it's speedy, solid & secure.
But. As explained in في المحطة ، اكتب : --
sudo mkdir -p /home/public_html/mydomain.com/{public,private,log,backup}
Create a Temporary Homepage (optional)
You don't have to bother with this, but I guess some folks will find it handy.
Type:-
sudo nano /home/public_html/mydomain.com/public/index.html
.. hit return and paste:-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My New Nginx-Powered Site</title>
</head>
<body>
<p>It works!</p>
</body>
</html>
Add Virtual Host (vhost) with FastCGI, FURL Support & Optional WordPress Caching
Type this:-
sudo nano /usr/local/nginx/sites-available/mydomain.com
Return and paste this:-
server {
listen 80;
server_name www.mydomain.com;
rewrite ^/(.*) http://mydomain.com/$1 permanent;
}
server {
listen 80;
server_name mydomain.com;
access_log /home/public_html/mydomain.com/log/access.log;
error_log /home/public_html/mydomain.com/log/error.log;
location /
{
root /home/public_html/mydomain.com/public/;
index index.php index.html;
# Basic version of Wordpress parameters, supporting nice permalinks.
# include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
include /usr/local/nginx/conf/wordpress_params.super_cache;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/public_html/mydomain.com/public/$fastcgi_script_name;
}
}
Option: If you don't use WordPress with this site, delete the following lines from the above:-
# Basic version of Wordpress parameters, supporting nice permalinks.
# include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
include /usr/local/nginx/conf/wordpress_params.super_cache;
Option: If you do want WordPress, and want both pretty permalinks and WP Super Caching support, leave the above, as is.
Option: If you do want WordPress, and want pretty permalinks but not WP Super Caching, swap this:-
# Basic version of Wordpress parameters, supporting nice permalinks.
# include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
include /usr/local/nginx/conf/wordpress_params.super_cache;
.. for this :-
# Basic version of Wordpress parameters, supporting nice permalinks.
include /usr/local/nginx/conf/wordpress_params.regular;
# Advanced version of Wordpress parameters supporting nice permalinks and WP Super Cache plugin
# include /usr/local/nginx/conf/wordpress_params.super_cache;
Save the file.
Create the Symlink and Restart Nginx
Paste this into the terminal:-
sudo ln -s /usr/local/nginx/sites-available/mydomain.com /usr/local/nginx/sites-enabled/mydomain.com
And reboot the web server by typing ..
sudo /etc/init.d/nginx stop && sleep 2 && sudo /etc/init.d/nginx start
.. Or if you followed Set Up Unmanaged VPS (4 Newbies) - Part 7: Edit bashrc for User-Friendly Linux, plus System Updates , just type:-
n2r
Upload your new domain's site files and go check it. If you're relocating an existing site, you should read this for a seamless move .
Serve multi sites & blogs on a budget .. at the fastest possible speed .. with the least downtime .. in the most secure environment .. and future-proofed for easy admin.
That's what the VPS Bible is about, stepped out in simple copy & paste guides.
From high traffic WordPress blogs to startup web hosts, here's what you need.
Congratulations! You have one humdinger of a web server! If you followed the Bible to a T, it's speedy, solid & secure.
But. As explained in Part 16 , the Nginx web server has no compatible control panel .. yet. Then again, even if it did, do you really want the resource drain?
In the VPS Admin series is every maintenance procedure you'll need to know. And, hey, using these is a darn sight faster than using a control panel anyhow.
Set it up? Click here for the 21 part follow-up .. V-P-S Admin
Go back? Click here for the original series .. The V-P-S Bible
- * Includes video tutorial.
- Not linked = not published. Won't be long. Fix a feed for updates.
If you liked that ...
-
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 [...]
-
Easily restrict access to hide sensitive data, admin areas & other web pages using the Nginx web server's Auth_Basic security module & the htpasswd password creation tool.
What we're gonna do, essentially, is to [...]
-
For the blog platform WordPress to work properly with Nginx we need to tweak the web server configuration. This tutorial will enable both caching - integrating the WP Super Cache plugin - and activate pretty [...]
-
How to install PMA with Nginx, to administer multiple MySQL dbs from anywhere. View table structure, browse data, run queries, backup and more.
Adding phpMyAdmin to the Nginx web server is very like adding a [...]
-
To park a domain is simply to add it, undeveloped, with a DNS manager. Big deal! More useful is to point it to a developed site, gaining the traffic.
For instance, you may actively use mydomain.com, and have [...]
-
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 [...]
... maybe you'll like these?
CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR : Best Web Hosting Review Website July 15th, 2009 at 5:11 pm
[...] More: CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR [...]
CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR : hostwebsitereview.com July 15th, 2009 at 7:06 pm
[...] Follow this link: CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR [...]
CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR : hostingwebsitereviews.com July 15th, 2009 at 7:11 pm
[...] Read the original: CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR [...]
CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR : tntwebhostings.com July 15th, 2009 at 9:41 pm
[...] Read more: CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR [...]
CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR | Green Web hosting July 16th, 2009 at 12:36 am
[...] here to see the original: CHEATSHEET Add More Domains with Nginx - VPS ADMIN #1 - GUVNR Top 5 Green Web Hosting Companies, Click [...]
Dave October 22nd, 2009 at 2:51 pm
Hey Guvnr,
Just wanted to say Thank You for this whole Bible and the Follow-Up! It has helped me loads with the initial set up, and I've come back for the info on adding additional domains.
Anyway, I looked around your site and I can't find a way to donate you, can you give me that information?
Thanks Again,
Dave
the_guv October 23rd, 2009 at 8:38 am
@Dave .. thank you, that is most kind.
I have plans to enable donation but not until the Bible's follow-up, the VPS Admin series, is finished in a few weeks' time. What I am working on is a downloadable e-book for those wishing to donate, by way of a thank you. You can subscribe for updates about that.
In the meantime, the best way for folks to say thank you is to spread the word using the social network icons, and to give feedback, good or bad, to help me improve this resource.
Truly I appreciate your comment. I hope there are many more who feel the same way, then I can expand guvnr with similarly useful guides into how to make the web, and to make the most of it, both for biz and fun.
copyright © 2009 web design spain sitemap
.