This article mainly introduces the PHP level two subdirectory (background directory) to set the level two domain name method. Have a good reference value, follow the small series together to see it
We can use Apache's. htaccess rewrite to implement 301 jumps by adding the. htaccess file from the root folder in the background to the following:
The above i
such as http://localhost:8080/myweb/index.jsp into www.melody.com1. Add key-value pairs 127.0.0.1 www.melody.com in the Hosts file2. Locate Server.xml in the Conf directory of Tomcat and add it under the name: Set the virtual host name as localhost, please fill in the specific domain
2cto.com;If ($ host! = 'Www .2cto.com '){Rewrite ^/(. *) $ http://www.bkjia.com/#1 permanent;Proxy_set_header Host "www.2cto.com ";}...}
You can change the domain name to yours. Note the following two points:
1. permanent: This is the key, indicating permanent orientation;
2. The role of the following code:
Proxy_set_header Host "www.2cto.com ";
This code can be added, but the effect is different. If 2cto.
REM file name set DNS name server address Bat batch script file. batREM Use set the DNS name server address for the wireless network connectionnetsh interface ip add DNS "Wireless network connection" 8.8.8.8netsh interface ip add DNS "Wireless network connection" 8.8.4.4nets
1. Enter
C:\Windows\System32\drivers\etc
Open File Hosts file add
127.0.0.1 blog.com
2. Enter the Apache configuration file
F:\xampp\apache\conf\extra
Open File httpd-vhosts.conf add "f:/www" ServerName blog. COM View CodeNote: 1, namevirtualhost *:80 Front # to remove2, set up after the need to restart XmappHow to set
A record
Quote:The A (Address) record is used to specify the IP address record corresponding to the Host Name (or domain name. You can direct the website server under this domain name to your web server. You can also set a subdo
Tag: Address Web server port Create DDE Environment Multi-site pre profilepache是一款Web服务器软件,有多种产品,可以支持SSL技术,支持多个虚拟主机。它快速、可靠并且可通过简单的API扩充,将Perl/Python等解释器编译到服务器中。实验环境一台linux6.5,ip为192.168.10.20.,DNS服务器ip地址为192.168.10.20;一、创建虚拟目录配置1、进入主配置文件设置2、写入网页内容3、去访问网页4、创建虚拟目录5、使用http://192.168.10.20/test/进行访问二、搭建虚拟主机同端口同Ip不同域名1、创建文件写入内容2、创建网站目录写入内容3、安装DNS并设置主配置文件4、区域数据文件设置5、进入区域数据配置相关目录6、重启服务7、指出DNS服务器地址8、登陆网页进行验证三、搭建同ip同域名不同端口1、复制模板,修改端口号2、修改Apache主配置文件3、重启服务4、验证Apache Service
1. Path:/etc/nginx/nginx.conf and/ETC/NGINX/CONF.D,In fact, only/etc/nginx/nginx.conf this one configuration file, because in nginx.conf, other configuration files can be used by the include directive • introducedSome configuration files:Server {Listen the; server_name test.net; Root/var/www/test; #include none.conf; #error_page404/404. html; Location~ [^/]\.php (/|$) {include fastcgi_params; Fastcgi_pass127.0.0.1:9000;
Files: httpd.conf@ Open Virtual Hosts# Virtual HostsInclude conf/extra/httpd-vhosts.confFiles: httpd-vhosts.conf@ Configure a virtual hostDocumentRoot "E:/www/pz"ServerName to.pz.comOptions Indexes FollowSymLinksAllowOverride AllOrder Deny,allowAllow from allRequire all grantedErrorlog "Logs/dummy-host.example.com-error.log"Customlog "Logs/dummy-host.example.com-access.log" common@ Modify Host127.0.0.1 to.pz.comWampserver set Web site file path, virtu
Currently Linux operating system is very hot, so many friends want to know about Linux under the virtual domain name implementation process. The following is based on the current more popular Redhat to discuss. First, DNS server settings
We know that the Internet is based on TCP/IP protocol, to communicate must obtain
;
File "173.16.16.arpa"; Set up the corresponding reverse zone address database file
};
Check that the primary configuration file is correct:
Named-checkconf/var/named/chroot/etc/named.conf
3.) Zone Database configuration file
Typically includes configuration items: $TTL (Lifetime) records, SOA (authorization information) records, address resolution Records
Use a unit in a record item
M (minutes), H (Time), W (weeks), D (days)
Common records
Linux can ping IP but cannot ping host domain name resolution reprinted December 25, 2013 10:24:27 13749.vi/etc/nsswitch.confhosts:files Dnsnetworks:files changed to: hos Ts:files DNS Winsnetworks:files if not the same, in the hosts: the original line after the addition of a wins on the line. -----------------------------------------------------------------------
types are as follows.Cache Name server: only provide the cache function of domain name resolution results, in order to improve the query speed and efficiency, but do not have their own control of the zone address data, when building a cache name server, you must set the roo
In linux, the domain name resolution system settings-Linux Enterprise Application-Linux server application information are as follows. ① Introduction
DNS is the Domain Name System, whi
The simplest of
Namevirtualhost *
ServerName Rashost.com/blogDocumentRoot "c:/wamp/www/vpsblog/" above the configured site is vpsblog.rashost.com/, the site corresponding to the directory is "c:/wamp/www/vpsblog/", Site name and directory name you must, of course, set your own needs.
Cases
1. Sample binding:
IP address 192.168.1.100correspond to two domains
Linux Red hat 5 DNS server (I) domain name cache server, hatdnsDetailed setup of multiple experiments on Linux Red hat 5 DNS server
Required software packages:
› Bind-9.3.3-7.el5.i386.rpm
› Provide main programs and related documents
› Bind-utils-9.3.3-7.el5.i386.rpm
› Provides dns server testing tools (such as nsl
zone file5. Modify Permissionschmod 777 /var/named/nginxtest.com.zone6. Test the named.conf master configuration file7. Test the zone file8. Configure the DNS client configuration fileVim/etc/resolv.conf192.168. 124.129 192.168. 124.29. Start the DNS serverSystemctl daemon-Reload systemctl start namedsystemctl status named10. Test the DNS serverPrimary test methods for DNS serversMore comprehensive testing of DNS servers using specialized tools such as Nslookup, Dig, and hostThe nslookup comma
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.