logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Configuring Apache to load javascript files
Author
chriswern



Joined: 23 Oct 2013
Posts: 2
Location: uk lincoln

PostPosted: Wed 23 Oct '13 12:49    Post subject: Configuring Apache to load javascript files Reply with quote

Hi

I have a website that sources a number of jquery plugins, when I load the site in chrome or firefox the javascript console is saying that these files were not loaded.

The server is a localhost and the files are local.

The google jquery file loads fine.

Could anyone tell me if and how I need to configure the apache config file to deal with javascript.

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 24 Oct '13 10:01    Post subject: Reply with quote

If you use a network console from firebug does it show the correct header? Like application/javascript?

200 code or 404?
Back to top
chriswern



Joined: 23 Oct 2013
Posts: 2
Location: uk lincoln

PostPosted: Mon 28 Oct '13 13:16    Post subject: Found the solution to this problem Reply with quote

I found out that the Javascript plugins are not working because they are in a sub - sub directory a few layers below the root and are being called from that same location.

Once I moved the file that was calling them and the scripts upto the root level they worked fine.
Back to top


Reply to topic   Topic: Configuring Apache to load javascript files View previous topic :: View next topic
Post new topic   Forum Index -> Apache