Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

302
Visualizações
Apache can't load files through url, dirlisting works though. Mounted share and symbolic linking involved

I'm trying to make files from a share available through apache directory index listing. (Internal only), not accessible from external.

I installed apache 2.4, mounted a shared folder under /mnt/sharedfolder

then put a symbolic link under /var/www/html/mysharedfolder to that mounted folder.

if I go to http://myserverip/mysharefolder , the dirlisting works fine and I can browse the folders and see which files they have.

However when I click on a pdf , docx, jpg , ... it goes straight to Connection reset from Chrome.

In the access log I can see the requests and a 200 response.

The strange thing however is, if I smash the refresh button fast, sometimes a file will succeed in showing/downloading and then the access.log shows for that request 304.

I'm not really sure what is going on.

my virtualhost looks like this :


ServerAdmin webmaster@localhost

DocumentRoot /var/www/html

DirectoryIndex index.html

<Location />

Require ip 192.168.1.0/24

Require ip 192.168.5.0/24

Require ip 192.168.10.0/24

</Location>

<Directory /var/www/html>

Options Indexes FollowSymlinks

AllowOverride None

Require all granted

</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>```
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda