The way I understoof the apache config file was, the first entry of all your virtual hosts is what takes presedence when a user connects to the web server. So if your first entry that apache reads on startup is for the 10.9.10.212 virtualhost you have below, then ANY address you type in your browser that resolves to that IP will get that virtual host site - unless it's defined below the 10.9.10.212 virtual host entry.
For example: <VirtualHost *:80> ServerName www.example.com ... More virtualhost data ... </VirtualHost> <VirtualHost *:80> ServerName wiki.example.com ... More virtualhost data ... </VirtualHost> <VirtualHost *:80> ServerName 10.9.10.212 ... More virtualhost data ... </VirtualHost> Now, if someone types any of the "ServerName" addresses in their web browser, and connect to the web server running that virtualhost config, they will connect to any of those 3 sites. Now, if they type (for example) crm.example.com, if you have a DNS entry for crm.example.com that resolves to the same web server as www.example.com, because there's no virtualhost info FOR crm.example.com, you'll actually receive the virtualhost entry for www.example.com - because it's the defualt site that apache serves in that config file. Now, where things can really get tricky and confusing, is if you use external config files for virtual hosts, and still append virtualhost data to httpd.conf. It appears from your statement below that you are using external config files that get called by httpd.conf. So what I suggest, is you copy one of your virtualhost files to a new name (like wiki.conf or something) inside your /etc/httpd/conf.d directory, and then edit it accordingly, and then restart/reload the httpd process. Hope this helps. Rick Payton, I.T. Manager Morikawa & Associates, LLC (808) 572-1745 Office (808) 442-0978 eFax www.mai-hawaii.com -----Original Message----- From: mediawiki-l-boun...@lists.wikimedia.org [mailto:mediawiki-l-boun...@lists.wikimedia.org] On Behalf Of Shannon Adams Sent: Thursday, February 19, 2009 6:28 AM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] MediaWiki Apache Confusion I am in the process of migrating my existing MediaWiki installation over to a new server running CentOS 5.2. I have the following installed on the new server: MediaWiki 1.13.4 PHP 5.1.6 MySQL 5.0.45 MediaWiki is installed under /var/www/html/intranet. The full URL to the main page on the old site is http://intranet.company.com/wiki-it/index.php/Main_Page. The new one should be same except for intranet2.company.com... I am using another application on this server that uses apache. When I browse to http://intranet2.company.com/wiki-it/index.php/Main_Page, it brings up the other application. I have the following in my /etc/httpd/conf.d/perl.conf file: <VirtualHost 10.9.10.212> ServerName rtnew.company.com ServerAdmin sad...@company.com DocumentRoot /opt/rt3/share/html AddDefaultCharset UTF-8 PerlRequire /opt/rt3/bin/webmux.pl <Directory /opt/rt3/share/html> Order allow,deny Allow from all SetHandler perl-script PerlResponseHandler RT::Mason </Directory> </VirtualHost> Do I need to add to this file or create a new conf file under /etc/httpd/conf.d so that my new MediaWiki page comes up (http://intranet2.company.com/wiki-it/index.php/Main_Page)? What needs to go in there? Thanks for any help. Shannon _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l