A
A
alekssamos2020-08-04 18:32:59
Apache HTTP Server
alekssamos, 2020-08-04 18:32:59

Why is the apache2 javascript-common.conf file needed and what does it do? How does it work?

I found this file /etc/apache2/conf-available/javascript-common.conf
Question: What does it indicate, how and why does it work? Does Apache allow scripting like .conf configurations and .htaccess files to change options on the fly? How does NGINX have such a feature. Or not, was it created for other purposes?

Alias /javascript /usr/share/javascript/

<Directory "/usr/share/javascript/">
  Options FollowSymLinks MultiViews
</Directory>

What scripts are in that folder? When are they used?
On error pages, for example, 404 or 500, no scripts are connected.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2020-08-05
@alekssamos

Nonsense that doesn't affect anything.
Apache allows unthinkable perversions with configs, and many people use it.
If we read it literally, we get the following:
"When accessing the /javascript URL element (ie www.zhopa/javascript/zadnica.js), look for the zadnica.js file in the /usr/share/javascript
directory" "To the /usr/share/ directory javascript set the MultiViews option"
If there is no /usr/share/javascript directory or you didn't create such a config yourself - well, put it away - most likely nobody needs it.

V
Vladimir Korotenko, 2020-08-04
@firedragon

You can delete it, in fact it is some kind of alias for scripts. Perhaps it refers to the Apache documentation, but do you need it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question