Everyone, server IP by others domain name resolution how to block

Source: Internet
Author: User
Tags website ip
Ask for help, server IP by others domain name resolution how to block?
Now encountered a problem to ask everyone to help, recently my website IP was another domain name resolution and can access, how can we stop other domain name resolution I stand IP,, I query some information, said the host head can solve this problem, how do you configure it, or there are other methods? I hope to be more detailed, take care of me this beginner. I use Apache server,! Thank you, not enough to add!

------Solution--------------------
Add Virtual Host development servername

Default host put an ad hehe white traffic
------Solution--------------------
Google is more than a post here to come fast
------Solution--------------------
ServerName the server name. It is used to create a redirect to the URL. ServerName is one of the tokens of the Apache server itself that identifies the access request and does not have to match the actual IP or DNS name. You can also not set, if so, then Apache will try to use IP as the token of the request. The port can also not be set.
Example: ServerName www.example.com:80

Change httpd.conf file
------Solution--------------------
Can modify the httpd.conf file, you have to feel trouble, you can also use PHP, or JS, because most of the files on your site will be loaded with a configuration file, such as in the configuration file add
if ($_server[' server_name ']!= ' your website domain name ')
{
echo "Can't access me like this";//Do something
Exit
}
?>
------Solution--------------------
Rewrite the domain name and rewrite it to your domain name instead of your own domain name.
------Solution--------------------

ServerName *******
DocumentRoot/Advertising/

------Solution--------------------
Is it not good for someone to connect to your console? If 100W people help me, I'll send it.
------Solution--------------------
6 floor of the good realization ....
------Solution--------------------
An IP-bang multi-domain

Modify Httpd.conf

1. Put the previous

......

Delete

2. On the last side of httpd.conf, join
Namevirtualhost your IP

3. Bind the domain name and add it to the last httpd.conf

DocumentRoot Your Site Directory
ServerName your domain


Bind a 2nd domain name

DocumentRoot Your Site Directory
ServerName your domain 2


4. Restart Apache after saving



------Solution--------------------
An IP-bang multi-domain

Modify Httpd.conf

1. Put the previous

......

Delete

2. On the last side of httpd.conf, join
Namevirtualhost your IP

3. Bind the domain name and add it to the last httpd.conf

DocumentRoot Your Site Directory
ServerName your domain


Bind a 2nd domain name

DocumentRoot Your Site Directory
ServerName your domain 2


4. Restart Apache after saving
========================
Study.
------Solution--------------------
This reply is issued automatically, only for display, and has no other special effect
The historical summary data of the landlord "Fangjj" ending to 2008-06-26 21:50:11 (excluding this post):
Posts: 27 Posts points: 1300
Knot count: 14 Knot points: 650
Open: 13 Non-split: 650
Knot rate: 51.85 percentage point: 50.00
Landlord Refueling
------Solution--------------------
discuss
Is it not good for someone to connect to your console? If 100W people help me, I'll send it.
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.