Apache-2.2

文件不存在:/htdocs

  • February 4, 2011

我剛剛解雇了一個新的亞馬遜 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>

發現只是我忘記啟用預設虛擬主機

a2ensite default

引用自:https://serverfault.com/questions/230947