I installed a content management system today (MySource) that required me to add some code to my httpd.conf file.
I added the following to my mysource.transwarphosting.net.conf file:
<VirtualHost 207.150.160.100>
ServerAdmin webmaster@transwarphosting.net
DocumentRoot “/home/mysource/mysource.transwarphosting.net/html/home/web”
ServerName mysource.transwarphosting.net
SetEnv MySource_LogVisitors on
<Directory “/home/mysource/mysource.transwarphosting.net/html/home/web”>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory “/home/mysource/mysource.transwarphosting.net/html/home/squizlib”>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory “/home/mysource/mysource.transwarphosting.net/html/home/data/unrestricted”>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AliasMatch “^(/.)?/__lib(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/web/__lib$2”
AliasMatch “^(/.)?/__squizlib(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/squizlib$2”
AliasMatch “^(/.)?/__data(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/data/unrestricted$2”
Any HTTP request made at this domain followed by ‘/_edit’
will open the editing interface for that site, page etc.
AliasMatch “^(/.)?/_edit(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/web/edit$2”
Any other HTTP request made at this domain gets handled
by the MySource web frontend controller script.
AliasMatch “^(/.*)?$” “/home/mysource/mysource.transwarphosting.net/html/home/web/index.php”
Example alternative at a particular subdirecory of this domain:
#AliasMatch “^/path/to/mysource/section(/.)?/__lib(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/web/__lib$2”
#AliasMatch “^/path/to/mysource/section(/.)?/__squizlib(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/squizlib$2”
#AliasMatch “^/path/to/mysource/section(/.)?/__data(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/data/unrestricted$2”
#AliasMatch “^/path/to/mysource/section(/.)?/_edit(.)$” “/home/mysource/mysource.transwarphosting.net/html/home/web/edit$2”
#AliasMatch “^/path/to/mysource/section(/.*)?$” “/home/mysource/mysource.transwarphosting.net/html/home/web/index.php”
</VirtualHost>
When I restarted httpd I got the following:
[root@centos root]# service httpd reload
Reloading httpd: [ OK ]
[root@centos root]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Nov 08 21:38:34 2004] [error] VirtualHost 207.150.160.100:0 – mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[ OK ]
[root@centos root]#
Apache restarted, so I guess this error isn’t a biggie but it’s kinda odd. Can anybody tell me what it means?