search

Home  >  Q&A  >  body text

Why is my Apache running normally, but a 403 error is displayed when I enter localhost in the browser? The code I have written is placed under the WW directory, but it cannot be displayed.

QQ图片20180227074153.pngQQ图片20180227074159.pngQQ图片20180227074219.png

白糖拌西瓜白糖拌西瓜2504 days ago1376

reply all(3)I'll reply

  • Don't cry

    Don't cry2018-02-27 18:12:29

    Check which default files are defined in apache, and then see if there are corresponding files in the localhost root directory

    reply
    0
  • 雕花笼

    雕花笼2018-02-27 13:23:23

    If there is no index file (index.html/index.php), there will also be a 403 error.

    reply
    0
  • Day

    Day2018-02-27 09:29:21

    Check if there is a php file in your site directory!

    reply
    0
  • Cancelreply