1. https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3
2. https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts
3. http://kbeezie.com/nginx-configuration-examples/
4. https://www.digitalocean.com/community/tutorials/how-to-configure-the-nginx-web-server-on-a-virtual-private-server
Thứ Ba, 25 tháng 11, 2014
How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 14.04
1. https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04
2. How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.04
3. http://www.unixmen.com/install-lemp-server-nginx-mysql-mariadb-php-phpmyadmin-ubuntu-14-1014-0413-10/
4. http://ubuntuhandbook.org/index.php/2014/04/install-nginx-with-php5-mysql-lemp-in-ubuntu-14-04-server/
2. How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.04
3. http://www.unixmen.com/install-lemp-server-nginx-mysql-mariadb-php-phpmyadmin-ubuntu-14-1014-0413-10/
4. http://ubuntuhandbook.org/index.php/2014/04/install-nginx-with-php5-mysql-lemp-in-ubuntu-14-04-server/
Hướng dẫn cài đặt LEMP Server trên Ubuntu Precise 12.04
1. http://www.quantrimang.com.vn/m/huong-dan-cai-dat-lemp-server-tren-ubuntu-precise-12-04-87599#nav
2. http://hocvps.com/thu-thuat-toi-uu-lemp-server-tren-ubuntu/
3. http://hocvps.com/huong-dan-config-vps-chiu-tai-lon-voi-hocvps-script/
4. http://hostingaz.net/vps/huong-dan-cai-dat-lemp-linux-nginx-mysql-php-tren-ubuntu-12-04.html
5.
2. http://hocvps.com/thu-thuat-toi-uu-lemp-server-tren-ubuntu/
3. http://hocvps.com/huong-dan-config-vps-chiu-tai-lon-voi-hocvps-script/
4. http://hostingaz.net/vps/huong-dan-cai-dat-lemp-linux-nginx-mysql-php-tren-ubuntu-12-04.html
5.
Thứ Ba, 11 tháng 11, 2014
Set up connect another computer to localhost
Reference : http://forum.wampserver.com/read.php?2,112013,112392
Here is what I've done so far:
* Created a basic MediaWiki page (localhost accessible on local computer)
* WAMP Server is online
* TCP Port 80 (Private and Public) is checked under Control Panel\System and Security\Windows Firewall\Allowed Programs
* WAMP (Private and Public) is checked under Control Panel\System and Security\Windows Firewall\Allowed Programs
* Created Windows Firewall Inbound Rule TCP Port 80 (which allows all connections, Local & Remote Ports: All Ports, Applies to Domain/Public/Private)
* Created Windows Firewall Outbound Rule TCP Port 80 (which allows all connections, Local & Remote Ports: All Ports, Applies to Domain/Public/Private)
Perhaps I went a bit overboard on the Firewall exceptions? Anyways, I'm stumped on what to do next. Any advice on how other computers in my home can look at my localhost? I suppose then the followup question will be what I have to do so others on the Internet can look at my localhost?
A more secure method would be to edit the httpd.conf file ( using the wampmanager menu system ) and make a small change to the security in there so only the ip addresses in your local home network will be allowed into Apache
To do this find this section of the httpd.conf file
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1 192.168.2
</Directory>
And add one more line like this
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.1
</Directory>
Note that this should be the subnet that your router allocates and only the first 3 of the quartets.
So lets say that one of the pcs on your internal network has ip address 192.168.1.10, then the first 3 quartets are 192.168.1
This will have the effect of allowing any PC/Device connected to your internal network to talk to apache.
Here is what I've done so far:
* Created a basic MediaWiki page (localhost accessible on local computer)
* WAMP Server is online
* TCP Port 80 (Private and Public) is checked under Control Panel\System and Security\Windows Firewall\Allowed Programs
* WAMP (Private and Public) is checked under Control Panel\System and Security\Windows Firewall\Allowed Programs
* Created Windows Firewall Inbound Rule TCP Port 80 (which allows all connections, Local & Remote Ports: All Ports, Applies to Domain/Public/Private)
* Created Windows Firewall Outbound Rule TCP Port 80 (which allows all connections, Local & Remote Ports: All Ports, Applies to Domain/Public/Private)
Perhaps I went a bit overboard on the Firewall exceptions? Anyways, I'm stumped on what to do next. Any advice on how other computers in my home can look at my localhost? I suppose then the followup question will be what I have to do so others on the Internet can look at my localhost?
A more secure method would be to edit the httpd.conf file ( using the wampmanager menu system ) and make a small change to the security in there so only the ip addresses in your local home network will be allowed into Apache
To do this find this section of the httpd.conf file
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1 192.168.2
</Directory>
And add one more line like this
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.1
</Directory>
Note that this should be the subnet that your router allocates and only the first 3 of the quartets.
So lets say that one of the pcs on your internal network has ip address 192.168.1.10, then the first 3 quartets are 192.168.1
This will have the effect of allowing any PC/Device connected to your internal network to talk to apache.
Thứ Tư, 10 tháng 9, 2014
Thuộc tính thẻ rel="canonical"
Các website rất hay bị trùng lặp nội dung (Duplicate content)
tức là có nhiều page có nội dung giống nhau, Google rất khó chịu về
việc này vì cùng 1 nội dung nhưng có 2 đường dẫn khác nhau. vì vậy
Google đã đưa ra thẻ rel=”canonical”. Thẻ rel=”canonical”
dùng cho URL chủ và bỏ qua 1 URL khác có cùng nội dung để Google biết
phân loại và loại bớt 1 URL không cần thiết đi. Việc này giúp cho bọ
Google hiểu site bạn một cách minh bạch và mạch lạc hơn.Ví dụ mình có 1 URL như sau: http://tranngoctri.com/123456/seo-website-chuyen-nghiep.html mình seo page với từ khóa là "Seo website chuyên nghiệp" nhưng đồng thời với page đó mình cũng có URL khác cũng có thể truy cập vào page này VD: http://tranngoctri.com/123456/seo-chuyen-nghiep.html hoặc là http://tranngoctri.com/123456/seo-website-chuyen-nghiep.html/fdgasgsafdg chẳng hạn.
Ngoài ra con có các trường hợp khác như phân trang 1, 2, 3,...
Đặc biệt là khi ta sử dụng 1 host chứa website mà có đến 2 domain chạy trên host này.
Qua các trường hợp này cách giải quyết là dùng thẻ canonical, thì canonical nói cho Google biết rằng đây chính là URL chính của page này và loại bỏ các trường hợp URL khác.
Cú pháp của canonical
Các trường hợp trên nếu không có các sữ lý cẩn thận rất dễ bị mắc lỗi Duplicate content
Chúng ta nên dùng canonical trên toàn bộ website đặc biệt là trên trang index VD mình dang seo với từ khóa trên trang chủ của mình là "Điện thoại di động" chẳng hạn, nhưng các đối thủ cạnh tranh với mình chơi sấu hoặc phá mình đặt textlink với URL http://tranngoctri.com/index.html thì thứ hạng từ khóa của mình sẻ bị ảnh hưởng. Cho nên tốt nhất là dùng thuộc tính thẻ rel="canonical".
Đăng ký:
Bài đăng (Atom)
Học lập trình web căn bản với PHP
Bài 1: Các kiến thức căn bản Part 1: https://jimmyvan88.blogspot.com/2012/05/can-ban-lap-trinh-web-voi-php-bai-1-cac.html Part 2: https://...
-
IMindMap 8.0.4 iMindMap là công cụ tuyệt vời để vẽ bản đồ tư duy đem mọi chi tiết trong đầu bạn ra thành các ý tươgnr, để nắm bắt ý tư...
-
1. Download Bamboo in : http://www.atlassian.com/software/bamboo/download?os=linux cd ~ mkdir BAMBOO cd BAMBOO wget http://www.atlassia...
-
1.Giới thiệu về Vim Vim – Vi iMprove là bản cải thiện của Vim – một trình soạn thảo phổ biến trên Unix. Vim có tính cấu hình rất cao ...