Apache(Solaris 10):2个符号链接到相同的文件,一个工作,另一个不工作

我看到了Apache的一个奇怪的问题

我有一个系统,从Web服务器拉取configuration文件。 我想使用名称为“ocds-dpsarch01a.rules”的符号链接。 这不起作用。 但是,如果我改变这个名字中的一个字符,并将其链接到同一个文件,它的作品 – 见下文

我想不出有什么理由为什么一个符号链接工作时,另一个不呢? 我会认为Apacheconfiguration是正确的,所有的符号链接工作,或者它不是和没有系统链接工作(?)

任何想法欢迎

# ls -l /REMOVED/apache2/htdocs/rules/syslog/*cds-dpsarch01a.rules lrwxrwxrwx 1 root root 62 May 13 13:55 ocds-dpsarch01a.rules -> /REMOVED/apache2/htdocs/templates/syslog/DCM_SST_DPST_01.rules lrwxrwxrwx 1 root root 62 May 13 13:52 xcds-dpsarch01a.rules -> /REMOVED/apache2/htdocs/templates/syslog/DCM_SST_DPST_01.rules 

1)应用程序启动并成功从Web服务器读取configuration

 13/05/2010 13:56:37: Information: Connecting ... 13/05/2010 13:56:37: Debug: Reading REMOVED:// REMOVED /rules/syslog/xcds-dpsarch01a.rules 13/05/2010 13:56:37: Debug: HTTP response: HTTP/1.1 200 OK Date: Thu, 13 May 2010 13:56:34 GMT Server: Apache Last-Modified: Fri, 09 Apr 2010 12:28:26 GMT ETag: "5073-a744-ee92ae80" Accept-Ranges: bytes Content-Length: 42820 Cache-Control: max-age=5 Expires: Thu, 13 May 2010 13:56:39 GMT NL7C-Filtered: Content-Type: text/plain Connection: close 13/05/2010 13:56:37: Debug: Plain text rules file detected. 

2)应用程序启动,无法从Web服务器读取configuration

 13/05/2010 13:56:55: Information: Connecting ... 13/05/2010 13:56:55: Debug: Reading REMOVED :// REMOVED /rules/syslog/ocds-dpsarch01a.rules 13/05/2010 13:56:55: Debug: HTTP response: HTTP/1.1 403 Forbidden Date: Wed, 12 May 2010 15:25:11 GMT Server: Apache Vary: accept-language,accept-charset Accept-Ranges: bytes Connection: close Content-Type: text/html; charset=iso-8859-1 Content-Language: en Expires: Wed, 12 May 2010 15:25:11 GMT 13/05/2010 13:56:55: Error: HTTP: HTTP/1.1 403 Forbidden Date: Wed, 12 May 2010 15:25:11 GMT Server: Apache Vary: accept-language,accept-charset Accept-Ranges: bytes Connection: close Content-Type: text/html; charset=iso-8859-1 Content-Language: en Expires: Wed, 12 May 2010 15:25:11 GMT 13/05/2010 13:56:55: Error: HTTP GET failed 13/05/2010 13:56:55: Error: Failed to open Rules file: REMOVED :// REMOVED /rules/syslog/ocds-dpsarch01a.rules 

请求的应用程序是否有可能以不同的方式处理这两个名称? 查看2个HTTP请求上的请求头,并确保它们是相同的。

您还应该查看pipe理该目录的.htaccess文件(如果有)以及httpd.conf,以查看是否有任何使用特定名称保护文件的规则。 此引用可能有所帮助: http : //httpd.apache.org/docs/2.2/sections.html#file-and-web