"Forbidden"

Problems with the Windows version of XAMPP, questions, comments, and anything related.

"Forbidden"

Postby Gerhard_W » 04. January 2021 23:31

Hi,
I installed XAMP without any problems.
When I now want to access my local Sites I get the message "You don't have permission to access this resource".
The urls are defined in hosts and in the conf file of Apache.
Where can I begin to find the reason of the error?
Gerhard_W
 
Posts: 23
Joined: 03. October 2018 19:28
XAMPP version: 3.2.2
Operating System: Windows 8.1

Re: "Forbidden"

Postby Altrea » 04. January 2021 23:34

Hi,

Gerhard_W wrote:When I now want to access my local Sites I get the message "You don't have permission to access this resource".
The urls are defined in hosts and in the conf file of Apache.
Where can I begin to find the reason of the error?

Apache access rules / virtual host configuration / access.log
We cannot help, we do not know anything about your specific configuration.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11934
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: "Forbidden"

Postby Gerhard_W » 04. January 2021 23:50

This is what ma error-log shows:
Code: Select all
[Mon Jan 04 23:43:45.952144 2021] [ssl:warn] [pid 4504:tid 576] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 04 23:43:46.121772 2021] [ssl:warn] [pid 4504:tid 576] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 04 23:43:46.153013 2021] [mpm_winnt:notice] [pid 4504:tid 576] AH00455: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.0 configured -- resuming normal operations
[Mon Jan 04 23:43:46.153013 2021] [mpm_winnt:notice] [pid 4504:tid 576] AH00456: Apache Lounge VS16 Server built: Oct  2 2020 11:45:39
[Mon Jan 04 23:43:46.153013 2021] [core:notice] [pid 4504:tid 576] AH00094: Command line: 'apache\\bin\\httpd.exe -d D:/xampp/apache'
[Mon Jan 04 23:43:46.168635 2021] [mpm_winnt:notice] [pid 4504:tid 576] AH00418: Parent: Created child process 1072
[Mon Jan 04 23:43:46.723188 2021] [ssl:warn] [pid 1072:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 04 23:43:46.785949 2021] [ssl:warn] [pid 1072:tid 568] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 04 23:43:46.807802 2021] [mpm_winnt:notice] [pid 1072:tid 568] AH00354: Child: Starting 150 worker threads.
[Mon Jan 04 23:43:51.606864 2021] [authz_core:error] [pid 1072:tid 1836] [client 127.0.0.1:50067] AH01630: client denied by server configuration: D:/hp/xxxxxx/index.html
[Mon Jan 04 23:43:51.628582 2021] [authz_core:error] [pid 1072:tid 1836] [client 127.0.0.1:50067] AH01630: client denied by server configuration: D:/hp/xxxxxx/favicon.ico, referer: http://www.xxxxxx.de/index.html
Gerhard_W
 
Posts: 23
Joined: 03. October 2018 19:28
XAMPP version: 3.2.2
Operating System: Windows 8.1

Re: "Forbidden"

Postby Altrea » 04. January 2021 23:52

Take a look into your vhost configuration where you defined the access rules for D:/hp/xxxxxx/
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11934
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: "Forbidden"

Postby Gerhard_W » 05. January 2021 00:05

Code: Select all
<VirtualHost 127.0.0.1:80>
  ServerName xxxxxx.de
  DocumentRoot "D:/hp/xxxxxx"
</VirtualHost>

<VirtualHost 127.0.0.1:80>
  ServerName www.xxxxxx.de
  DocumentRoot "D:/hp/xxxxxx"
</VirtualHost>
Gerhard_W
 
Posts: 23
Joined: 03. October 2018 19:28
XAMPP version: 3.2.2
Operating System: Windows 8.1

Re: "Forbidden"

Postby Altrea » 05. January 2021 07:27

You did not permit Apache to serve any files from that directory. Add this inside your vhost
Code: Select all
<Directory "D:/hp/xxxxxx">
    Require all granted
</Directory>
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11934
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: "Forbidden"

Postby Gerhard_W » 05. January 2021 12:07

Thank you!
Gerhard_W
 
Posts: 23
Joined: 03. October 2018 19:28
XAMPP version: 3.2.2
Operating System: Windows 8.1

Re: "Forbidden"

Postby Altrea » 05. January 2021 12:22

You're welcome :D
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11934
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 265 guests