Jump to content

apache httpd.conf if not exists use different directory rule


wardy277

Recommended Posts

Hi,

 

I am pretty new to configuring the apache config files. I have heard that there is a hddp.conf file that can be used as a redirect. What i want is lots of sites to use the same files instead of copying them over each time i make a change.

 

How do i make is so that if the file does not exist then it will lookup the file in another directory.

 

e.g

/var/www/vhosts/testsite1/foo.html

/var/www/vhosts/testsite2/foo.html

/var/www/vhosts/testsite3/foo.html

/var/www/vhosts/testsite4/foo.html

 

/var/www/vhosts/main_site/foo.html

 

 

none of the testsites have foo.html but main_site does. how do i make a rule so for all sites, if a file accessed does not exist then look it up in /var/www/vhosts/main_site/directory

 

I know this can be done but don't know how

 

Chris

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.