Thứ Ba, 25 tháng 11, 2014

How To Set Up nginx Virtual Hosts (Server Blocks) on Ubuntu 12.04 LTS

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

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/

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.

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.

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://...