【发布时间】:2016-09-23 21:07:48
【问题描述】:
所以,我正在尝试在我的 VPS 上安装 Codiad,以便我和朋友可以一起开展项目,当我尝试索引 localhost/codiad 时,它给了我这个错误:
The requested URL /codiad was not found on this server.
然而,索引 localhost 工作得很好,它引导我进入正常的 apache 屏幕。以下是我的 default.conf 文件的内容,如果有帮助的话:
<VirtualHost *:80>
ServerName www.dsept.cf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /codiad /home/Tide/Codiad
<Directory "/home/Tide/Codiad">
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
如果这也有帮助,我也会关注本指南:https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-codiad-a-web-based-ide-on-an-ubuntu-vps,default.conf 的目录是 /etc/apache2/sites-available/default.conf
【问题讨论】:
-
经常运行 Apache 的用户无法查看您的主目录,因为您的主目录的权限禁止其他用户查看。该帐户的主目录的权限是什么?
-
我真的不知道,有没有办法检查@GrahamDumpleton
-
@GrahamDumpleton 没关系,我把 /home/Tide 改成 777 还是不行,我想补充一下,图标变成了 Codiad 徽标,缩略图,就像图片一样,我无法解释,只需尝试索引 dsept.cf/Codiad,您就会明白我的意思
-
您是否实际使用了包含
www.dsept.cf的网址。如果您不是,并且该 Apache 配置中有一个较早的VirtualHost,它将不会使用您的配置,因为它是为基于名称的虚拟主机设置的,这需要 URL 中的主机名。因此,它将回退到配置中的第一个VirtualHost。 -
@GrahamDumpleton 是的,我是,如何更改第一个虚拟主机?