【发布时间】:2016-01-12 11:40:07
【问题描述】:
图片显示我放在终端上:
sudo vim /etc/apache2/sites-available/fusion_invoice.dev.conf
在那之后 sitepoint.com 说我需要在下面复制粘贴:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/fusioninvoice
ServerName fusion.invoice.dev #change this setting according to your domain name
DirectoryIndex index.php
<Directory /var/www/fusioninvoice>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
我不知道要更改哪条路径。
帮助!
【问题讨论】:
-
这与编程无关。尝试您尝试部署的应用程序的支持区域。此外,如果您实际上正在运行该应用程序,请在将其投入生产之前了解 apache 和 php。
-
好的病毒盗。谢谢。