文件不存在:/htdocs

文件不存在:/htdocs

我刚刚启动了一个新的 amazon ec2 实例,并遵循了这些方向当我访问地点

  File does not exist: /htdocs

另外,我如何获取此服务器的弹性 IP,因为在亚马逊控制台上它是空白的

我不知道这是什么样的 ubuntu..我看到了这个

 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
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    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>

答案1

我发现只是我忘了启用默认虚拟主机

 a2ensite default

相关内容