Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-17-2002, 10:48 AM   #1
LQ Newbie
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Rep: Reputation: 0
Angry Apache Virtual Hosts (again)

Hi everyone.

Iam trying to set up virtual hosting on my machine at work.

In the hosts table I have two names
Server1 and Server2 both on the same IP address

I am trying this
ServerName Server1


ServerName Server1
DocumentRoot "some_path/Server1"
Alias / blar/index.html

ServerName Server2
DocumentRoot "some_path/Server2"
Alias / blar/blar/enter.html

The problem is if I put
http://Server1 or http://Server2 in a browser all I see is content
of one site only. It never shows each site with different content.

If I playaround with the DocumentRoots it will show the other site for both sites, never different conten for each site.

What is happening this is driving me crazy. I have read and read and read everything I can find but I can't find the answer.

Any help will be very gratfully received.
Old 10-17-2002, 10:51 AM   #2
LQ Newbie
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0

I read the above for mistakes and as sod's law goes I didn't spot anything until I posted.

The Aliases have all got '\' on them not '/'

DOH ! red faced shame.............


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
Apache Virtual Hosts quozt Linux - General 3 10-15-2003 10:51 AM
Apache/Virtual Hosts Help C-Squared Linux - General 9 08-04-2003 01:45 PM
Apache: Virtual hosts pk21 Linux - Software 15 10-08-2002 06:08 PM
apache virtual hosts jonfa Linux - General 1 06-04-2002 02:50 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration