The example in this article describes Java's approach to obtaining domain name IP addresses. Share to everyone for your reference. as follows:
Import java.net.InetAddress;
Import java.net.UnknownHostException;
public class Testinetaddress {inetaddress myipaddress = null;
inetaddress[] MyServer = null;
public static void Main (String args[]) {testinetaddress address = new testinetaddress ();
System.out
1. Create two domain name sites in advance
Separate the web1s and web2s, and separate the main pages web1.html and web2.html;
2. Enable httpd-vhosts.conf In the httpd. conf file
Remove #, that is
# Virtual hosts (virtual host) include CONF/extra/httpd-vhosts.conf
3. Set the http-vhosts.conf file (Path: X:/apachex. X/CONF/extra/http-vhosts.conf)
Add the following content:
# Configure the virtual host *: 80>DocumentRoot "D:/web1"Servername www.ayee1.com
1.Open with Notepad in C:\Windows\System32\drivers\etc\hosts--Add statement at the end of the file:#google_android更新203.208.46.146 dl.google.com203.208.46.146 dl-ssl.google.comOr new "associated Google domain name and ip.bat" file, the file content is as follows# affiliate Google domain with IP#set path=c:\windows\system32\drivers\etc\hostsecho #google_android更新-
Linux Web server (ii)1: Build a domain-based virtual hostFirst, set up a DNS server for two sites, and create a new zone, respectively: Www.goole.com and www.baidu.com2) Modify the configuration file3) Modify the data file4) Restart the DNS service5) Build Two websites6: Preparing the Web page7) Open the virtual host configuration file, modify the configuration file8: Add the following content9) Modify the master configuration file to enable the virtu
I just don't know how to make the two domain names correspond to the same IP address and then identify different websites? NameVirtualHost12.34.56.78 # youripaddressVirtualHost12.34.56.78ServerNameyourname1DocumentRoot
I just don't know how to make the two domain names correspond to the same IP address and then identif
Recently in the forum to see someone asked how Linux set only allow domain name access to the site and prohibit IP access to the site, before they have used this function, you can prevent others to use IP address to visit their own site, below I have my own environment to give a solution, I use Oneinstack A key package, LANMP environment, in fact, are not too muc
Provides various official and user-released code examples. For code reference, you are welcome to learn about the weather, online computing, Domain Name Information Query, ip address attribution, and mobile phone number attribution.
At this point, the interfaces provided on the http://api.ajaxsns.com/have basically been completed by me. Record the remaining interface calls.
The Code is as fo
Recently help people with Apache+tomcat on the same IP server set up multi-domain to point to different sites, it took a lot of time. Especially when the configuration information, from the Internet to find a lot of information is wrong, mistakenly recognized not shallow. So write it down today for later use.First of all, I need to say that: Apache as a front-end distributor, the content of the
To enable users to access the site only through the domain name, prohibit the use of IP access, you can add the following code in the httpd.conf configuration file:ServerName 192.168.1.58Order Allow,denyDeny from alldocumentroot/var/www/html/ServerName www.alex.comThe first part: When the user enters IP 192.168.1.58来 Access Direct DenyThe second part: When the us
Friends who often use Remote Desktop Connection will find that the remote IP address or domain name for successful connection is recorded every time during the Remote Desktop Connection, and the information is displayed in the drop-down menu of the connection address input box. In this way, the Remote Desktop Connection is convenient, but security risks are also added.
Next we will teach you how to delete
First mark an error, domain.h the book in the Netinet directory, but my this is under the Sys.All domain forms linked lists, which are indicated by the global variable domainsstruct domain {int dom_family;/* af_xxx */char *dom_name;void (*dom_init)//Initialize domain data structures */__p ((void));Int (*dom_externalize)/* externalize access rights */__p ((struct
In redhatlinux, IP addresses can be pinged, and domain names cannot be pinged at/etc/resolv. the format of the vertex added in conf is as follows: nameserverxxx. xxx. xxx. xxxnameserverxxx. xxx. xxx. the IP address after xxx is the address of the dns server. you can add multiple addresses such as name... in redhat linux, IP
Modify IP under Linux
Vi/etc/sysconfig/network-scripts/ifcfg-eth0Modify:Ipaddr=ip Addressnetmask= Subnet Maskgateway= Gateway AddressSave exit: Wq
Linux Add domain name resolution
Vi/etc/resolv.confAdd to:NameServer DNS server addressFor example:NameServer 8.8.8.8Save exit: WqIfup eth0 turn on the network card (this example is the first NIC)Service Netw
This approach is the most effective.Windows Winsock damage, will cause can ping the outside network IP, using the nslookup command can resolve the domain name, but Ping does not pass the situation of the extranet domain name.Search on the Internet, found that some netizens said it was caused by the Microsoft patch, uninstall the patch on it, or require 360 first
Network reference: http://topic.csdn.net/u/20080423/15/4bbf1e34-7419-44e2-96d1-dfa29300d2be.html
Recently, I have been learning about WCF and have been confused about address issues. I use IIS as the host. Assume that the server address is 10.8.8.8, the server host name is mycoputer, And the. SVC file address is http: // localhost/WCF/service. SVC.Access http: // localhost/WCF/service. SVC on the server. The help page appears, prompting me to useSvcutil.exe http: // mycoputer/WCF/service. SVC?
Write a summary note and let yourself know how to deploy it later.First Apache version is 2.4.7, then the system is Ubuntu 14.04.1 LTS. (as if the configuration file and directory are different)First go into the apache2 directory,We are going to explore the main sites-available and sites-enabled according to the literal meaning that the previous one is available for the site, and the latter one is available for the site, and then we also know that Sites-enabled inside the file is sites-available
Bitnami-gitlab version: 7.14.3Because the IP configured at installation is 127.0.0.1, the project address created is [email protected]:xxx.git, which is inaccessible to others, and also causes the Gitlab user's avatar to be displayed.Workaround:1. Go to the installation directorycd/opt/gitlab-7.14. 3-0/apps/gitlab/htdocs/config/vi GITLAB.YML2. Change the host under the Gitlab node to the corresponding ip/
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.