jquery on localhost

Posted by ace on Stack Overflow See other posts from Stack Overflow or by ace
Published on 2010-01-04T15:19:18Z Indexed on 2010/04/19 3:33 UTC
Read the original article Hit count: 737

Filed under:
|
|

I am using Linuxmint (= ubuntu linux 9.10) I installed LAmp server which have apache,php mysql and now i am trying to write jquery code i made a file and it worked perfectly with this link : file:///var/www/jquery/jquery.html
but when i use this link, then it doesnt work anymore : http://localhost/jquery/jquery.html

the file jquery.min.js is in the same folder and i already changed the src of it in source code to

  1. <script type="text/javascript" src="/var/www/jquery/jquery.min.js"></script>
  2. <script type="text/javascript" src="jquery.min.js"></script>

but none of them works (with localhost link) using firebug I saw these errors:

  1. The requested URL /var/www/jquery/jquery.min.js was not found on this server.
  2. You don't have permission to access /jquery/jquery.min.js on this server.

Apache/2.2.12 (Ubuntu) Server at localhost Port 80

so what do I have to do to make it run?

© Stack Overflow or respective owner

Related posts about apache

Related posts about apache2