I have a website set up on Azure which I'd like to deploy a PHP site to.
In WAMP I have the following vhosts config:
<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
How can I configure the Azure website to use a similar config?
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. Install Apache server on the vm and do the necessary configuration. ( Or you coudld simply install WAMP in it)
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.
I have written a blog post on How to create a VM on azure . You could use it if you like.
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.