httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From barry kimelman <>
Subject [users@httpd] Can't get access to CSS stylesheets and javascript files using Apache2.2 on windows
Date Sun, 06 Sep 2015 18:08:29 GMT

I have installed apache2.2 on my windows laptop.

The basics are working fine. I setup my own directory structure under "C:\apachedata" and
modified httpd.conf to point under that directory.

Accessing HTML pages works fine. CGI scripts that just generate HTML work fine.

However when I try to get access to CSS and JS files the apache error log keeps showing me
the dreaded 403 error message

I have added the following line into httpd.conf

Alias /jslib "C:/apachedata/jslib"

Here is the "source code" generated by my CGI script which results in the 403 error emssage

<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en-US" xml:lang="en-US">
<title>Encrypted Data Management</title>
<link rel="stylesheet" type="text/css" href="/jslib/styles.css<view-source:>"
<link rel="stylesheet" type="text/css" href="/jslib/fieldset.css<view-source:>"
<script src="/jslib/check_all_fields.js<view-source:>"
<script src="/jslib/hide_show_divider.js<view-source:>"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<h1>Encrypted Data Management</h1><H4>CGI script parameters</H4>
<H4>No CGI script parameters are defined</H4><BR>

<H3>Sun Sep  6 13:50:40 2015</H3>
<OL style="line-height: 35px;">
<LI><A HREF="e2.cgi?function=listall<view-source:>">List
<LI><A HREF="e2.cgi?function=query<view-source:>">Query
<LI><A HREF="e2.cgi?function=add<view-source:>">Add
New Record</LI>
<LI><A HREF="e2.cgi?function=meta<view-source:>">List


Here is the contents of the jslib directory

 Volume in drive C is TI10673200G
 Volume Serial Number is 5E9D-3D3F

 Directory of C:\apachedata\jslib

09/06/2015  01:04 PM    <DIR>          .
09/06/2015  01:04 PM    <DIR>          ..
09/06/2015  01:04 PM             1,396 check_all_fields.js
09/06/2015  11:32 AM             3,294 fieldset.css
09/06/2015  01:04 PM             1,515 hide_show_divider.js
09/06/2015  11:32 AM             5,929 styles.css
               4 File(s)         12,134 bytes
               2 Dir(s)  591,461,138,432 bytes free

Here is the tail end of "access.log" - - [06/Sep/2015:13:53:13 -0400] "GET /jslib/fieldset.css HTTP/1.1" 403 220 - - [06/Sep/2015:13:53:13 -0400] "GET /jslib/hide_show_divider.js HTTP/1.1" 403
228 - - [06/Sep/2015:13:53:13 -0400] "GET /jslib/check_all_fields.js HTTP/1.1" 403 227 - - [06/Sep/2015:13:53:13 -0400] "GET /jslib/styles.css HTTP/1.1" 403 218

Any ideas ? What else do I need to do or change to properly access my CCS and JS files ?

View raw message