Apache trying to load from DocumentRoot instead of Alias directory -


i have set documentroot be, let's say, x.

also, have alias /web pointing directory y.

i can load homepage @ /web without issue. other page in same website homepage of /web, apache tries load x instead of y.

how can make apache load contents of /web/* y/* instead of x/* ?

maybe missing out directory directive aliased directory?

this configuration works fine me:

[...] documentroot /web [...] <directory /web/>        options indexes followsymlinks multiviews        allowoverride none        order allow,deny        allow </directory>  alias /web2/ "/var/www/" <directory "/var/www">        options followsymlinks        allowoverride none </directory> [...] 

Comments