Forum Moderators: phranque
We've got an organization with Windows servers, and so Apache's running on Win32 on web server *.*.162.2 called newname and the web address is newname.example.com.
We have our old web server which now serves as network server *.*.162.1 and is called old-name, and the previous web address was old-name.example.com.
The new address is preferred and I have tried rewriting old-name to newname, but it appears that since *.*.162.1 is linking to *.*.162.2 through some firewall, the IP addresses in access log are masked, and I guess so is the request, since the rewrite doesn't work. I tried rewriting all requests in httpd.conf to newname.example.com, but it falls in a loop (internal server error).
Network admin says both old-name and newname are domain controllers, and he can't change old-name to newname, as the whole network of hundred-some computers (seeing old-name) would stop working. I'm not familiar with this domain controller thing, but the problem is old-name.example.com is still active and I want a 301 redirect/rewrite. Apache is so flexible with urls, and I bet there's a workaround for this shortcoming of windows configurations here.
Sina
This means you'll have a Web server on old-name-server whose only function is to redirect to new-name, and you may have to remind everyone from time to time that it needs to be kept in place until *all* links to old-name are changed to new-name. That usually means the redirect will need to be kept in place forever.
Jim
To prevent this from happening again, do not use the company-standard domain name for the new server, since obviously, the system admin and his group feel that they can take it away from you (for their own reasons) and may do so again. Use a unique new name instead, and have the DNS set up to route it. In this way, you can change the DNS to point to a new IP address any time you like. All you'll need is the permission/capability to add and modify the DNS settings. DNS is what maps domain names to IP addresses, so you use your own domain name to avoid having the name taken away, and if the IP address of the server needs to change, you just change the DNS record.
Jim