亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2488 | 回復: 3
打印 上一主題 下一主題

[Web] 菜鳥求助:apache 中的 SSI 問題(已解決) [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2008-11-25 21:38 |只看該作者 |倒序瀏覽
環(huán)境:
redhat as 4.4 使用 rpm包安裝 apache 2.0 +php4+mysql4.1
網(wǎng)站為 php 和 shtml 的

apache SSI 相關配置

<Directory "/var/www/html">
    Options Indexes Includes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
虛擬主機配置

<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/html/xxxx.org.cn
    ServerName www.xxxx.org.cn
    ErrorLog logs/xxxx.org.cn-error_log
    CustomLog logs/xxxx.org.cn-access_log common
</VirtualHost>

現(xiàn)象:service 運行php其他網(wǎng)站正常,但上面的虛擬主機對應的網(wǎng)站,配置好SSI后,運行ok了,但今天不知道什么原因顯示有問題了。

部分報錯日志

[client 121.29.176.89] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/XXXX.org.cn/new_xxxx/inc/ifr_login_index_wynn.php on line 50, referer: http://www.xxxx.org.cn/new_xxxx/index_wynn_div.shtml
[client 121.29.176.89] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxx.org.cn/new_xxxx/inc/ifr_login_index_wynn.php on line 56, referer: http://www.xxxx.org.cn/new_xxxx/index_wynn_div.shtml

[ 本帖最后由 cnzg_y 于 2008-11-26 12:12 編輯 ]

論壇徽章:
0
2 [報告]
發(fā)表于 2008-11-25 22:45 |只看該作者
從貼出的虛擬主機部分的配置文件來看 沒有什么問題,但是log 貼的太少,不能看出具體問題根源。建議貼上系統(tǒng)的 log 和 apache 的 error log 文件來進行分析。

論壇徽章:
0
3 [報告]
發(fā)表于 2008-11-25 22:58 |只看該作者
原帖由 liang3391 于 2008-11-25 22:45 發(fā)表
從貼出的虛擬主機部分的配置文件來看 沒有什么問題,但是log 貼的太少,不能看出具體問題根源。建議貼上系統(tǒng)的 log 和 apache 的 error log 文件來進行分析。


apache 的 error 如下
[Tue Nov 25 17:58:14 2008] [notice] Digest: done
[Tue Nov 25 17:58:14 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Nov 25 17:58:14 2008] [notice] LDAP: SSL support unavailable
[Tue Nov 25 17:58:14 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Nov 25 17:58:14 2008] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[Tue Nov 25 18:06:09 2008] [notice] caught SIGTERM, shutting down
[Tue Nov 25 18:06:10 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Nov 25 18:06:10 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 25 18:06:10 2008] [notice] Digest: done
[Tue Nov 25 18:06:10 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Nov 25 18:06:10 2008] [notice] LDAP: SSL support unavailable
[Tue Nov 25 18:06:10 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Nov 25 18:06:10 2008] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[Tue Nov 25 18:08:48 2008] [notice] SIGHUP received.  Attempting to restart
[Tue Nov 25 18:08:48 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 25 18:08:48 2008] [notice] Digest: done
[Tue Nov 25 18:08:48 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Nov 25 18:08:48 2008] [notice] LDAP: SSL support unavailable
[Tue Nov 25 18:08:48 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Nov 25 18:08:49 2008] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[Tue Nov 25 18:15:28 2008] [notice] SIGHUP received.  Attempting to restart
[Tue Nov 25 18:15:28 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 25 18:15:28 2008] [notice] Digest: done
[Tue Nov 25 18:15:28 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Nov 25 18:15:28 2008] [notice] LDAP: SSL support unavailable
[Tue Nov 25 18:15:28 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Nov 25 18:15:29 2008] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations

只是如上的重復,沒有其他的信息。

虛擬主機的error[Tue Nov 25 21:58:05 2008] [error] [client 219.243.36.16] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 202.160.179.113] PHP Notice:  Undefined variable:  username in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 2
[client 202.160.179.113] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 3
[client 202.160.179.113] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 16
[client 202.160.179.113] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 22
[client 202.160.179.113] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 28
[client 202.160.179.113] PHP Notice:  Undefined index:  rows in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/template.php on line 235
[client 202.160.179.113] PHP Notice:  Undefined variable:  msgs in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/mysql.php on line 73
[Tue Nov 25 22:02:02 2008] [error] [client 202.106.90.2] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 60.213.84.224] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:07:10 2008] [error] [client 61.240.219.190] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 72.30.142.164] PHP Notice:  Undefined variable:  username in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 2
[client 72.30.142.164] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 3
[client 72.30.142.164] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 16
[client 72.30.142.164] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 22
[client 72.30.142.164] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 28
[client 72.30.142.164] PHP Notice:  Undefined variable:  msgs in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/mysql.php on line 73
[client 72.30.142.164] PHP Notice:  Undefined index:  rows in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/template.php on line 235
[client 58.246.231.106] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[client 58.246.231.106] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:15:41 2008] [error] [client 72.30.142.164] File does not exist: /var/www/html/xxxxx.xxxx.cn/new_xxxxx/news/20081030_102558_411680.shtml
[client 202.160.178.121] PHP Notice:  Undefined variable:  username in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 2
[client 202.160.178.121] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 3
[client 202.160.178.121] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 16
[client 202.160.178.121] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 22
[client 202.160.178.121] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 28
[client 202.160.178.121] PHP Notice:  Undefined variable:  total in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/count_click.php on line 47
[client 202.160.178.121] PHP Notice:  Undefined index:  rows in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/template.php on line 235
[client 59.38.217.207] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:18:25 2008] [error] [client 222.136.72.243] File does not exist: /var/www/html/xxxxx.xxxx.cn/new_xxxxx/index.shtml, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index.shtml
[Tue Nov 25 22:18:55 2008] [error] [client 220.181.61.216] File does not exist: /var/www/html/xxxxx.xxxx.cn/robots.txt
[client 60.210.60.142] PHP Notice:  Undefined variable:  username in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 2, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 3, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 16, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 22, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/common.php on line 28, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined variable:  msgs in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/mysql.php on line 73, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined index:  rows in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/template.php on line 235, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[client 60.210.60.142] PHP Notice:  Undefined variable:  msgs in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/mysql.php on line 73, referer: http://www.baidu.com/s?lm=0& ... amp;uim=1&usm=0
[Tue Nov 25 22:26:44 2008] [error] [client 72.30.142.164] File does not exist: /var/www/html/xxxxx.xxxx.cn/robots.txt
[Tue Nov 25 22:31:05 2008] [error] [client 59.42.89.38] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 59.38.217.207] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:32:33 2008] [error] [client 59.42.89.38] File does not exist: /var/www/html/xxxxx.xxxx.cn/new_xxxxx/news/20081014_154825_889130.shtml
[Tue Nov 25 22:32:33 2008] [error] [client 59.42.89.38] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 219.142.245.247] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 45, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[client 219.142.245.247] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 50, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[client 219.142.245.247] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 56, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[client 219.142.245.247] PHP Notice:  Undefined variable:  html in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 62, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[Tue Nov 25 22:33:03 2008] [error] [client 219.142.245.247] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[Tue Nov 25 22:33:04 2008] [error] [client 219.142.245.247] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 59.57.182.211] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:35:07 2008] [error] [client 123.204.56.154] File does not exist: /var/www/html/xxxxx.xxxx.cn/new_xxxxx/favicon.ico
[Tue Nov 25 22:35:08 2008] [error] [client 123.204.56.154] File does not exist: /var/www/html/xxxxx.xxxx.cn/new_xxxxx/favicon.gif
[client 58.246.231.106] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:39:11 2008] [error] [client 211.94.76.4] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[Tue Nov 25 22:39:14 2008] [error] [client 211.94.76.4] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[client 59.38.217.207] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[client 60.213.84.224] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[client 58.251.231.228] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 45, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[client 58.251.231.228] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 50, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[client 58.251.231.228] PHP Notice:  Undefined variable:  usr_flag in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 56, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[client 58.251.231.228] PHP Notice:  Undefined variable:  html in /var/www/html/xxxxx.xxxx.cn/new_xxxxx/inc/ifr_login_index_wynn.php on line 62, referer: http://www.xxxxx.xxxx.cn/new_xxxxx/index_wynn_div.shtml
[Tue Nov 25 22:48:38 2008] [error] [client 58.251.231.228] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[Tue Nov 25 22:48:49 2008] [error] [client 58.251.231.228] File does not exist: /var/www/html/xxxxx.xxxx.cn/favicon.ico
[Tue Nov 25 22:49:53 2008] [error] [client 220.181.61.211] File does not exist: /var/www/html/xxxxx.xxxx.cn/robots.txt
[Tue Nov 25 22:50:27 2008] [error] [client 220.181.61.211] File does not exist: /var/www/html/xxxxx.xxxx.cn/article
[client 116.24.52.14] script '/var/www/html/xxxxx.xxxx.cn/new_xxxxx/admin_behind/insertreply.php' not found or unable to stat
[Tue Nov 25 22:53:13 2008] [error] [client 72.30.79.30] File does not exist: /var/www/html/xxxxx.xxxx.cn/robots.txt

俺對 php 也不是熟悉,看日志,Google了 一下,覺得php的代碼應該是有問題。
請樓上的看看

論壇徽章:
0
4 [報告]
發(fā)表于 2008-11-26 12:17 |只看該作者
俺總以為是SSI 的問題,今天自己仔細在虛擬機上把那個網(wǎng)站的代碼掛上去測試了一下,發(fā)現(xiàn)是網(wǎng)站代碼寫的時候一些不規(guī)范(我只獲得了網(wǎng)站源代碼,沒有任何說明文檔,對碼代碼有不熟悉),虛擬主機需要特別的一些配置,還要根據(jù)報錯的日志,對一些目錄和文件修改權限。真是暈啊。謝謝 liang3391 兄的回帖啊。

[ 本帖最后由 cnzg_y 于 2008-11-26 12:19 編輯 ]
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP