search

Home  >  Q&A  >  body text

Why does it show that there is no permission to access?

The following is the question

Forbidden

You don't have permission to access / on this server.


谁知谁知2271 days ago1392

reply all(2)I'll reply

  • 劳动者是第一生产力@鑫鑫@

    劳动者是第一生产力@鑫鑫@2018-11-05 14:07:45

    1. The accessed document has insufficient permissions. Requires permissions above 755. Solution: Use the command chmod 755 /var/www/ or other corresponding directories.
    2. Reasons for SELinux or firewall. Solution: First turn off SELinux and let the firewall pass the WWW service.
    3. Virtual host configuration error. For example, I encountered this once:

    reply
    0
  • 谁知

    Thank you. Solved! It's the third question

    谁知 · 2018-12-03 19:22:36
  • Cancelreply