[英]Azure website PHP vhosts
I have a website set up on Azure which I'd like to deploy a PHP site to. 我在Azure上建立了一个网站,我想将一个PHP站点部署到该网站。
In WAMP I have the following vhosts config: 在WAMP中,我具有以下vhosts配置:
<VirtualHost *:9898>
ServerAdmin wayne@localhost
ServerName test.somesite.com
DocumentRoot "C:\wamp\www\somesite-ui\www"
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "C:\wamp\www\somesite-ui\www">
AllowOverride All
Order allow,deny
allow from all
</Directory>
# Rewrite configuration
Include "C:\wamp\www\somesite-ui\rewrite.conf"
</VirtualHost>
This is because we're using Atsumi MVC 这是因为我们正在使用Atsumi MVC
How can I configure the Azure website to use a similar config? 如何配置Azure网站以使用类似的配置?
I am not sure that this answer will help you. 我不确定该答案是否会对您有所帮助。 But instead of just creating a php web site, you could create a VM first with any operating system, and enable http end points to the vm.
但是,不仅可以创建一个php网站,还可以首先使用任何操作系统创建一个VM,并启用指向VM的http端点。 Install Apache server on the vm and do the necessary configuration.
在vm上安装Apache服务器并进行必要的配置。 ( Or you coudld simply install WAMP in it)
(或者您只需在其中安装WAMP)
azure web sites has the address lite somthing.azuresites.net (not sure) azure vm will have "somthing.cloudapp.net" so the domain name won't be a much problem for you. azure网站的地址为lite somthing.azuresites.net(不确定)azure vm将具有“ somthing.cloudapp.net”,因此域名对您来说不会有太大问题。
I have written a blog post on How to create a VM on azure . 我写了一篇有关如何在azure上创建VM的博客文章。 You could use it if you like.
您可以根据需要使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.