简体   繁体   中英

Laravel pagination is not working after deploying it on AWS EC2 Sever

Laravel pagination not working properly after deploying the app on AWS EC2 server. It was working fine on the localhost using Xampp server. In the localhost, MySQL was used as the database whereas in AWS server Aurora MySQL database is used. It is basically a reporting page were the first page loads properly but whenever any other page is clicked from the below pagination links it shows loading for a long time then fails with the message "This site can't be reached". In the AWS EC2 server, Nginx is used. Can anyone help me solving this issue?

Thank you

I have found out the solution of the problem. The pagination pages were not https . As a result, it was not supporting. I used forced https which was working perfectly for other URLs but was not working for paginations. I used $users->setPath(''); after each paginate command to make those URL https. After taking the above-mentioned step, it worked properly. Thank you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM