The installation page can not load to Finalize wizard after inputting Settings tab. When I click NEXT button, it was loading and remaining in the same page. I am using Azure WebApps to launch the Simple Forum V2.
- MSAnswered
Hello,
I am not sure about Azure but you can check error logs. You can check Laravel error logs in the
storage/logs/
folder too.Thank you
- MAnswered
The installation could not load CSS properly. Could you please help to investigate at: https://webtestjp-linux-v2-dscxfwaveahyesab.eastasia-01.azurewebsites.net/
- MSAnswered
Hello,
It looks like the SSL issue as I can see
Mixed Content
means the page is loaded over https:// but some request were made over http://You can update your APP_URL in the
.env
file tohttps://
and set your web server to redirect http:// to https://Thank you
- MAnswered
Hello
Even I added the APP_URL to .env file: APP_URL=https://webtestjp-linux-v2-dscxfwaveahyesab.eastasia-01.azurewebsites.net I also added ‘url’ => ‘https://webtestjp-linux-v2-dscxfwaveahyesab.eastasia-01.azurewebsites.net’ in config/app.php but it seems the web is still loading http://.
I even run: php artisan cache:clear and clear browser cache but things do not change, the CSS still can not load properly.
In addition, I have enabled HTTPS to redirect all HTTP traffic to HTTPS for Azure WebApps.
Could you help checking further.
Thank you.
- MSAnswered
Hello,
The APP_URL is for links generated by Laravel. Your web server is not redirecting the http traffic to https. I never used Azure but you can google to check and test. Once your server start redirecting the mix content error will go away and page will load fine.
Thank you
- MAnswered
Hello I was able to load the URL by adding ASSET_URL=https://webtestjp-linux-v2-dscxfwaveahyesab.eastasia-01.azurewebsites.net to .env file.
However, I found another problem is that under “View source code” the http:// is still using. This caused login failed. https://webtestjp-linux-v2-dscxfwaveahyesab.eastasia-01.azurewebsites.net/login
How I could fixed this issue? in config/app.php, I have set ‘url’ => env(‘APP_URL’, ‘https://webtestjp-linux-v2-dscxfwaveahyesab.eastasia-01.azurewebsites.net’),
Thank you.
- MSAnswered
Hello,
As I said earlier, you need to force https on your web server (apache/nginx) and Laravel will use the same that. This will be the correct solution.
You can use
forceScheme
on URL facade to for https by adding the following code inboot
method ofAppServiceProvider
URL::forceScheme('https');
Please don’t forget to import the Facade
use Illuminate\Support\Facades\URL;
Thank you
- MSAnswered
This answer on StackOverflow might be helpful
- MAnswered
Hello
Thank you for prompted response. I made it works by adding \Illuminate\Support\Facades\URL::forceScheme(‘https’); to AppServiceProvider.
You may close this case.
By the way, if possible please help me to delete the attachment "2024-10-03_100612 (16 kb) " I attached at the first message to forum. This was including our email which shall not disclose.
Thank you.
- Login to Reply