[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

advance apache configuration

i have a web server installed on vmware. on that vm i got 2 hard drive that come from my equalogic san.

hd 1 = c:\  ( with the os installed and the apache)
hd 2 = e:\

i want to put all my picture inside the hd2 and able to access it with my web browser
how can i configure apache to read in the hd2

0
GCI_SUPPORT
Asked:
GCI_SUPPORT
  • 2
1 Solution
 
zicevaCommented:
Hi,

This can be easily done with a single configuration directive:

Alias /images "E:\complete\path\to\the\folder"

You will have to activate mod_alias; More info here http://httpd.apache.org/docs/2.2/mod/mod_alias.html
0
 
GCI_SUPPORTAuthor Commented:
ok its working,

my next question is how can do the same thing with a network directory
0
 
zicevaCommented:
you could do one of 2 things:

- map the network drive like Z: for example
- install Apache on the second server so the images are available from the first server like, for example, http://192.168.1.10/images and in the first server use mod_proxy like this:

ProxyPass /images http://192.168.1.10/images

More info here: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now