Forum Moderators: phranque

Message Too Old, No Replies

Alias Apache 2.2 Shared Hosting.

         

ucs308

3:51 am on Oct 4, 2008 (gmt 0)

10+ Year Member



I have several virtualhost(s) setup on a local development server. In order to control the sharing of content (images) I put all the images in a directory outside of the htdocs folder and then use the Alias directive to redirect calls when an image needs loading.

Alias /content /published/www.serverTOM.#*$!/content

So a request for /content/car.png will be served from /published/www.serverTOM.#*$!/content/car.png

A different domain will get images from a different folder in the same hierarchy.

I tried to update my remote servers and have found out my host does not allow me modify the virtualhost file for my account.

So a couple of questions.

Can this be achieved easily without the use of Alias, symlinks will not work for me.

Is there a host that would allow this? Do I need to to VPS hosting?