[thelist] Problem with Ports based vhost on Apache/OS X
Anthony Baratta
Anthony at Baratta.com
Tue Jun 11 13:47:00 CDT 2002
Adrian...
I used name based virtual hosting instead I find it a ton easier to manage.
I setup a hosts table like this:
local.domainOne.com 192.168.1.100
local.domainTwo.com 192.168.1.100
local.domainThree.com 192.168.1.100
Then with apache I setup this:
NameVirtualHost 192.168.1.100
<VirtualHost 192.168.1.100:80>
ServerAdmin root at foo.com
ServerName local.domainOne.com
DocumentRoot /web/sites/domainOne
ScriptAlias /cgi-bin/ "/web/sites/domainOne/cgi-bin/"
ErrorLog /web/apache/logs/domainOne-error.log
CustomLog /web/apache/logs/domainOne-access.log common
</VirtualHost>
<VirtualHost 192.168.1.100:80>
ServerAdmin root at foo.com
ServerName local.domainTwo.com
DocumentRoot /web/sites/domainTwo
ScriptAlias /cgi-bin/ "/web/sites/domainTwo/cgi-bin/"
ErrorLog /web/apache/logs/domainTwo-error.log
CustomLog /web/apache/logs/domainTwo-access.log common
</VirtualHost>
etc..
You might want to they that instead.
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list