但在局域网的另一台机器上使用本地IP为什么不能显示,为什么?谢谢。Index of /
Icon Name Last modified Size Description[ ]
testphp.php 08-Sep-2006 19:48 20
Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1 Server at localhost Port 80
请教有关Apache2的问题
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 21
- 注册时间: 2006-04-23 14:28
- 来自: 中国株洲
- 联系:
请教有关Apache2的问题
我用apt-get方式安装了Apache2,PHP,在本地使用localhost可以正常显示,
-
- 帖子: 21
- 注册时间: 2006-04-23 14:28
- 来自: 中国株洲
- 联系:
请指点一下。谢谢NameVirtualHost *
<VirtualHost *>
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
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</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
ServerSignature On
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.*
</Directory>
</VirtualHost>
- 夕阳
- 帖子: 192
- 注册时间: 2006-07-31 0:09
- 来自: 四季都好,若是你在
- 联系:
-
- 帖子: 21
- 注册时间: 2006-04-23 14:28
- 来自: 中国株洲
- 联系: