Apache no Parallels CentOS falha ao ler arquivos do host OSX

3

O servidor virtual Parallels é o CentOS 5.5, o sistema host é o OSX Snow Leopard

Dentro do CentOS, o sistema de arquivos do host é montado:

none          /media/psf   prl_fs   sync,nosuid,nodev,noatime,share     0       0

O Apache está sendo executado no CentOS e possui o seguinte alias apontando para o sistema de arquivos do host

Alias /ca_media /home/django/soft-link-via-media-psf/media
<Location "/ca_media">
    SetHandler None
    ExpiresActive on
    ExpiresDefault "access plus 1 week"
    FileETag MTime Size
</Location>

É bizarro neste momento, do anfitrião aqui é uma demonstração. Parece que alguns arquivos simplesmente não serão atendidos - mas outros o farão. Não consigo ver qualquer distinção entre os dois (note que "pgevr" é o meu nome para a máquina do CentOS conforme configurado em /etc/hosts ):

~/Projects/er_trunk/media/er/js$ ls -l navagation_menu.js 
-rw-r--r--  1 millere  staff  702 Sep 21  2009 navagation_menu.js
~/Projects/er_trunk/media/er/js$ curl http://pgevr/ca_media/er/js/navagation_menu.js
curl: (18) transfer closed with 702 bytes remaining to read
~/Projects/er_trunk/media/er/js$ echo 'foo' > bar.js
~/Projects/er_trunk/media/er/js$ curl http://pgevr/ca_media/er/js/bar.js
foo
~/Projects/er_trunk/media/er/js$ ls -l bar.js 
-rw-r--r--  1 millere  staff  4 Oct 21 11:51 bar.js
~/Projects/er_trunk/media/er/js$ file navagation_menu.js 
navagation_menu.js: ASCII text
~/Projects/er_trunk/media/er/js$ file bar.js 
bar.js: ASCII text
~/Projects/er_trunk/media/er/js$ cp navagation_menu.js bar.js 
~/Projects/er_trunk/media/er/js$ curl http://pgevr/ca_media/er/js/bar.js
curl: (18) transfer closed with 702 bytes remaining to read

Esse problema tem a ver com os dois sistemas de arquivos ou com o tipo de sistema de arquivos montado? Como você investigaria isso?

[EDIT .. aqui está o resultado da solicitação de onda com falha com --trace-ascii]

~/Projects/er_trunk/media/er/js$ curl --trace-ascii -  http://pgevr/ca_media/er/js/navagation_menu.js
== Info: About to connect() to pgevr port 80 (#0)
== Info:   Trying 10.211.55.9... == Info: connected
== Info: Connected to pgevr (10.211.55.9) port 80 (#0)
=> Send header, 154 bytes (0x9a)
0000: GET /ca_media/er/js/navagation_menu.js HTTP/1.1
0031: User-Agent: curl/7.19.6 (i386-apple-darwin10.0.0) libcurl/7.19.6
0071:  zlib/1.2.3
007e: Host: pgevr
008b: Accept: */*
0098: 
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Fri, 22 Oct 2010 16:51:19 GMT
<= Recv header, 31 bytes (0x1f)
0000: Server: Apache/2.2.3 (CentOS)
<= Recv header, 46 bytes (0x2e)
0000: Last-Modified: Thu, 21 Oct 2010 21:55:19 GMT
<= Recv header, 27 bytes (0x1b)
0000: ETag: "2be-4932794f5ffc0"
<= Recv header, 22 bytes (0x16)
0000: Accept-Ranges: bytes
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 702
<= Recv header, 31 bytes (0x1f)
0000: Cache-Control: max-age=604800
<= Recv header, 40 bytes (0x28)
0000: Expires: Fri, 29 Oct 2010 16:51:19 GMT
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv header, 40 bytes (0x28)
0000: Content-Type: application/x-javascript
<= Recv header, 2 bytes (0x2)
0000: 
<= Recv data, 0 bytes (0x0)
== Info: transfer closed with 702 bytes remaining to read
== Info: Closing connection #0
curl: (18) transfer closed with 702 bytes remaining to read
    
por EMiller 21.10.2010 / 20:57

1 resposta

2

Eu tive o mesmo problema e descomentar o EnableSendfile Off em /etc/httpd/conf/httpd.conf funcionou para mim (como sugerido por Deutch em um tópico acima).

    
por 29.10.2010 / 18:15