Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED DirectoryIndex no longer found without using trailing slash

Discussion in 'EasyApache' started by ottdev, Jul 9, 2018.

  1. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    114
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    old server Apache 2.2
    new server Apache 2.43, cpanel 72

    domain.tld/folder (without a trailing slash) does not find the index page anymore
    domain.tld/folder/ does find the page

    On all other servers I've had until now, the slash wasn't necessary.

    While I go off and try to find what Apache config can control this, I would like to know if it's a later version cPanel config which caused this change in behaviour - and if so, can I safely alter it or not?

    I see that cPanel also ran up against this:
    Mailman Archives Broken after Update

    They opted to fix the offending URLs, rather than a backwards compatibility fix.
    What did cPanel change previous that caused it to no longer work ?
     
    #1 ottdev, Jul 9, 2018
    Last edited by a moderator: Jul 9, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @ottdev

    I've been trying to test this and I have no issues getting an index page without a trailing slash when entered into the browser. Do you have an .htaccess file that could be interfering?

    As far as the mailman issue it looks like the URL for the archives was changed at some point so we had to change the way we called it in relation to another case CPANEL-4425 but neither is related to the issue you're experiencing - this issue was specific only to mailman
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    114
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Ooopsy. We found someone either forgot to set or had removed our DirectoryIndex list from the previrtualhost config. The names of the index pages in question were not in the very sparse default list of acceptable names.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @ottdev

    None the less, I'm really happy to see you were able to identify the source of this issue! Thank you for updating this thread as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice