Page 1 of 1

Why is /javascript globally redirected?

Posted: Tue Jan 20, 2015 1:34 am
by Grunthos
Hello,

I've just installed an instance of VCP on Debian 7 and the two test sites i've installed have failed with the same problem.

Both sites include their .js files from a /javascript directory. This is globally redirected to /usr/share/javascript/ with "Alias /javascript /usr/share/javascript/" in /etc/apache2/conf.d/javascript-common.conf

As VCP hasn't create a javascript directory in /usr/share does this mean that it's an oversight and can be removed?

Thanks,

GTF

Re: Why is /javascript globally redirected?

Posted: Wed Jan 21, 2015 4:10 pm
by skurudo
Grunthos wrote:Both sites include their .js files from a /javascript directory. This is globally redirected to /usr/share/javascript/ with "Alias /javascript /usr/share/javascript/" in /etc/apache2/conf.d/javascript-common.conf As VCP hasn't create a javascript directory in /usr/share does this mean that it's an oversight and can be removed?
Apache quietly installs a symlink javascript-common.conf in /etc/apache2/conf.d that globally aliases all /javascript URLs to /usr/share/javascript. Why? Who knows. IT'S APACHE THING (xD) I’m sure whoever did it meant well. The fix is to either remove javascript-common or just delete the conf.d symlink and restart Apache.

Re: Why is /javascript globally redirected?

Posted: Tue Feb 03, 2015 4:28 pm
by Grunthos
It's not something i've come across before in an apache setup and didn't want to delete before making sure vesta didn't need it.

Thanks for the reply :)

GTF

Re: Why is /javascript globally redirected?

Posted: Wed May 27, 2015 7:29 am
by joviermark
More about.....JavaScript Redirect

Mark

Re: Why is /javascript globally redirected?

Posted: Wed May 27, 2015 2:51 pm
by skurudo
Mark, nice article!