Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Why is /javascript globally redirected?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Grunthos
Posts: 5
Joined: Tue Jan 20, 2015 1:19 am

Why is /javascript globally redirected?
  • Quote

Post by Grunthos » Tue Jan 20, 2015 1:34 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Why is /javascript globally redirected?
  • Quote

Post by skurudo » Wed Jan 21, 2015 4:10 pm

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.
Top

Grunthos
Posts: 5
Joined: Tue Jan 20, 2015 1:19 am

Re: Why is /javascript globally redirected?
  • Quote

Post by Grunthos » Tue Feb 03, 2015 4:28 pm

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
Top

joviermark
Posts: 1
Joined: Wed May 27, 2015 7:28 am

Re: Why is /javascript globally redirected?
  • Quote

Post by joviermark » Wed May 27, 2015 7:29 am

More about.....JavaScript Redirect

Mark
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Why is /javascript globally redirected?
  • Quote

Post by skurudo » Wed May 27, 2015 2:51 pm

Mark, nice article!
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password