Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have designed name based virtual hosting in apache. as of now, I am able to access website using IP also. which is I am looking to block, only can access by the name.
Well you can't stop it at *every* level, but if you just create another dummy virtualhost *ABOVE* the proper one then that will e used as the default site (i.e. when no name is provided) and that site can just be a denial page or something.
Thanks for the reply. most of the places, I have seen that multiple website hosted on same server. and if try to access from an IP, it does not work.
I have configured the same structure, but I do also able to access the website. so looking to prevent the website access from IP.
Thanks for the reply. most of the places, I have seen that multiple website hosted on same server. and if try to access from an IP, it does not work.
I have configured the same structure, but I do also able to access the website. so looking to prevent the website access from IP.
'it does not work' is very broad; can you be more specific?
If I ping my domain (hosted at a hosting provider), I get 74.53.231.98
If I enter that in the address bar, I don't get my domain but a page that says
Quote:
This is the Plesk™ default page
If you see this page it means:
1) hosting for this domain is not configured
or
2) there's no such domain registered in Plesk.
For more information please contact Administrator.
That page just as well could have been an empty page, but is definitely not my website.
If that is what you want, follow acid_kewpie's advise. Else give an example of an ip address that we can check.
Now, when I am accesing website through abc1.abc.com, it accesses page abc1.html
and accessing through abc2.abcd.com , it accesses page abc2.html.
the problem is, when I am accessing through IP(192.168.0.1), able to access of the domain of abc1.abc.com. I am looking if i do access using IP, it should be work.
Modify the bold block to your needs. Make an index.html page (in catchip.html) saying something like '!! error !!'. A request for the IP address (or e.g. abc3.com) will end up showing '!! error !!'.
Last edited by Wim Sturkenboom; 08-19-2011 at 12:53 AM.
Wim Sturkenboom, you are correct. I am not looking to access using website.
the problem is, when I am accessing through IP(192.168.0.1), able to access of the domain of abc1.abc.com. I am looking if i do access using IP, it should be work.
Dude, you *REALLY* need to pay attention to the advice you are given. We all know EXACTLY what you mean. Instead of just asking your question repeatedly, READ the replies you've already got.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.