VPS server set up on 1&1

SpiderMax7 years ago

Hi i have been setting up traccar on 1&1 hosting and im most of the way there i have followed this guide which was real good.
https://www.traccar.org/forums/topic/installing-traccar-v3-9-on-ubuntu-16-10-server-x84_x64-on-remote-vps-via-ssh/

The issue i have is i cant change the web port.

This bit all looks ok as i do it.

Now lets redirect traccar port 8082 to http port 80

$ sudo a2enmod ssl
$ sudo a2enmod proxy_http
$ sudo a2enmod proxy_wstunnel
$ sudo service apache2 restart

but then when i edit
Add the following lines to /etc/apache2/sites-available/domain-le-ssl.conf

my file is empty so i have coppied the text the writer had put on the page and saved it but i still cant access via port 80 only 8082

Am i missing somthing

the web link is tracking.gpstrackinguk.co.uk but if i go to that without a port i get a configuration page.

Thanks
Max

Anton Tananaev7 years ago

You are talking about port 80, but you seem to change SSL config. That doesn't make sense.

SpiderMax7 years ago

yes i am,
i was just following this part of that guide i found.

Now lets redirect traccar port 8082 to http port 80

$ sudo a2enmod ssl
$ sudo a2enmod proxy_http
$ sudo a2enmod proxy_wstunnel
$ sudo service apache2 restart
Add the following lines to /etc/apache2/sites-available/domain-le-ssl.conf

ProxyPass /api/socket ws://localhost:8082/api/socket
    ProxyPassReverse /api/socket ws://localhost:8082/api/socket
    ProxyPass / http://localhost:8082/
    ProxyPassReverse / http://localhost:8082/

it didnt seem to make sense to me as i read that you change the port in the default.xml file which worked when i was at home and when i set it up on my RasPi, i did try changing it but still get the same config page that is there now when you go to port 80

Anton Tananaev7 years ago

It's not an official guide. I would recommend to contact author about your problem.