?
Solved

Virtual Servers

Posted on 2003-03-11
6
Medium Priority
?
202 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:die0u0die
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 8115598
You just add extra pages to the web directory if you want to host extra pages on a specific website. However if you want to host multiple websites for different domains on your PC, then you need to edit your httpd.conf file to be something like this for a single interface, and multiple domains/web addresses:
--------------------------------------X8-------------

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

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:)
0
 
LVL 1

Author Comment

by:die0u0die
ID: 8118520
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
0
 
LVL 1

Author Comment

by:die0u0die
ID: 8121595
DNS servers must resolve and how do i do this
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 1

Expert Comment

by:livepclive
ID: 8122538
0
 
LVL 1

Accepted Solution

by:
livepclive earned 1000 total points
ID: 8122560
0
 
LVL 1

Author Comment

by:die0u0die
ID: 8122610
just the infor i need
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question