tailieunhanh - Setting Up LAMP Getting Linux, Apache, MySQL, and PHP Working Together phần 7
Bây giờ là lúc để bắt đầu lập kế hoạch và cấu hình máy ảo của bạn. Đến cuối của phần này, bạn sẽ có rất quen thuộc với như thế nào cũng được thiết kế và linh hoạt các máy chủ Apache Web thực sự là. | 230 Chapter 8 Apache Web Server Installation and Configuration Simpo PDF Merge and Split Unregistered Version - http LimitRequestBody Location LocationMatch LogLevel Options ResourceConfig RLimitCPU RLimitMEM RLimitNPROC ServerAdmin ServerAlias ServerName ServerPath ServerSignature UseCanonicalName User Requires suEXEC installed Let s put some of these directives to use in configuring an Apache virtual host. Configuring Apache Virtual Hosts It is now time to start planning and configuring your virtual hosts. By the end of this section you will be very familiar with how well designed and flexible the Apache Web Server really is. Got DNS For this example we are going to assume you have two domain names with DNS set up to point to the IP address of your server. If you do not have DNS set up or you do not own domain names yet you can simply edit your system s hosts file and trick your system into resolving a fake name for your server s IP address. On Linux the HOSTS file is located in etc hosts and you will need to add the following lines to it assuming your server s IP address is . NOTE The IP addresses used here are fictional will not work on a real server. You must substitute with your real IP addresses Using Apache Virtual Hosts 231 Simpo PDF Merge and Split Unregistered Version - http On Windows systems you should search your C Windows directory for a file named hosts. It is usually located in C Windows System32 Drivers etc hosts. In this file you will add the following lines Now your system is tricked into resolving the domain names .com and to the IP address of the server. TIP Keep this previous trick in mind the next .
đang nạp các trang xem trước