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: Newbie question about javascript and cgi-bin
Author
mmiller



Joined: 05 Sep 2009
Posts: 3

PostPosted: Sat 05 Sep '09 15:56    Post subject: Newbie question about javascript and cgi-bin Reply with quote

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

PostPosted: Sat 05 Sep '09 18:12    Post subject: Reply with quote

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

PostPosted: Sun 06 Sep '09 3:04    Post subject: Reply with quote

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

PostPosted: Sun 06 Sep '09 4:56    Post subject: Reply with quote

change it from "ScriptAlias" to just plain "Alias"
Back to top
mmiller



Joined: 05 Sep 2009
Posts: 3

PostPosted: Tue 08 Sep '09 4:14    Post subject: Thanks Reply with quote

Thank you very much .. that solved the problem.
Back to top


Reply to topic   Topic: Newbie question about javascript and cgi-bin View previous topic :: View next topic
Post new topic   Forum Index -> Apache