Solved

Apache 1.3.27 virtual hosts

Posted on 2004-08-04
5
294 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
Comment Utility
What does the href for the images in the misbehaving page look like?
0
 

Author Comment

by:jballread
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now