Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th October 2010, 09:11
Reppie Reppie is offline
Junior Member
 
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Can't open javascript folder on web

I have a website, wich uses a folder 'javascript' with in there some javascripts.
If i browse to my website and try to access those javascript files in there, i always get a 404.

If i rename the folder 'javascript' to 'script' or something else, i CAN access those files... It seems that the folder 'javascript' gets somewhere blocked, tho i cant find anything in my htaccess or in the IPSConfig3 settings....

Ofcourse, the solution is easy... i just rename the folder 'javascript'.... tho i'm still curious what causes this problem
Reply With Quote
Sponsored Links
  #2  
Old 28th October 2010, 10:52
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,988
Thanks: 825
Thanked 5,373 Times in 4,220 Posts
Default

There must be some kind of alias or redirect for "javascript" somewhere in a .htaccess or the apache config files. ISPConfig does not add such a alias, so it must have been added by another component.

You can e.g. try to scan all apache config files with the "grep" command for the word "javascript".
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th October 2010, 12:24
Reppie Reppie is offline
Junior Member
 
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply, i'll try to search for a 'javascript' term in the config files. I already checked (and removed) the .htaccess file for this website. Is there another (global) .htaccess file i should check?
Reply With Quote
  #4  
Old 28th October 2010, 14:23
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,988
Thanks: 825
Thanked 5,373 Times in 4,220 Posts
Default

There are no global .htaccess files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 12th February 2013, 23:41
teves teves is offline
Senior Member
 
Join Date: Oct 2006
Posts: 149
Thanks: 27
Thanked 13 Times in 10 Posts
Default

This thread is old, but I have this issue also on an up-to-date installation of Debian Squeeze (perfect setup) with ispconfig3.
I tried to install flyspray, which worked without errors. But after installation you cannot log in, because all javascript files are not loaded (from the 'javascript' folder; access denied with a 403 error)

I found out that this happens because of the file /etc/apache2/conf.d/javascript-common.conf
It contains the following code:
Code:
Alias /javascript /usr/share/javascript/

<Directory "/usr/share/javascript/">
        Options FollowSymLinks MultiViews
</Directory>
But I did not find a hint about what one might do about it. Why does this file exist, what does it do? Can I remove it or comment it out?

Does anyone know?

Thank you!
Regards, Tom
Reply With Quote
  #6  
Old 13th February 2013, 12:06
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,988
Thanks: 825
Thanked 5,373 Times in 4,220 Posts
 
Default

Please see here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=553173

I would comment out all lines in /etc/apache2/conf.d/javascript-common.conf and then add them inside the vhost definition of the debian default vhost /etc/init.d/sites-available/default as suggested in the thread. This will ensure that debian packages which use the default vhost still work without affecting other websites.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
teves (13th February 2013)
Reply

Bookmarks

Tags
folder, javascript, web accessible

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm attack brute force qb7 General 6 21st July 2012 21:34
Problem 100% CPU ispconfig_httpd -DSSL Captain Installation/Configuration 7 8th March 2010 21:50
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
open ports rayit General 6 18th January 2006 14:23


All times are GMT +2. The time now is 12:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.