This is a discussion on IP/Hostname Virtual Host within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, Is there a way I can create a virtual host based on a DYNAMIC IP and hostname? In other ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
Is there a way I can create a virtual host based on a DYNAMIC IP and hostname? In other words, I want to redirect people who connect to my site with my IP address (e.g. http://62.252.64.3) or its hostname (e.g. http://a553e3.25sv543ca.myisp.com). If you are curious to know why I want this, the reason is that I only want people who know my domain to access my Web site, and to restrict access to those who lookup my IP or hostname on IRC, IM, etc. I know how to create virtual hosts, but my problem is that my IP/hostname is dynamic so it changes. If this is done without virutal hosts, please let me know, because I can't think of anything else. Thank you. |
|
|||
|
keseko <keseko2000@yahoo.com> wrote:
> Is there a way I can create a virtual host based on a DYNAMIC IP and > hostname? And how do you plan to distinguish the various Virtual Hosts then? If you point your browser to http://the.ip.address.here/ you'll get everytime the same VHost. If you just need to have your system available, just do not specify a ServerName in the general part of the httpd.conf and you'd be ready to roll. Davide |
|
|||
|
https://www.dyndns.org/account/index.html
here is your fix :) just set up a domain .. set default server to redirect to some other site. ex. myircsite.kicks-ass.net will go to site A. you tell the ppl who you want to go to your site the url. anyone looking up your ip or isp's domain will not go to that site, but will go to the default web site. which you can redrect to anywhere you want. "keseko" <keseko2000@yahoo.com> wrote in message news:49c39d61.0307141006.3f039646@posting.google.c om... > Hello, > > Is there a way I can create a virtual host based on a DYNAMIC IP and > hostname? In other words, I want to redirect people who connect to my > site with my IP address (e.g. http://62.252.64.3) or its hostname > (e.g. http://a553e3.25sv543ca.myisp.com). If you are curious to know > why I want this, the reason is that I only want people who know my > domain to access my Web site, and to restrict access to those who > lookup my IP or hostname on IRC, IM, etc. > > I know how to create virtual hosts, but my problem is that my > IP/hostname is dynamic so it changes. > > If this is done without virutal hosts, please let me know, because I > can't think of anything else. > > Thank you. |