the mitzman
11-21-2002, 02:35 PM
Hey guys, I just would like to know if what I'm doing is right before I go the next step.
I have 2 domains:
news.mycompany.com
www.anotherdomain.com
The computer here which is running apache has a single ip address. Now it is behind a firewall router (it's a MS ISA server) and all requests made to news.mycompany.com on port 80 are forwarded to my linux box right now. That's verified and it works.
Now I wanna setup a Vhost on this linux box to host 2 sites.
One is news.mycompany.com
and the second is www.anotherdomain.com
www.anotherdomain.com will point to the same ip as news does and the isa server will pass all traffic to www.anotherdomain.com to the linux box. This is how I imagine the vhosts should be configured on my box....
NameVirtualHost 192.168.100.50
<VirtualHost 192.168.100.50>
DocumentRoot /var/www/html
ServerName news.mycompany.com
</VirtualHost>
<VirtualHost 192.168.100.50>
DocumentRoot /home/anotherweb/html
ServerName www.anotherdomain.com
</VirtualHost>
Am I right on this? We came up with the idea to do a web-based newsletter for our company and I convinced the other tech guys (the programmers) that we needed to do this with a Linux box (plus I get to code the site in all PHP and mysql, yay!).
As far as I'm concerned, I've done the hardest part which was to setup samba (I've always had trouble with that but I got it today), use our PDC as authentication, and join the linux box to our Win2k domain.
As for the vhosts, am I missing something there or am I on the right track?
I have 2 domains:
news.mycompany.com
www.anotherdomain.com
The computer here which is running apache has a single ip address. Now it is behind a firewall router (it's a MS ISA server) and all requests made to news.mycompany.com on port 80 are forwarded to my linux box right now. That's verified and it works.
Now I wanna setup a Vhost on this linux box to host 2 sites.
One is news.mycompany.com
and the second is www.anotherdomain.com
www.anotherdomain.com will point to the same ip as news does and the isa server will pass all traffic to www.anotherdomain.com to the linux box. This is how I imagine the vhosts should be configured on my box....
NameVirtualHost 192.168.100.50
<VirtualHost 192.168.100.50>
DocumentRoot /var/www/html
ServerName news.mycompany.com
</VirtualHost>
<VirtualHost 192.168.100.50>
DocumentRoot /home/anotherweb/html
ServerName www.anotherdomain.com
</VirtualHost>
Am I right on this? We came up with the idea to do a web-based newsletter for our company and I convinced the other tech guys (the programmers) that we needed to do this with a Linux box (plus I get to code the site in all PHP and mysql, yay!).
As far as I'm concerned, I've done the hardest part which was to setup samba (I've always had trouble with that but I got it today), use our PDC as authentication, and join the linux box to our Win2k domain.
As for the vhosts, am I missing something there or am I on the right track?