Solved

Apache 1.3.27 virtual hosts

Posted on 2004-08-04
5
295 Views
Last Modified: 2013-12-16
Hello,

I have a server running Mandrake 9.1 with Apache 1.3.27 and I want to setup virtual hosting.  First things first...
I have setup the Vhosts.conf files to show:

#This is needed for Frontpage support
Port 80
ServerRoot /etc/httpd
ResourceConfig /dev/null
AccessConfig /dev/null

NameVirtualHost 192.168.0.2

<VirtualHost 192.168.0.2>
ServerName tesorocorp.com
ServerAlias www.tesorocorp.com
DocumentRoot /home/tesoro/public_html
ScriptAlias /cgi-bin /home/tesoro/cgi-bin
</VirtualHost>

<VirtualHost 192.168.0.2>
ServerName tesoroplans.com
ServerAlias www.tesoroplans.com
DocumentRoot /var/www/html
ScriptAlias /cgi-bin /home/tesoro/public_html
</VirtualHost>


Both websites are being displayed, however, the www.tesorocorp.com won't display the logos on the page.  Funny thing is that the logo that won't show is located at:

http://www.tesorocorp.com/images/clip_art/Logos/TesoroLogo.jpg 

The webserver gives me the "Document not found" error.  However, if I use the address

http://www.tesorocorp.com/~tesoro/ images/clip_art/Logos/TesoroLogo.jpg

The logo is displayed.  It is like the server isn't going deep enough into the directories to pull the files.  Any ideas?

Many thanks!

Johnathon B. Allread  
0
Comment
Question by:jballread
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 11715651
What does the href for the images in the misbehaving page look like?
0
 

Author Comment

by:jballread
ID: 11716191
Should it matter?  If the server won't display the image when you go to:

http://www.tesorocorp.com/images/clip_art/Logos/TesoroLogo.jpg


but will when going to:

http://www.tesorocorp.com/~tesoro/images/clip_art/Logos/TesoroLogo.jpg

Then it should be an Apache setting regardless of how the html file is setup.  Am I right?

Thanks!

Johnathon


0
 
LVL 40

Expert Comment

by:jlevie
ID: 11717019
That test does eliminate the hfref as the culprit. It wasn't clear to me that you'd tested it that way or were simply saying that was what it should have been.

What does the error_log say about the failure? It could be a permissions problem or something else.
0
 

Author Comment

by:jballread
ID: 11718333
jlevie, thanks for your responses.  I will split you some points when I get my next problem solved.  I did find the problem.  Someone added a global alias for a directory called "images" which was throwing everything off.  The problem I have now is that I want to add front page extensions to the new virtual website I just added to this Linux server.  I have FP extensions installed and setup for one website, but I cannot recall what I did to set it up.  I am sure it has to do with the utility owsadm.exe, but I do not recall the switches.  Any help?  

Thanks!
0
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 11722225
Yeah, a server alias for /images would confuse things.

The only times I've been forced to use FP on a web server I've found that using IE on a windows box is the best way of adding/managing sites. I tried using owsadm but wasn't ever able to get it to work properly.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

770 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