Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

virtualhost and dynamic ip

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
im trying to configure apache with virtualhost

the router get everydy new address IP and my server is runnig
on ip 192.168.2.33
my domaine is
how can i configure my server so if someone tape he will be directed to my server
i did the following

<VirtualHost 192.168.2.34 217.235.1.68>
servername DocumentRoot /usr/local/httpd/htdocs/mypage
</VirtualHost>

it's not the best way because the address changes.

thanks for help.
eliap
 
You can use any of the dns pointer services mentioned above. What happens is you sign up with a pointer service and have your domain name assigned to their dns server's ip. Your server will keep their servers updated with the latest ip and when a request comes in for your domain, it gets sent on to your new ip address. You will set your server to listen to ALL ip adddresses on ALL ports (in case 80 is blocked by your isp). As far as virtual hosts go, I'm not sure if that will work with most of the dns pointer services out there without buying extra services which may have a cost assoiciated with it. Good luck.
 
You will set your server to listen to ALL ip adddresses on ALL ports (in case 80 is blocked by your isp)

There is NO reason to do this. It is totally pointless.

As far as virtual hosts go, I'm not sure if that will work with most of the dns pointer services out there without buying extra services which may have a cost assoiciated with it.

Dns2Go will work with as many as your require, it just forwards all requests to your server.

Hope this helps Wullie

 
Pointless my foot :eek:) If he has a dynamic ip, his ip changes all the time. If he tells httpd to listen for another ip it won't answer to the one he last entered into httpd.conf. Many ISPs also block port 80 so if he tells httpd to only listen on port 80, it ain't gonna hear much. Setting his namebased virtual host to &quot;*&quot; would not be pointless in this case - do I hear an AMEN?
 
Hi mate,

There is no reason to include your ip in your httpd.conf.

If your isp blocks one port, then set up port forwarding and change the port that apache listens to.. If you only have one port that the domains are pointing to, then why set all ports to listen? The namebased virtualhost * does not tell apache to listen to any port other than you have specified in either the PORT or LISTEN options.

I never said to set apache to listen on port 80.. Use 8080..

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top