403 Forbidden You don’t have permission to access / on this server

Asked

Viewed 1,533 times

0

I have the following Virutalhost Configured on my server

Listen 8080
<VirtualHost *:8080>
    ServerAdmin application
    DocumentRoot "C:\wamp\www\application\public"
    ServerName localhost application.com.br
    ErrorLog "logs/application.log"
    CustomLog "logs/application.log" common
</VirtualHost>

When I access my localhost application or network works correctly but when I access via domain application.com.br the following error is shown

403 Forbidden You don't have permission to access / on this server
  • 4

    Here http://application.com.br/ opens an English school. (It’s supposed to be a joke, before some unsuspecting person gets serious about it) :)

  • I searched here and it seems to be the configuration of your apache. Take a look here

1 answer

2

The right thing would be:

<VirtualHost *:8080>
    DocumentRoot "C:\wamp\www\application\public"
    ServerName application.com.br
    ErrorLog "logs/application.log"
    CustomLog "logs/application.log" common
</VirtualHost>

You added a space in Servername, can not this, in my test always presented an error when performing this kind of thing.

Another thing and edit your hosts files to support the application.com.br address for your local IP, otherwise you will never access the test application.

read the read the following article to clarify all doubts on the subject.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.