Solved

Apache 1.3.27 virtual hosts

Posted on 2004-08-04
5
297 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

Suggested Solutions

Title # Comments Views Activity
winscp where are logs stored 3 52
maybe no no httpd.conf 6 63
Web resource - Man pages for SUSE Enterprise Linux 11 1 42
Using sort and uniq to pare down large syslog 6 53
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

821 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