The only solution I've found so far is to place Traccar in the main directory (/), but I already have a page there, so I don't want to replace it. I need to use a subdirectory instead.
Have you recompiled the app?
Yes, i have recompiled it with minify.sh, i don't encountered on my folder so i make it with nano
#!/bin/sh
cd /opt/traccar/web
SDK="../../ext-6.0.1"
sencha compile --classpath=app.js,app,$SDK/packages/core/src,$SDK/packages/core/overrides,$SDK/classic/classic/s>
exclude -all \
and \
include -recursive -file app.js \
and \
exclude -namespace=Ext \
and \
concatenate -closure app.min.js
The result was this
root@./minify.sh
Sencha Cmd v7.4.0.39
[INF] Loading compiler context
[INF] Processing data with ClosureCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /opt/traccar/web/app.min.js
Are you using the legacy app?
I really don't know, i just download it with this link
https://www.traccar.org/linux/
If you don't know, I would strongly recommend against using a sub-path. Our recommendation is a subdomain. Something like gps.trxxxg.com
.
Hi, my problem is that I've set up a redirect with my Apache2 server.
Here's the configuration:
<IfModule mod_ssl.c> <VirtualHost *:443> ServerName www.trxxxg.com ServerAlias trxxxg.com ServerAdmin xxxxxxxxxxxxxx DocumentRoot /var/www/html/main ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/trxxxg.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/trxxxg.com/privkey.pem ProxyRequests off ProxyPass /gps/api/socket ws://localhost:8082/api/socket ProxyPassReverse /gps/api/socket ws://localhost:8082/api/socket ProxyPass /gps/ http://localhost:8082/ ProxyPassReverse /gps/ http://localhost:8082/ ProxyPassReverseCookiePath / /gps/ Redirect permanent /gps /gps/ </VirtualHost> </IfModule>
The issue I'm encountering is that when I access my server at
https://trxxxg.com/gps/
, the page loads, but nothing appears. In the network tab, the .js and .css files of Traccar are returning a 404 Not Found error. I'm not sure why this problem is happening. Please, I need a solution.