#1
Greetings to everyone.

When the default port is changed in Apache, for example to 8080, the pagination stops working because it redirects to the default port, which is 80. How can we solve this issue without having to modify the admin.js file and risking the loss of those changes in future framework updates? Thank you.
#2
Have you made sure that you have updated your config/config.php base url to include the ports?
(*/ = Trongate application name unless you have it in your root directory example http:/localhost/trongateappname/ )

to look like example port 8080


If so and you are still having issues you can always configure Apache as a reverse proxy using apache's ProxyPass

In XAMPP, the Apache configuration file is located in the apache directory within your XAMPP installation folder. The default path is typically C:\xampp\apache\conf\httpd.conf.

Open the configuration file httpd.cong or an included file like sites-enabled/000-default.config
Then locate the section that states where your Trongate application
then add these lines inside the above mentioned


shut down and restart Apache
*Be sure to use whatever port you have changed it to from 80*
and make sure to update your config/config.php file to reflect the changes I mentioned above.

I hope this helps let me know if you need more help.
#3
Hello
Thanks for your answer, the config of Trongate App point to localhost:8080 and it works fine, but when I change de number of record drop down (pagination), this redirect to localhost (redirect via javascript admin.js file).

I working a testing project, local for learning. But I want to learn in detail this topic.

I'will check the reverse proxy config, thanks very much for you answer.
#4
Hi,

All of this ports bullschitt ...is bullschitt.

I'm going to take a wild guess and assume that you're using MAMP.

Am I right?
#5
Hi, I'm using XAMPP, Debian 11 and XAMPP Windows 10.
Thanks.
#6
Hi guys,

I just changed my port to 8080 (Xampp, Windows 11, Apache/2.4.56 (Win64) OpenSSL/1.1.1t PHP/8.1.17, 10.4.28-MariaDB).

By stopping Apache and editing this line in httpd.conf

Restarting Apache

Edited the config in my test app called 'A5' to:

Then add a smaller number in the dropdown for pagination of the Bands controller as I didn't have that many records, only 3:

Navigated to:

And all works as expected when I narrowed down the 'Records Per Page' to '2' - it showed two records, clicked the '2' button on pagination, and successfully navigates to the 3rd record - no error with the Javascript in admin.js

I can't reproduce any problems using port 8080.