Solved

virtualhost

Posted on 2008-10-19
4
348 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

13 Experts available now in Live!

Get 1:1 Help Now