我刚刚启动了一个新的亚马逊ec2实例,我跟踪这些航向,当我访问站点时,我得到了这个
File does not exist: /htdocs另外,如何获得此服务器的弹性ip,因为在amazon控制台上它是空的。
我不知道这是什么..i,看这个
Linux domU-12-31-39-02-5D-E7 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:06:04 UTC 2009 i686ServerAdmin网站管理员@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>发布于 2011-02-04 04:26:58
只是我忘了启用defualt vhost
a2ensite defaulthttps://serverfault.com/questions/230947
复制相似问题