【发布时间】:2016-09-27 07:51:24
【问题描述】:
我在 /home/azureuser 目录下创建了 2 个 laravel 应用程序。
我想在单个 ubuntu 虚拟机上运行多个 laravel 应用程序。我尝试配置虚拟主机但无法使其工作。
以下是/etc/apache2/sites-enabled/000-default.conf的内容
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName apitesting.cloudapp.net/demo
DocumentRoot /home/azureuser/demoapp/public
<Directory /home/azureuser/demoapp/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
SetEnv APPLICATION_ENV dev
LogLevel warn
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName apitesting.cloudapp.net/quiz
DocumentRoot /home/azureuser/quizapp/public
<Directory /home/azureuser/quizapp/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
SetEnv APPLICATION_ENV dev
LogLevel warn
</VirtualHost>
不确定以上是否正确。
【问题讨论】:
标签: php azure ubuntu virtualhost