Laravel images loading on localhost but not on server - laravel

I have my application setup locally and on an ubuntu server. Locally everything works fine and images are loading just fine but not on the server. The image path is the same but on the server I see the 404 Not Found page when trying to see an image. Could someone point me in the right direction? Do I need to do some configuration on the server to get it to work?

Related

SSL_ERROR_INTERNAL_ERROR_ALERT when accessing api platform

API Platform V.2.6.5 with docker-compose downloaded from the official website
Problem : I can't send requests to the API, or access the UI from my browser. I'm facing a SSL_ERROR_INTERNAL_ERROR_ALERT
This is a brand new project I did not edit any file.
Note that i'm using Docker Toolbox for Windows and my docker is running on https://192.168.100.0, not localhost.
I tried on anoter PC where the domain for docker is localhost and it works.
However, the containers start well. I can even create entities and update my database.
Do you have an idea why this error is happening and how to resolve this ?
Most likely it's a caddy thing not having a valid SSL certificate, check at
docker-compose logs caddy
Here is an issue at caddy community: https://caddy.community/t/local-ip-address-creates-ssl-error/11314

Prestashop 1.7.5.0 Live server issue

I'm using prestashop 1.7.5.0 its work fine in my localhost. But hosted in the live server it will not work.
I'm already tried this https://hostadvice.com/how-to/how-to-migrate-a-prestashop-site-from-local-host-to-live-server/

Docker spring boot oauth

I'm hoping that someone can help me out here.
I'll try to give as much information as I can but this is a work project so have to be very careful how much I post.
The situation is this. The user attempts to connect to a web page, as they are not authenticated they are re-directed to an oauth server and are presented with a login page. When the user completes login they are then re-directed back to the original URL and are presented with the landing page.
The projects are spring boot and when I run them locally everything works as intended.
I have created docker images and can run the containers and the projects are connecting to a eureka server with on the correct network with the correct hostname.
The issue that I have is that when I attempt to get to the web page, I can track the logs and see that the re-direct is happening and I can see the re-direct URL in the browser bar but then it seems to stop. The oauth server logs shows that nothing is happening and there is no login page presented. The web UI and the oauth server are both docker images and both use spring boot with java 8.
There isn't a firewall issue as the containers are running on the same subnet. The projects are copies of projects that are already running in another section of the network so I know that they do run ok.
Any pointers would be greatly appreciated.
ok so an update to this, it turns out that the server running the docker engine was running on a unix server but that was actually running inside of a Hyper-V container which was interfering with the network traffic and the redirects, I asked to have the image removed and started working on the windows server directly, I would have preferred to work on unix but there we go. So if you are working remotely where you are deploying docker images to a container engine on a remote server and getting redirect issues, this may be one thing to look at, especially if you can run your system locally without any issues.

docker: what is the similar url in docker as compared to XAMMP/MAMP

I am using docker for the codeigniter project development. Initially, when I used MAMP or XAMMP, the login page was localhost/xyz/admin/login as the server used to run on localhost (php server). But, the docker server is running on localhost:8000 and I am trying to open localhost:8000/xyz/admin/login but it shows an error that page you requested not found. Does someone know the answer to this problem? I have also tried localhost:8000/myapp_1/xyz/admin/login , localhost:8000/myapp_1/admin/login etc. but nothing seems to work.
Thanks in advance!

Xampp Is Messing Up?

First Apache wouldn't work with me so I had to change the port number which fixed everything so that is good, but then I went online and found this
"Start Apache and MySQL and go to localhost in your browser (on the same machine as your server). If this is your first time browsing the local site, you should now see a webpage with the XAMPP logo and a choice of languages. Click on your preferred language."
When I type in localhost:8080 (Apache port), it comes up this I have no clue how to make it so I'm taken to the XAMPP Logo where the languages are. -.- Help please.
Try this :
Just create a sample html page in htdocs of your apache folder and try to access it in browser.
If you name it is as index.html, you just have to write localhost in the browser or localhost/.html
This will make sure your server is working.
And in cmd prompt run mysql -u -p status to check the status of mysql that will check whether mysql is working or not.

Resources