Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mifta13's avatar

Base URL Laravel

I have ECS server in Alibabacloud using Ubuntu 20. I'm uploaded the laravel project into server. with http, my project run perfectly. Then I installed SSL into my laravel project. The SSL was installed successfully. but when I open in browser, the route calling 127.0.0.1:8005 not my domain.

When I view page source, it's seen like this

<link rel="icon" href="ht*tp://127.0.0.1:8005/template/images/logo-sma.png">
<link href="ht*tp://127.0.0.1:8005/template/css/style.css" rel="stylesheet">
<link href="ht*tp://127.0.0.1:8005/template/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">

I edited my .env like this

APP_URL=ht**tps://portal.serbamuliaauto.com

Is there something I forgot to edit?

0 likes
3 replies
DhPandya's avatar

Clear your configuration cache. php artisan optimize:clear

mifta13's avatar

@DhPandya still nothing. In my ubuntu server, base php is PHP 5 version. Because of that, I used proxy in virtual host to run PHP 8. My virtual host config looks like this

 ProxyPass / http://127.0.0.1:8005/
 ProxyPassReverse / http://127.0.0.1:8005/

I think root cause problem is from this proxy

DhPandya's avatar

@mifta13 If it is unchangeable, you can add ASSET_URL in your .env file and manually specify the URL of the assets and then use:

<link href="{{asset('location/yourfile.css')}}" />

Please or to participate in this conversation.