1. TechSpot is dedicated to computer enthusiasts and power users. Ask a question and give support. Join the community here.
    TechSpot is dedicated to computer enthusiasts and power users.
    Ask a question and give support.
    Join the community here, it only takes a minute.
    Dismiss Notice

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

By donniem ยท 5 replies
Apr 4, 2017
Post New Reply
  1. My link to this particular website worked fine and everything was working like expected. One particular day I tried to access the same site and I received this message? You don't have permission to access /on this server.
    What caused the error, and more importantly what can I do to restore access to that site?
     
  2. jobeard

    jobeard TS Ambassador Posts: 13,020   +1,561

    Post the url which creates this error . . . .
     
  3. marko88

    marko88 TS Rookie Posts: 17

    The uncorrect url I think
     
  4. lvlpost

    lvlpost TS Rookie

    You need to update your apache http.conf file so you can access the directories that serve your pages.

    <Directory "c:/wamp/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>
     
  5. jobeard

    jobeard TS Ambassador Posts: 13,020   +1,561

    Yes, that's what to do IF HE OWNS the server - - never clear that he does :sigh:
     
  6. jobeard

    jobeard TS Ambassador Posts: 13,020   +1,561

    On a real Linux based server it would be more like
    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    <Directory "${SRVROOT}/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>​
     

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...