打造Ubuntu下的SLAMP
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 188
- 注册时间: 2005-07-18 18:20
- 来自: http://www.gdgpi.com.cn
- 联系:
[Tue Jul 19 13:41:25 2005] [error] [client 127.0.0.1] File does not exist: /var/www/drupal/system, referer: http://localhost/drupal/?q=admin/settings
[Tue Jul 19 13:41:26 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Tue Jul 19 13:41:34 2005] [error] [client 127.0.0.1] File does not exist: /var/www/drupal/system, referer: http://localhost/drupal/?q=admin/settings
[Tue Jul 19 13:41:35 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
看不明白,不过,肯定的是drupal下面从来都没有system,而favicon从来都是在drupal目录下的。
[Tue Jul 19 13:41:26 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Tue Jul 19 13:41:34 2005] [error] [client 127.0.0.1] File does not exist: /var/www/drupal/system, referer: http://localhost/drupal/?q=admin/settings
[Tue Jul 19 13:41:35 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
看不明白,不过,肯定的是drupal下面从来都没有system,而favicon从来都是在drupal目录下的。
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 188
- 注册时间: 2005-07-18 18:20
- 来自: http://www.gdgpi.com.cn
- 联系:
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 188
- 注册时间: 2005-07-18 18:20
- 来自: http://www.gdgpi.com.cn
- 联系:
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
RewriteRule 在你的站点定义中间。
例如这个主站点由于使用了zope,所以必须使用
$ more /etc/apache2/sites-enabled/sites.ubuntu.org.cn
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName ubuntu.org.cn
ServerAlias www.ubuntu.org.cn
RewriteEngine on
RewriteRule ^/(.*) http://127.0.0.1:9673/VirtualHostBase/h ... ostRoot/$1 [L,P]
<Proxy *>
Order Deny,Allow
Deny from all
Allow from all
</Proxy>
</VirtualHost>
例如这个主站点由于使用了zope,所以必须使用
$ more /etc/apache2/sites-enabled/sites.ubuntu.org.cn
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName ubuntu.org.cn
ServerAlias www.ubuntu.org.cn
RewriteEngine on
RewriteRule ^/(.*) http://127.0.0.1:9673/VirtualHostBase/h ... ostRoot/$1 [L,P]
<Proxy *>
Order Deny,Allow
Deny from all
Allow from all
</Proxy>
</VirtualHost>
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
更正:感谢YongYi兄弟找出了BUG!
在本文中有以下语句:
c)然后我们删除多余的数据库并去掉匿名帐号
[root@debian ~]mysql -u root -p
Enter password:XXXXXX
mysql> drop database test;
mysql> use mysql;
mysql> delete from db;
mysql> delete from user where not (host="localhost" and user="root");
mysql> flush privileges;
更正为
c)然后我们删除多余的数据库并去掉匿名帐号
[root@debian ~]mysql -u root -p
Enter password:XXXXXX
mysql> drop database test;
mysql> use mysql;
mysql> delete from db;
mysql> delete from user where user = '';
mysql> delete from user where not(host="localhost") and user="root";
mysql> flush privileges;
在本文中有以下语句:
c)然后我们删除多余的数据库并去掉匿名帐号
[root@debian ~]mysql -u root -p
Enter password:XXXXXX
mysql> drop database test;
mysql> use mysql;
mysql> delete from db;
mysql> delete from user where not (host="localhost" and user="root");
mysql> flush privileges;
更正为
c)然后我们删除多余的数据库并去掉匿名帐号
[root@debian ~]mysql -u root -p
Enter password:XXXXXX
mysql> drop database test;
mysql> use mysql;
mysql> delete from db;
mysql> delete from user where user = '';
mysql> delete from user where not(host="localhost") and user="root";
mysql> flush privileges;
我心无畏,源自于我心无知。


-
- 帖子: 3025
- 注册时间: 2005-05-07 23:57
- 联系:
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- drivel
- 帖子: 1918
- 注册时间: 2006-07-08 9:21
- 来自: University of Science and Technology Beijing
- 联系: