File does not exist fichiers Javascript
Bonjour toout le monde,
Je suis développeur C/C++ et dans un cadre semi-professionnel je souhaiterais installer CDash (technologie LAMP) sur mon serveur Apache (version 2.2.22 par défaut sur Debian 7).
Débutant en matière de techno web :roll: , j'ai tout de même réussi à installer CDash sur un serveur, activer le module PHP, gestion des logs, DocumentRoot dans /srv/www/CDash, ....
Néanmoins je rencontre actuellement un problème, se situant je pense dans la configuration de mon script Apache. Les pages PHP font appellent à des fichiers Javascript, or ces derniers semblent inacessibles. Pourtant ils sont tous bien installés dans le répertoire DocumentRoot à savoir
Code:
/srv/www/CDash/javascript
mais Apache les cherche dans le répertoire
Code:
/usr/share/javascript
Le fichier de log retourne:
Code:
1 2 3 4 5
| [Sat Sep 07 17:56:17 2013] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/jquery-1.6.2.js, referer: http://mydashboard.org/createProject.php
[Sat Sep 07 17:56:17 2013] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/ui.tabs.js, referer: http://mydashboard.org/createProject.php
[Sat Sep 07 17:56:17 2013] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/cdashCreateProject.js, referer: http://mydashboard.org/createProject.php
[Sat Sep 07 17:56:17 2013] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/ui.tabs.js, referer: http://mydashboard.org/createProject.php
[Sat Sep 07 17:56:17 2013] [error] [client 127.0.0.1] File does not exist: /usr/share/javascript/cdashCreateProject.js, referer: http://mydashboard.org/createProject.php |
Et voici mon fichier de config pour le serveur:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <VirtualHost *:80>
ServerName www.mydashboard.org
ServerAlias mydashboard.org
#ServerAdmin XXXXXXXXXXXXXXX
DocumentRoot /srv/www/CDash
<Directory /srv/www/CDash/>
AddHandler application/x-httpd-php .php
DirectoryIndex index.html index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mydashboard/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/mydashboard/access.log combined
</VirtualHost> |
Pour info un accès au repertoire via le browser
Code:
http://mydashboard.org/javascript/
me retourne une erreur 403.
Si quelqu'un aurait un conseil j'ai tenté pas mal de choses avec les command Alias, ScriptAlias mais sans savoir vraiment ce que je faisais :aie:
Merci d'avance,
Cordialement,
Julien