LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-17-2002, 09:48 AM   #1
scatcat
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 10.1.2.95

I am trying this
ServerName Server1

NameVirtualHost 10.1.2.95

<VirtualHost 10.1.2.95>
ServerName Server1
DocumentRoot "some_path/Server1"
Alias / blar/index.html
</VirtualHost>

<VirtualHost 10.1.2.95>
ServerName Server2
DocumentRoot "some_path/Server2"
Alias / blar/blar/enter.html
</VirtualHost>


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, 09:51 AM   #2
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0
OPPS SORRY

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


Reply


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 06:29 AM
Apache Virtual Hosts quozt Linux - General 3 10-15-2003 09:51 AM
Apache/Virtual Hosts Help C-Squared Linux - General 9 08-04-2003 12:45 PM
Apache: Virtual hosts pk21 Linux - Software 15 10-08-2002 05:08 PM
apache virtual hosts jonfa Linux - General 1 06-04-2002 01:50 AM


All times are GMT -5. The time now is 08:53 AM.

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