Received: (qmail 86162 invoked by uid 65534); 16 Jan 2000 03:17:22 -0000 Message-Id: <20000116031722.86161.qmail@locus.apache.org> Date: 16 Jan 2000 03:17:22 -0000 From: Jelle Kok Reply-To: jmkok@p23.dyndns.org To: submit@bugz.apache.org Subject: 36 hour IP change AND name based virtual host X-Send-Pr-Version: 3.110 >Number: 5595 >Category: general >Synopsis: 36 hour IP change AND name based virtual host >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: apache >Arrival-Date: Sat Jan 15 19:20:00 PST 2000 >Closed-Date: Tue Sep 12 09:35:55 PDT 2000 >Last-Modified: Tue Sep 12 09:35:55 PDT 2000 >Originator: jmkok@p23.dyndns.org >Release: v1.3.6-7 >Organization: >Environment: Linux Kernel 2.2.5-15 RedHat Distribution v6.0 Linux server.p23.dyndns.org 2.2.5-15 #1 Mon Apr 19 21:39:28 EDT 1999 i486 unknown >Description: Description: Every 36 hours we get a new IP adress. The "NameVirtualHost" is NOT defined with an IP adress because it's a dynamical IP adress (it's defined as shown below). We have 3 domain names to be served. Problem: At startup Apache makes a DNS lookup of our domain name and finds the IP adress of the internet connection (ppp0). Everything works fine (perfect). Provider gives us new IP adress. Our 3 domain names get updated. Apache only serves virual hosts for old IP adress. >How-To-Repeat: [/etc/httpd/conf/httpd.conf] (only a piece of it) NameVirtualHost p23.dyndns.org ServerName server DocumentRoot /home/httpd/html ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ >Fix: Can the "NameVirtualHost" have an extra setting it looks at a mask of addresses, or maybe even better a device (/dev/ppp0). Or can it only be in virtual mode with a default server (= no definition of servername in main part of file). say: NameVirtualHost 130.161.33.15/255.255.0.0 NameVirtualHost /dev/ppp0 NameVirtualHost * OnlyVirtualHosts On >Release-Note: >Audit-Trail: From: vsolve apache To: jmkok@p23.dyndns.org, submit@bugz.apache.org Cc: apbugs@Apache.Org Subject: Re:general/5595: 36 hour IP change AND name based virtual host Date: Tue, 18 Jan 2000 05:44:47 -0800 (PST) Hi, We can solve this problem by either Name Based Virtual Address or IP-Based Virtual Address Name Based Virtual Address: By repeating the "NameVirtualHost " directive for each domain names/address. In your httpd.conf file do the following changes: .......... ........ NameVirtualHost server ServerName server DocumentRoot /home/httpd/html NameVirtualHost p23.dyndns.org ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ NameVirtualHost youcom.dyndns.org ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ NameVirtualHost kentaur.dyndns.org ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ ........ ......... For more information refer the apache document: http://.../manual/mod/core.html#namevirtualhost 2. IP-Based Virtual Address: By removing the NameVirtualHost directive we make it as IP-Based Virtual Address: ie., ....... ....... #NameVirtualHost p23.dyndns.org ServerName server DocumentRoot /home/httpd/html ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ ....... ....... And make sure the DNS entries for the above domain names. Any more clarification you needed, let us know. regards, vsolve_apache visolve dot com >Number: 5595 >Category: general >Synopsis: 36 hour IP change AND name based virtual host >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Sat Jan 15 19:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: jmkok@p23.dyndns.org >Release: v1.3.6-7 >Organization: apache >Environment: Linux Kernel 2.2.5-15 RedHat Distribution v6.0 Linux server.p23.dyndns.org 2.2.5-15 #1 Mon Apr 19 21:39:28 EDT 1999 i486 unknown >Description: Description: Every 36 hours we get a new IP adress. The "NameVirtualHost" is NOT defined with an IP adress because it's a dynamical IP adress (it's defined as shown below). We have 3 domain names to be served. Problem: At startup Apache makes a DNS lookup of our domain name and finds the IP adress of the internet connection (ppp0). Everything works fine (perfect). Provider gives us new IP adress. Our 3 domain names get updated. Apache only serves virual hosts for old IP adress. >How-To-Repeat: [/etc/httpd/conf/httpd.conf] (only a piece of it) NameVirtualHost p23.dyndns.org ServerName server DocumentRoot /home/httpd/html ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ >Fix: Can the "NameVirtualHost" have an extra setting it looks at a mask of addresses, or maybe even better a device (/dev/ppp0). Or can it only be in virtual mode with a default server (= no definition of servername in main part of file). say: NameVirtualHost 130.161.33.15/255.255.0.0 NameVirtualHost /dev/ppp0 NameVirtualHost * OnlyVirtualHosts On __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From: vsolve apache To: jmkok@p23.dyndns.org, submit@bugz.apache.org Cc: apbugs@Apache.Org Subject: Re:general/5595: 36 hour IP change AND name based virtual host Date: Tue, 18 Jan 2000 05:44:47 -0800 (PST) Hi, We can solve this problem by either Name Based Virtual Address or IP-Based Virtual Address Name Based Virtual Address: By repeating the "NameVirtualHost " directive for each domain names/address. In your httpd.conf file do the following changes: .......... ........ NameVirtualHost server ServerName server DocumentRoot /home/httpd/html NameVirtualHost p23.dyndns.org ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ NameVirtualHost youcom.dyndns.org ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ NameVirtualHost kentaur.dyndns.org ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ ........ ......... For more information refer the apache document: http://.../manual/mod/core.html#namevirtualhost 2. IP-Based Virtual Address: By removing the NameVirtualHost directive we make it as IP-Based Virtual Address: ie., ....... ....... #NameVirtualHost p23.dyndns.org ServerName server DocumentRoot /home/httpd/html ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ ....... ....... And make sure the DNS entries for the above domain names. Any more clarification you needed, let us know. regards, vsolve_apache visolve dot com >Number: 5595 >Category: general >Synopsis: 36 hour IP change AND name based virtual host >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Sat Jan 15 19:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: jmkok@p23.dyndns.org >Release: v1.3.6-7 >Organization: apache >Environment: Linux Kernel 2.2.5-15 RedHat Distribution v6.0 Linux server.p23.dyndns.org 2.2.5-15 #1 Mon Apr 19 21:39:28 EDT 1999 i486 unknown >Description: Description: Every 36 hours we get a new IP adress. The "NameVirtualHost" is NOT defined with an IP adress because it's a dynamical IP adress (it's defined as shown below). We have 3 domain names to be served. Problem: At startup Apache makes a DNS lookup of our domain name and finds the IP adress of the internet connection (ppp0). Everything works fine (perfect). Provider gives us new IP adress. Our 3 domain names get updated. Apache only serves virual hosts for old IP adress. >How-To-Repeat: [/etc/httpd/conf/httpd.conf] (only a piece of it) NameVirtualHost p23.dyndns.org ServerName server DocumentRoot /home/httpd/html ServerName p23.dyndns.org DocumentRoot /home/httpd/html/p23/ ServerName youcom.dyndns.org DocumentRoot /home/httpd/html/youcom/ ServerName kentaur.dyndns.org ServerAlias kentaur.myip.org DocumentRoot /home/httpd/html/kentaur/ >Fix: Can the "NameVirtualHost" have an extra setting it looks at a mask of addresses, or maybe even better a device (/dev/ppp0). Or can it only be in virtual mode with a default server (= no definition of servername in main part of file). say: NameVirtualHost 130.161.33.15/255.255.0.0 NameVirtualHost /dev/ppp0 NameVirtualHost * OnlyVirtualHosts On __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Tue Sep 12 09:35:55 PDT 2000 State-Changed-Why: A feature has been added to fix this problem. It'll be available in the next release. Thanks for using Apache! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]