Wordpress and alias

Discussion in 'Technical' started by francoisPE, Oct 16, 2021.

  1. francoisPE

    francoisPE Member HowtoForge Supporter

    Hello,
    I have ispconfig3.2.6 with a website wordpress
    I have a set of pages in bootstrap already done, I want to add to that site trhough an iframe.
    I put my bootstrap pages in private/
    If I define Alias in apache snipset, I always have Error 403 Forbidden
    If I 'ln -s private/mypage web', it works...
    I try google it, but, I don't find out from which settings come that limitation...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check that the files and folders in private folder are all owned by the correct user and group (web user and client group of the site). If the symlink points to files owned e.g. by root, you will get a forbidden error.
     
  3. francoisPE

    francoisPE Member HowtoForge Supporter

    I checked
    Chown is ok in /private
    It seems to be more a .htacess rewrite rule...
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the error.log of the website if the error that is logged there contains more details.
     
  5. francoisPE

    francoisPE Member HowtoForge Supporter

    error.log told me 2 errors.
    One in my php file using $_server['php_self'] instead of basename($_server['php_self'])
    And also a problem of granted access I solve with
    LocationMatch and Require all granted
    Thanks a lot !
     

Share This Page