Solved

virtualhost

Posted on 2008-10-19
4
354 Views
Last Modified: 2010-04-21
Hi gurus,

I have the following questions about Virtualhost settings.

Here 's my case:
https://secured.mysite.com   (with SSL)
http/www.mysite.com  (without SSL)

There are two paths for the said stuff.
www:         /home/mysite/docs/html
secured:      /home/mysite/secured/

How about images? Assuming my path for images is /home/mysite/docs/images/ , how can I share in virtualhost?

I wanna have both
http/www.mysite.com/images/123.gif
and
https://secured.mysite.com/images/123.gif

derived from the same path for images? So both path will use the same image file on the same path. How can I make it? Do i have to set those SSLENABLE or SSLDISABLE?

Thanks in advance!

Manfred
0
Comment
Question by:manfredino
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:hfraser
ID: 22754740
Define directory aliases in each of your virtual servers for "/images" URL to point to the same physical directory.

Since you've gone to the trouble of creating two virtual servers, I'm assuming the SSL one has content that needs to be kept private. If you have some images that need to be also need to be secure, such as images of documents that should only be delivered to authenticated users over a secure channel, you should not keep them in a combined images directory, even if you've disabled directory listing. Remember that people bookmark stuff, and may not access secure images through the secure virtual server.
0
 

Author Comment

by:manfredino
ID: 22764983
Thanks a lot hfraser!

For example there's a contact form with SSL and we expect  the layout of the page look more or less the same as other pages without SSL. That's why we want to consider something like sharing images/js/css for both secured & non secured stuff.
0
 
LVL 12

Accepted Solution

by:
hfraser earned 50 total points
ID: 22765785
Then aliases are the way to do it. Something like:

Alias /images/ "/home/myysite/images/"

<Directory "/home/mysite/images">
    Options MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

in the confguration for both virtual servers will do this.
0
 

Author Closing Comment

by:manfredino
ID: 31507693
Thanks hfraser!
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

What You Need to Know when Searching for a Webhost Provider
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

696 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