简体   繁体   中英

Azure App Service PHP Laravel CSS not loaded

I have facing problem on running PHP Laravel on Azure App Service with Windows environment. I have follow this tutorial on my current laravel app: https://docs.microsoft.com/en-us/azure/app-service/tutorial-php-mysql-app?pivots=platform-windows

I have set the virtual path into public: 在此处输入图片说明

While the app is running functionally, but the css and image are not loaded. The images and css are all in public folder.

在此处输入图片说明

Anyone has suggestion on web.config or event htaccess that I need to edit?

Thank You

If you just want to expose some static files under a physical path: site\\wwwroot\\public to the public, please config your virtual directory as below:

在此处输入图片说明

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