Hi all,
I *think* i have just found the cause of the problem ......is it true that when i specify a Virtualhost in apache 1.3 config .. The Main server must also be specified as a Virtual Host ?
Nope. You will need an IP address for each server though. The first one can be a "real" ip, the second one can be a fake one. To bring a second ip up on an ethernet card the command is something like this (doing from memory, syntanx maybe incorrect, check the man page) ifconfig eth0:2 192.168.17.231 up
Section 2 of httpd.conf has a number of 'common' directives.. so i need to find a way to keep the common areas outside of the VirtualHost directive :)
Like? Most things you can "redefine" INSIDE the VirtualHost directive, for example, if you want a differant /cgi-bin then the "common" do something like this ScriptAlias /cgi-bin/ "/home/mywebsite/cgi-bin/" Or if you want to output to differant log files: ErrorLog /usr/local/etc/httpd/logs/www.mywebsite-error_log TransferLog /usr/local/etc/httpd/logs/www.mywebsite.com-access_log You can "redefine" a lot INSIDE of the VirtualHost directive, if you aren't sure on something try it, it will probably work or post it here.
I have WebMin installed on this machine.. how can i configure the
Mainserver
as a Virtual Host without messing things up ?
What is WebMin? Never heard of it. Anyways, you shouldn't have to configure the Mainserver as a VirtualHost, there isn't any point to it, leave it as is and add the second host as a Virtualhost.
PS i handle the network, because my partners are too cheap to hire a Full Time Linux Admin ;-) so please be patient with me ..!!
What is your bussiness?
Regards
Anurag
Try this as a simple setup
ifconfig eth0:2 192.168.17.231 up
add DNS entries so www.mywebsite.com and mywebsite.com both point to
192.168.17.231
after DNS is working (check with nslookup) in httpd.conf do something like
this: