Two separate domains - and files
I've been asked to 'troubleshoot' a webserver where two different TLDs are being served. Or to be more accurate, 'domain.com' and 'domain.fr'.
So we have
And then for some reason, the httpd.conf file points to two different configuration files.
And then in there, there are Virtualhost stuff, and what else, I don't know.
It's a bit of a dog's breakfast.
Anyway, to cut a long story short, when someone points at domain.com, he gets to domain.com, but when someone points to domain.fr, he still goes to domain.com.
So something's wrong. But the whole thing is such a mess, that I don't even know where to start. Can someone give me some tips?
Show the conf:
The Apache web server allows one to configure a single computer to represent multiple websites as if they were on separate hosts. There are two methods available and we describe the configuration of each. Choose one method for your domain:
A virtual host configuration allows one to host multiple web site domains on one server. (This is not required for a dedicated linux server which hosts a single web site.)
ServerName www.your-domain.com - CNAME (bind DNS alias www) specified in Bind configuration file (/var/named/...)
ServerAlias your-domain.com - Allows requests by domain name without the "www" prefix.
Last edited by DGPickett; 02-26-2013 at 04:23 PM..
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Using bash to separate files files based on parts of a filename||Breentax||Shell Programming and Scripting||1||07-19-2012 01:22 AM|
|Divide data into separate files||dodasajan||Shell Programming and Scripting||6||04-12-2012 04:59 AM|
|Need to find occurrences of email domains in all files in a directory||linuxhombre||Shell Programming and Scripting||4||10-15-2009 01:39 PM|
|Comparing Counts Within Separate Files||gator76||Shell Programming and Scripting||2||01-09-2008 02:53 PM|
|How to separate 0kb files from the rest!!!||kumarsaravana_s||Shell Programming and Scripting||3||04-02-2007 08:38 AM|