PDA

View Full Version : How can I set up a VHost?


Vespa
2004-08-12, 06:59 AM
I need some help about Virtual host.

I have a server with one IP address, no DNS o domain up to now.

In the home fodler I have two account directory. In each directory ther is a file text that I have to grab from a remote server.

I guess I don't need to set up a NDS but I can grab those txt files just setting two virtual Host.

After got some documentation I think have to write this into httpd.conf Apache config file:

NameVirtualHost MY_IP_ADDRESS

Then:

<VirtualHost_default_:80>
Server name MY_IP_ADDRESS
DocumentRoot /var/www/html
Alias / /home/FIRSTACCOUNT/
</VirtualHost>

<VirtualHost_default_:80>
Server Name MY_IP_ADDRESS
DocumentRoot /var/www/html
Alias / /home/SECONDACCOUNT/
</VirtualHost>


Is this correct ?

csteelatgburg
2004-08-12, 09:29 AM
Do you have WebMin running on your server? It should have come installed if you didn't select another control panel. If so, check out www.webmin.com, and specifically the Virtualmin module, which you can use to setup virtual servers quite easily. There's a good walkthrough on setting up Virtualmin too, including configuring apache, postfix, etc.

Vespa
2004-08-12, 12:35 PM
But in my ServerBeach Webmin ther isn't any Virtualmin option.
What can I do?

csteelatgburg
2004-08-12, 16:05 PM
Install Virtualmin.

The docs on the webmin site should walk you through that.