<SCRIPT SRC=myJavaScript.js ... & Apache web server

<SCRIPT SRC=myJavaScript.js ... & Apache web server

Post by Michael Murp » Wed, 25 Feb 1998 04:00:00



I'm having a problem with JavaScript and my Apache web server.  I have a
SCRIPT tag in the HEAD of my html defined as follows:

<SCRIPT LANGUAGE="JavaScript1.2" SRC="myJavaScript.js"></SCRIPT>

When the html page starts to load I get an Internal Server Error.  Apache
is trying to execute the script.  I have the mime types configured as
follows:

application/x-javascript        js

Even before I configured the mime type I got the same error.

The confusing thing is that our Netscape web server is configured the same
way and it works fine.

I've also tried the nph- thing and that didn't work either.  It didn't try
to execute the file but the file never got sent back to the browser.

I searched deja-news and posted to the javascript newsgroup with no success.

Any help would be greatly appreciated.

TIA,
murph


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Mike Murphy              ~ Nortel                   ~
~  my opinions are my own  ~ Raleigh, North Carolina  ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

<SCRIPT SRC=myJavaScript.js ... & Apache web server

Post by Marc Slemk » Wed, 25 Feb 1998 04:00:00



Quote:>I'm having a problem with JavaScript and my Apache web server.  I have a
>SCRIPT tag in the HEAD of my html defined as follows:
><SCRIPT LANGUAGE="JavaScript1.2" SRC="myJavaScript.js"></SCRIPT>
>When the html page starts to load I get an Internal Server Error.  Apache
>is trying to execute the script.  I have the mime types configured as
>follows:
>application/x-javascript        js
>Even before I configured the mime type I got the same error.

Erm... then you have something else configured wrong on your server.
You should _NOT_ be configuring the server to execute it at all.
Be sure it isn't in a ScriptAlised cgi-bin directory and that you have
no directives telling Apache to execute .js files.

 
 
 

1. <Script Language="Javascript" SRC=...></Script> under Apache

Could someone tell me how to configure the Apache web server so that it
will support SRC tag for Javascript? For example, it will recongnize the
following line of code.
<Script Language="Javascript"  SRC="./something.js"></Script>.

According a Javascript book published by O'Reilly, the web server may
need special configuration in order to use JavaScript file in this way.
My apache web server has alreay exported MIME-type
application/x-javascript for .js extension. But it did not work.

Thank you in advance.

2. DOS programmer needs CURSES teacher

3. How can I trap a user in script <-<-<-<-<-<-<-<-

4. regex needed

5. Script for makeing whole bunch of account of sol. 2.3 <<<<<<<<<<<<<<<<<

6. IntelliMouse on PS/2 port for XFree86 under Linux?

7. <<<<<soundconfig problem <<<<<<<

8. Plug 'n Play?

9. <Apache Q> Executing javascript (.js) files

10. I need a example of X .twmrc file PLEASE <<<<<<<<<<<<<<<<<<<<<

11. SOLARIS 2.3 NOT getting the NAMESERVER <<<<<<<<<<<<<<<<<<<<

12. CDE <<<<<<<<<-------------- Need Help !

13. multipart mime messages && apache web server - known problems ?