Page 1 of 1

Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 19:22
by divedj
Installed XAMP 3.2.2 on Windows 7 32 bit and creating a virtual server it gives a 403 error. Windows hosts file is updated and the vhosts in apache config is as follows:

Code: Select all
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "C:/Users/Dieter/webprojects/servicerecords/public"
    ServerName gsr-servicerecords
    <Directory "C:/Users/Dieter/webprojects/servicerecords/public">
        AllowOverride All
        Order Allow,Deny
        Require all granted
    </Directory>
</VirtualHost>


Yes, the index.php does exist.
I am running Bitdefender professional inc. fierwall and virus scan. Bitdefender was turned off on installation and looking in the logs it did not block anything.
Another article I found about modifying the bottom part of the httpd-xamp.conf file, - the part with <LocationMatch> does not exist in this version. I tried to add it with the same result.
Any ideas would be kindly apreciated.

Re: Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 19:28
by Nobbie
Probably Apache (which runs as user "System" if started as service) may not access "C:/Users/Dieter/webprojects/servicerecords/public", which belongs to User "Dieter" Only. Error 403 means exactly, that Apache cannot access the requested file.

Re: Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 19:53
by divedj
Die Aenderung von "system" user zu user und gruppe "Dieter" kommt mit dem gleichen Ergebnis zurueck - Error 403.

Re: Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 19:54
by Altrea
What is the contents of the Apache access.log file?

Re: Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 19:59
by divedj
The last lines of the apache access log:
127.0.0.1 - - [22/Aug/2020:20:51:11 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:51:13 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:51:16 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:52:09 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:52:09 +0200] "GET /favicon.ico HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:52:11 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"

Re: Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 20:07
by divedj
Thats the complete access log. Just found while typing the vhosts file, in the original file it does read gsr-servicerecords as in the access log. The directory I changed and removed the public and added another index file to make sure the htaccess file in the public folder is not the cause.

::1 - - [22/Aug/2020:19:23:20 +0200] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:21 +0200] "GET /dashboard/ HTTP/1.1" 200 7577 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:23 +0200] "GET /dashboard/stylesheets/normalize.css HTTP/1.1" 200 6876 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:23 +0200] "GET /dashboard/javascripts/modernizr.js HTTP/1.1" 200 51365 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:23 +0200] "GET /dashboard/javascripts/all.js HTTP/1.1" 200 188385 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:23 +0200] "GET /dashboard/images/xampp-logo.svg HTTP/1.1" 200 5427 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:23 +0200] "GET /dashboard/images/bitnami-xampp.png HTTP/1.1" 200 22133 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:23 +0200] "GET /dashboard/images/fastly-logo.png HTTP/1.1" 200 1770 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:31 +0200] "GET /dashboard/images/social-icons.png HTTP/1.1" 200 3361 "http://localhost/dashboard/stylesheets/all.css" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:23:32 +0200] "GET /dashboard/images/favicon.png HTTP/1.1" 200 2508 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:10 +0200] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:10 +0200] "GET /dashboard/ HTTP/1.1" 200 7577 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/stylesheets/normalize.css HTTP/1.1" 200 6876 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/javascripts/modernizr.js HTTP/1.1" 200 51365 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/javascripts/all.js HTTP/1.1" 200 188385 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/stylesheets/all.css HTTP/1.1" 200 481698 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/images/fastly-logo.png HTTP/1.1" 200 1770 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/images/xampp-logo.svg HTTP/1.1" 200 5427 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:18 +0200] "GET /dashboard/images/bitnami-xampp.png HTTP/1.1" 200 22133 "http://gsr-servicerecords/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:20 +0200] "GET /dashboard/images/social-icons.png HTTP/1.1" 200 3361 "http://gsr-servicerecords/dashboard/stylesheets/all.css" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:24:20 +0200] "GET /dashboard/images/favicon.png HTTP/1.1" 200 2508 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:25:26 +0200] "GET /home/index HTTP/1.1" 404 1188 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:25:26 +0200] "GET /favicon.ico HTTP/1.1" 200 30894 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:34:17 +0200] "GET /home/index HTTP/1.1" 404 1188 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:29 +0200] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:29 +0200] "GET /dashboard/ HTTP/1.1" 200 7577 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:30 +0200] "GET /dashboard/stylesheets/normalize.css HTTP/1.1" 200 6876 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:30 +0200] "GET /dashboard/images/fastly-logo.png HTTP/1.1" 200 1770 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:30 +0200] "GET /dashboard/images/bitnami-xampp.png HTTP/1.1" 200 22133 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:30 +0200] "GET /dashboard/images/xampp-logo.svg HTTP/1.1" 200 5427 "http://localhost/dashboard/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:31 +0200] "GET /dashboard/images/social-icons.png HTTP/1.1" 200 3361 "http://localhost/dashboard/stylesheets/all.css" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:19:34:31 +0200] "GET /dashboard/images/favicon.png HTTP/1.1" 200 2508 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:35:46 +0200] "GET /home/index HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:36:52 +0200] "GET /home/index HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:37:11 +0200] "GET /index.php HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:50:28 +0200] "GET /index.php HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:17 +0200] "GET /index.php HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:20 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/index.php" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:24 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:45 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:46 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:47 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:51:50 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:52:29 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:19:52:31 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
::1 - - [22/Aug/2020:20:36:58 +0200] "GET / HTTP/1.1" 403 1142 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:51:11 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:51:13 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:51:16 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:52:09 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:52:09 +0200] "GET /favicon.ico HTTP/1.1" 403 1139 "-" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"
127.0.0.1 - - [22/Aug/2020:20:52:11 +0200] "GET / HTTP/1.1" 403 1151 "http://gsr-servicerecords/" "Mozilla/5.0 (Windows NT 6.1; rv:79.0) Gecko/20100101 Firefox/79.0"

Re: Error 403 all done what I found in the Forum

PostPosted: 22. August 2020 23:25
by Nobbie
divedj wrote:Die Aenderung von "system" user zu user und gruppe "Dieter" kommt mit dem gleichen Ergebnis zurueck - Error 403.


Wie auch immer, die Fehlerursache ist, dass Windows dem Apachen nicht erlaubt, die Daten zu lesen. Das ist von hier aus schwer zu erkennen, woran das liegt, aber das ist das Problem.