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 ?
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 ?