首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >文件不存在: /htdocs

文件不存在: /htdocs
EN

Server Fault用户
提问于 2011-02-04 01:16:10
回答 1查看 6.3K关注 0票数 3

我刚刚启动了一个新的亚马逊ec2实例,我跟踪这些航向,当我访问站点时,我得到了这个

代码语言:javascript
复制
  File does not exist: /htdocs

另外,如何获得此服务器的弹性ip,因为在amazon控制台上它是空的。

我不知道这是什么..i,看这个

代码语言:javascript
复制
 Linux domU-12-31-39-02-5D-E7 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:06:04 UTC 2009 i686

ServerAdmin网站管理员@localhost

代码语言:javascript
复制
    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

 Alias /doc/ "/usr/share/doc/"
 <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
     Deny from all
     Allow from 127.0.0.0/255.0.0.0 ::1/128
     </Directory>

    </VirtualHost>
EN

回答 1

Server Fault用户

回答已采纳

发布于 2011-02-04 04:26:58

只是我忘了启用defualt vhost

代码语言:javascript
复制
 a2ensite default
票数 4
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/230947

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档