PDF 404 error with custom webroot

Discussion in 'General' started by Keagan, Apr 27, 2020.

  1. Keagan

    Keagan Member

    Hey,

    I have custom webroot in ISPConfig configured

    Code:
    DocumentRoot "/var/www/clients/client1/web18/web/web/"
    <Directory {DOCROOT}>
    Options -SymLinksIfOwnerMatch +FollowSymLinks
    </Directory>
    In that root directory I have directory "manual" but I can't access any files in there, there are PDFs which are giving me 404 error when I am trying to access them via browser on url like http://site/manual/file.PDF

    any idea where is the problem?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Do the files and directories have correct owner and permissions?
     
  3. Keagan

    Keagan Member

    yes they does, and rights are 755.
     
  4. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    is it right that that ends in web18/web/web/ ? or is that a mistype on here? or in your config?

    it may be fine and the problem is actually something else entirely, but for the sake of a couple of minutes testing, it may be worth setting your vhost config files docroot back to it's ispconfig default, and trying to adjust it as a variable in the site options tabs apache directives:

    DocumentRoot {DOCROOT}/web

    also maybe you need your <Directory *path* > directives to be as both /var/www/clients/client1/web18/web/web/ and /var/www/domain.tld/web/web/

    these changes probably won't make any difference, because I can't actually see anything wrong with how you've done it, but it can't hurt to try them out.
     

Share This Page