Non Brazilian Non Brazilian - 1 year ago 106
PHP Question

Use laravel on azure webapp

My project is developed with larval, then i am trying to use azure for web server.

I am copying folder laravel in

. Next I run php artisan serve.

Then I test on
(test on remote websever). It's ok.

But if I access my url for example
, it say page not found.

What is the problem?

I am a newbie for this, sorry.

Answer Source

It seems you are using IIS to host your PHP application on Azure VM.

As the entrance of laravel application locates in public folder in the root directory of the application. You can test to browse to test whether you have deploy laravel application successfully. Then to config URL rewrite for friendly URL pattern. You can create the web.config manually in your root directory of your application. You can refer to for the content of web.config.