Why is /javascript globally redirected?
Why is /javascript globally redirected?
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
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?
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.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?
Re: Why is /javascript globally redirected?
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
Thanks for the reply :)
GTF
-
- Posts: 1
- Joined: Wed May 27, 2015 7:28 am
Re: Why is /javascript globally redirected?
Mark, nice article!