发布于 2016-02-25 14:50:08
找到一些有更好文档的贴标代码的更好的文档版本。这是使apache服务器正确运行所需的全部选项列表(修改/etc/apache2/apache2.conf)。
<Directory "/var/www/LabelMeAnnotationTool">
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AddHandler cgi-script .cgi
AllowOverride all
Require all granted
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
DirectoryIndex index.shtml
</Directory>发布于 2016-02-23 19:22:46
cd /etc/apache2/sites-available/
nano 000-default.conf搜索DocumentRoot /var/www/html (ctrl+w类型/var/www/html)
/var/www/html替换为/home/labelme,将标记移动到/home/目录保存文件1000-default.conf (ctrl+x和y> enter)
编辑/etc/apache2/apache2.conf文件
在以下几行之后添加:
<Directory /home/labelme/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>重新启动apache2 web服务器:
service apache2 restart并在浏览器中输入以下URL
http://127.0.0.1/或http://localhost/
https://askubuntu.com/questions/738253
复制相似问题