Test your NameVirtualHost setup from the local box using links and some simple /etc/hosts aliases to make sure that everything points to 127.0.0.1. That address shouldn't change :-) Once you're sure you've done virtual hosts right, then you can get into the address change. The default Apache install on MDK has no issues with dynamic IPs in my experience, and there's no need to be messing with Rewrites, so chances are good you don't have virtuals done right. Post your /etc/httpd/conf/vhosts/Vhosts.conf and maybe something obvious will crop up.
Jack On Sun, 2003-01-05 at 08:34, Molotov wrote: > > Hello everybody > > Sorry for this kind of OT.. my question is not really mandrake-specific, > but may be related (or not) to the mdk 9.0 apache package. > > I encounter difficulties with virtual host settings. In fact, I'm trying > to host a domain at home, with a DSL line and a dynamic IP. > So, I have a redirector which is quite always up-to-date: > mysystem.dyndns.org > I have set up what I think is a correct DNS with CNAMEs, like: > www.mydomain.com IN CNAME mysystem.dyndns.org. > mydomain.com IN MX mysystem.dyndns.org. > The mail server works all right with this - I can receive mails sent to > [EMAIL PROTECTED] > > My problem is that I want Apache to serve different contents if it is > called with www.mydomain.com, mysub.mydomain.com, or > my.internal.ip.adress. > I have set up a firewall (Smoothwall), with a normal LAN and a DMZ > (where the web server is). > > I tryed allmost everything I can with directives like NameVirtualHost, I > even tryed mod_rewrite as suggested on apache.org: nothing. > Every way I call the server, I allways get the same content (the default > one). I think it may be related to the dyndns cname, but at this time > I'm quite lost with this. > > If somebody has an idea of what I should do, it will be very welcomed ! > > TIA > > Francois > > > ---- > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Jack Coates Monkeynoodle: A Scientific Venture...
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com