You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by SAJESH PC <pc...@gmail.com> on 2022/03/30 10:27:52 UTC

[users@httpd] Unable to load javascript files with the apache configuration file

Hi,
I have set up a http server with the configuration given as attachment. But
it is not serving javascript files from the folder javascript. It is giving
a 404 return code. The real intention here is that the javascript files
should not be accessible directly but through html files only or when
accessed through software only. How to correct the configuration file.
P C SAJESH
PGT COMPUTER SCIENCE
KV MALAPPURAM

Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by Frank Gingras <th...@apache.org>.
<Directory></Directory> refers to the full filesystem path. I strongly
doubt that you have /jscripts/ on your system.

On Sun, 3 Apr 2022 at 03:45, SAJESH PC <pc...@gmail.com> wrote:

> Hi all,
> I got it corrected by changing <Directory "/javascript/"> to <Directory
> "/jscripts/">. What is the real problem here?
> regards
>
>
> On Sat, Apr 2, 2022 at 2:39 AM Ruben Safir <mr...@panix.com> wrote:
>
>> On 3/30/22 14:17, SAJESH PC wrote:
>> > Iam sharing a screenshot of the browser console errors. Hope this helps.
>> >
>>
>> fwiw apache looks like it is working just file
>>
>> and it is not a great idea to send images on mailing lists.
>>
>> > On Wed, Mar 30, 2022 at 8:14 PM Richard
>> > <lists-apache@listmail.innovate.net
>> > <ma...@listmail.innovate.net>> wrote:
>> >
>> >
>> >
>> >     > Date: Wednesday, March 30, 2022 15:57:52 +0530
>> >     > From: SAJESH PC <pc.sajesh800@gmail.com
>> >     <ma...@gmail.com>>
>> >     >
>> >     > Hi,
>> >     > I have set up a http server with the configuration given as
>> >     > attachment. But it is not serving javascript files from the folder
>> >     > javascript. It is giving a 404 return code. The real intention
>> here
>> >     > is that the javascript files should not be accessible directly but
>> >     > through html files only or when accessed through software only.
>> How
>> >     > to correct the configuration file.
>> >
>> >     Have you looked at the output in your errors file? It will likely be
>> >     rather more informative than a simple "404".
>> >
>> >
>> >
>> >
>>  ---------------------------------------------------------------------
>> >     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >     <ma...@httpd.apache.org>
>> >     For additional commands, e-mail: users-help@httpd.apache.org
>> >     <ma...@httpd.apache.org>
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>> --
>> So many immigrant groups have swept through our town
>> that Brooklyn, like Atlantis, reaches mythological
>> proportions in the mind of the world - RI Safir 1998
>> http://www.mrbrklyn.com
>>
>> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
>> http://www.nylxs.com - Leadership Development in Free Software
>> http://www2.mrbrklyn.com/resources - Unpublished Archive
>> http://www.coinhangout.com - coins!
>> http://www.brooklyn-living.com
>>
>> Being so tracked is for FARM ANIMALS and extermination camps,
>> but incompatible with living as a free human being. -RI Safir 2013
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>

Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by SAJESH PC <pc...@gmail.com>.
Hi all,
I got it corrected by changing <Directory "/javascript/"> to <Directory
"/jscripts/">. What is the real problem here?
regards


On Sat, Apr 2, 2022 at 2:39 AM Ruben Safir <mr...@panix.com> wrote:

> On 3/30/22 14:17, SAJESH PC wrote:
> > Iam sharing a screenshot of the browser console errors. Hope this helps.
> >
>
> fwiw apache looks like it is working just file
>
> and it is not a great idea to send images on mailing lists.
>
> > On Wed, Mar 30, 2022 at 8:14 PM Richard
> > <lists-apache@listmail.innovate.net
> > <ma...@listmail.innovate.net>> wrote:
> >
> >
> >
> >     > Date: Wednesday, March 30, 2022 15:57:52 +0530
> >     > From: SAJESH PC <pc.sajesh800@gmail.com
> >     <ma...@gmail.com>>
> >     >
> >     > Hi,
> >     > I have set up a http server with the configuration given as
> >     > attachment. But it is not serving javascript files from the folder
> >     > javascript. It is giving a 404 return code. The real intention here
> >     > is that the javascript files should not be accessible directly but
> >     > through html files only or when accessed through software only. How
> >     > to correct the configuration file.
> >
> >     Have you looked at the output in your errors file? It will likely be
> >     rather more informative than a simple "404".
> >
> >
> >
> >     ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >     <ma...@httpd.apache.org>
> >     For additional commands, e-mail: users-help@httpd.apache.org
> >     <ma...@httpd.apache.org>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
>
> --
> So many immigrant groups have swept through our town
> that Brooklyn, like Atlantis, reaches mythological
> proportions in the mind of the world - RI Safir 1998
> http://www.mrbrklyn.com
>
> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
> http://www.nylxs.com - Leadership Development in Free Software
> http://www2.mrbrklyn.com/resources - Unpublished Archive
> http://www.coinhangout.com - coins!
> http://www.brooklyn-living.com
>
> Being so tracked is for FARM ANIMALS and extermination camps,
> but incompatible with living as a free human being. -RI Safir 2013
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by Ruben Safir <mr...@panix.com>.
On 3/30/22 14:17, SAJESH PC wrote:
> Iam sharing a screenshot of the browser console errors. Hope this helps.
> 

fwiw apache looks like it is working just file

and it is not a great idea to send images on mailing lists.

> On Wed, Mar 30, 2022 at 8:14 PM Richard
> <lists-apache@listmail.innovate.net
> <ma...@listmail.innovate.net>> wrote:
> 
> 
> 
>     > Date: Wednesday, March 30, 2022 15:57:52 +0530
>     > From: SAJESH PC <pc.sajesh800@gmail.com
>     <ma...@gmail.com>>
>     >
>     > Hi,
>     > I have set up a http server with the configuration given as
>     > attachment. But it is not serving javascript files from the folder
>     > javascript. It is giving a 404 return code. The real intention here
>     > is that the javascript files should not be accessible directly but
>     > through html files only or when accessed through software only. How
>     > to correct the configuration file.
> 
>     Have you looked at the output in your errors file? It will likely be
>     rather more informative than a simple "404".
> 
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by Tatsuki Makino <ta...@hotmail.com>.
Hello.

I understood why everyone was having a hard time :)
With the default log level, no error log seems to be written in case of a 404 error.

As far as that access log is concerned,
Does teacherregister.php exist in /var/www/html ?
If so, do /var/www/html/javascript/*.js exist?
We would like to confirm that first.
Or change the level of error logging to more verbose side.

Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by SAJESH PC <pc...@gmail.com>.
Hi
Iam sharing  the /var/log/apache2/access.log.
regards
Sajesh

On Thu, Mar 31, 2022 at 12:53 AM Paul <st...@stormy.ca> wrote:

> On 2022-03-30 2:17 p.m., SAJESH PC wrote:
> > Iam sharing a screenshot of the browser console errors. Hope this helps.
>
> Probably not an apache error.  In the <head> section of your HTML, you
> should have something like:
> <script src="../jscrips/whatever.js"></script>
> and it might be that you've just got the path wrong.
>
> Otherwise pleas send, as text, the relevant lines from /var/log/apache
> -- either error.log or auth.log
>
> P.
>
> >
> > On Wed, Mar 30, 2022 at 8:14 PM Richard <
> lists-apache@listmail.innovate.net>
> > wrote:
> >
> >>
> >>
> >>> Date: Wednesday, March 30, 2022 15:57:52 +0530
> >>> From: SAJESH PC <pc...@gmail.com>
> >>>
> >>> Hi,
> >>> I have set up a http server with the configuration given as
> >>> attachment. But it is not serving javascript files from the folder
> >>> javascript. It is giving a 404 return code. The real intention here
> >>> is that the javascript files should not be accessible directly but
> >>> through html files only or when accessed through software only. How
> >>> to correct the configuration file.
> >>
> >> Have you looked at the output in your errors file? It will likely be
> >> rather more informative than a simple "404".
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by Frank Gingras <th...@apache.org>.
As well, do not forget that you will need to bump the log level to see
useful details about 404 errors on 2.4.

On Wed, 30 Mar 2022 at 15:23, Paul <st...@stormy.ca> wrote:

> On 2022-03-30 2:17 p.m., SAJESH PC wrote:
> > Iam sharing a screenshot of the browser console errors. Hope this helps.
>
> Probably not an apache error.  In the <head> section of your HTML, you
> should have something like:
> <script src="../jscrips/whatever.js"></script>
> and it might be that you've just got the path wrong.
>
> Otherwise pleas send, as text, the relevant lines from /var/log/apache
> -- either error.log or auth.log
>
> P.
>
> >
> > On Wed, Mar 30, 2022 at 8:14 PM Richard <
> lists-apache@listmail.innovate.net>
> > wrote:
> >
> >>
> >>
> >>> Date: Wednesday, March 30, 2022 15:57:52 +0530
> >>> From: SAJESH PC <pc...@gmail.com>
> >>>
> >>> Hi,
> >>> I have set up a http server with the configuration given as
> >>> attachment. But it is not serving javascript files from the folder
> >>> javascript. It is giving a 404 return code. The real intention here
> >>> is that the javascript files should not be accessible directly but
> >>> through html files only or when accessed through software only. How
> >>> to correct the configuration file.
> >>
> >> Have you looked at the output in your errors file? It will likely be
> >> rather more informative than a simple "404".
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by Paul <st...@stormy.ca>.
On 2022-03-30 2:17 p.m., SAJESH PC wrote:
> Iam sharing a screenshot of the browser console errors. Hope this helps.

Probably not an apache error.  In the <head> section of your HTML, you 
should have something like:
<script src="../jscrips/whatever.js"></script>
and it might be that you've just got the path wrong.

Otherwise pleas send, as text, the relevant lines from /var/log/apache 
-- either error.log or auth.log

P.

> 
> On Wed, Mar 30, 2022 at 8:14 PM Richard <li...@listmail.innovate.net>
> wrote:
> 
>>
>>
>>> Date: Wednesday, March 30, 2022 15:57:52 +0530
>>> From: SAJESH PC <pc...@gmail.com>
>>>
>>> Hi,
>>> I have set up a http server with the configuration given as
>>> attachment. But it is not serving javascript files from the folder
>>> javascript. It is giving a 404 return code. The real intention here
>>> is that the javascript files should not be accessible directly but
>>> through html files only or when accessed through software only. How
>>> to correct the configuration file.
>>
>> Have you looked at the output in your errors file? It will likely be
>> rather more informative than a simple "404".
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by SAJESH PC <pc...@gmail.com>.
Iam sharing a screenshot of the browser console errors. Hope this helps.

On Wed, Mar 30, 2022 at 8:14 PM Richard <li...@listmail.innovate.net>
wrote:

>
>
> > Date: Wednesday, March 30, 2022 15:57:52 +0530
> > From: SAJESH PC <pc...@gmail.com>
> >
> > Hi,
> > I have set up a http server with the configuration given as
> > attachment. But it is not serving javascript files from the folder
> > javascript. It is giving a 404 return code. The real intention here
> > is that the javascript files should not be accessible directly but
> > through html files only or when accessed through software only. How
> > to correct the configuration file.
>
> Have you looked at the output in your errors file? It will likely be
> rather more informative than a simple "404".
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Unable to load javascript files with the apache configuration file

Posted by Richard <li...@listmail.innovate.net>.

> Date: Wednesday, March 30, 2022 15:57:52 +0530
> From: SAJESH PC <pc...@gmail.com>
>
> Hi,
> I have set up a http server with the configuration given as
> attachment. But it is not serving javascript files from the folder
> javascript. It is giving a 404 return code. The real intention here
> is that the javascript files should not be accessible directly but
> through html files only or when accessed through software only. How
> to correct the configuration file. 

Have you looked at the output in your errors file? It will likely be
rather more informative than a simple "404".



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org