使用laravel在Azure上的webapp [英] Use laravel on azure webapp

查看:241
本文介绍了使用laravel在Azure上的webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是与幼虫开发的,然后我试图用蔚蓝色的Web服务器。

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

我在抄袭文件夹laravel C:\\的Inetpub \\ wwwroot的\\ laravel5 。接下来,我运行php工匠服务。

I am copying folder laravel in C:\inetpub\wwwroot\laravel5. Next I run php artisan serve.

然后我上测试的http://本地主机:8000 /指数(在远程websever测试)。这没关系。

Then I test on http://localhost:8000/index (test on remote websever). It's ok.

但是,如果我访问我的网址,例如 http://bobdict.cloudapp.net/index ,它说找不到网页。

But if I access my url for example http://bobdict.cloudapp.net/index, it say page not found.

这是什么问题?

我是新手这个,对不起。

I am a newbie for this, sorry.

推荐答案

看来你使用的是IIS托管在Azure虚拟机PHP应用程序。

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

由于laravel应用程序的入口在位于公共文件夹中。您可以测试浏览 http://bobdict.cloudapp.net/public/index 来测试你是否有成功部署应用laravel。然后配置为友好的URL模式URL重写。您可以在应用程序的根目录手动创建 web.config中。
您可以参考 HTTP://blog.qbotx。 COM /基本-laravel-5对微软Azure的部分-1 / 的web.config

As the entrance of laravel application locates in public folder in the root directory of the application. You can test to browse http://bobdict.cloudapp.net/public/index 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 http://blog.qbotx.com/basic-laravel-5-on-microsoft-azure-part-1/ for the content of web.config.

这篇关于使用laravel在Azure上的webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆