Author |
|
mmiller
Joined: 05 Sep 2009 Posts: 3
|
Posted: Sat 05 Sep '09 15:56 Post subject: Newbie question about javascript and cgi-bin |
|
|
I have installed and setup Apache 2.2 to run scripts and have no problem with that whatsoever. However all my javascripts and css files reside in cgi-bin directory and none of them appear to be able to run. I'm sure its a syntax error but can't seem to fix the problem.
Fort example index.html has the following link;
<script type="text/javascript" src="cgi-bin/styles/css/heding.css">
it won't load the css file. I have alot of iles like this in cgi-bin and would appreciate the correct syntax to load these. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 05 Sep '09 18:12 Post subject: |
|
|
you can't place those files in cgi-bin if that is a ScriptAlias. Put only cgi script in there. Put other files into a different folder. Or are these files cgi based with a shebang line? |
|
Back to top |
|
mmiller
Joined: 05 Sep 2009 Posts: 3
|
Posted: Sun 06 Sep '09 3:04 Post subject: |
|
|
No ... these files are various javascripts and style files ... no way to keep them in cgi-nin huh? Thats alotta files to move and alotta code to check and change. :o( |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 06 Sep '09 4:56 Post subject: |
|
|
change it from "ScriptAlias" to just plain "Alias" |
|
Back to top |
|
mmiller
Joined: 05 Sep 2009 Posts: 3
|
Posted: Tue 08 Sep '09 4:14 Post subject: Thanks |
|
|
Thank you very much .. that solved the problem. |
|
Back to top |
|