die0u0die
asked on
Virtual Servers
how do i host more the one page on linux with apache
and if is by Virtual Servers how dose it work
and how can i set it up
and if is by Virtual Servers how dose it work
and how can i set it up
ASKER
that make no sense to me
tis is what i need to do
i have my page on line
and my brother would like his page on line
but i olny want on pc for both so some thing like this my page = www.my.com page2=www.my.com/brother
tis is what i need to do
i have my page on line
and my brother would like his page on line
but i olny want on pc for both so some thing like this my page = www.my.com page2=www.my.com/brother
ASKER
DNS servers must resolve and how do i do this
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
just the infor i need
--------------------------
NameVirtualHost *:80 # Any port 80 connection on any interface is virtual host
# Virtual host www.mysite.com
<VirtualHost _default_:80> # On default interface - assume one:)
DocumentRoot /var/www/html/www/
Options ExecCGI
ServerName www.mysite.com
ScriptAlias /cgi-bin/ /var/www/cgi-bin/main/
</VirtualHost>
# Virtual host www.battlefields.com
<VirtualHost _default_:80>
DocumentRoot /var/www/html/battlefields
ServerName www.battlefields.com
</VirtualHost>
# Virtual host www.alex.com
<VirtualHost _default_:80>
DocumentRoot /var/www/html/alex/
ServerName www.alex.com
DirectoryIndex index.htm
</VirtualHost>
--------------------------
DNS servers must resolve:
www.alex.com
www.battlefields.com
www.mysite.com
to the interface of this system.
Hope that the above makes sense. Remember, that you attempt to access the site using the IP address, then it will access the default site only, there is no way for the server to be avble to work out which name you mean!!!
Hope that helps:)