Dev server throwing 403 error on images...help?

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

Dev server throwing 403 error on images...help?

Postby jackanape » 10. October 2014 15:01

Well, this has been going on for a while now, and it began last year on my old xampp install, but I just ignored it, but I'm prepping up for a new site rewrite, and I simply can't go forward without getting xampp up and running properly again.

The symptoms:
When running my site on localhost, everything loads except for the images, most of which are called via the CSS. Naturally, this makes it hard to work around, although the rest of the code, php, etc., works fine.
When attempting to view the images in my browser, I get a 403 error. This seems odd, since it's all on the same machine here, right?

At this point, I'm simply desperate to figure this problem out. I've pored through the forums here, and as many online references I could find, my permissions are all OK, so any and all help is appreciated!

My error logs:
Code: Select all
[Fri Oct 10 09:29:40.943727 2014] [ssl:warn] [pid 4708:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:29:41.539761 2014] [ssl:warn] [pid 4708:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:29:41.672768 2014] [mpm_winnt:notice] [pid 4708:tid 420] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31 configured -- resuming normal operations
[Fri Oct 10 09:29:41.672768 2014] [mpm_winnt:notice] [pid 4708:tid 420] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:07:40
[Fri Oct 10 09:29:41.672768 2014] [core:notice] [pid 4708:tid 420] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Fri Oct 10 09:29:41.674768 2014] [mpm_winnt:notice] [pid 4708:tid 420] AH00418: Parent: Created child process 4496
[Fri Oct 10 09:29:42.496815 2014] [ssl:warn] [pid 4496:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:29:42.997844 2014] [ssl:warn] [pid 4496:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:29:43.074849 2014] [mpm_winnt:notice] [pid 4496:tid 432] AH00354: Child: Starting 150 worker threads.
[Fri Oct 10 09:35:08.581240 2014] [ssl:warn] [pid 5684:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:35:08.688247 2014] [core:warn] [pid 5684:tid 420] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Oct 10 09:35:09.173274 2014] [ssl:warn] [pid 5684:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:35:10.327319 2014] [mpm_winnt:notice] [pid 5684:tid 420] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31 configured -- resuming normal operations
[Fri Oct 10 09:35:10.336320 2014] [mpm_winnt:notice] [pid 5684:tid 420] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:07:40
[Fri Oct 10 09:35:10.336320 2014] [core:notice] [pid 5684:tid 420] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Fri Oct 10 09:35:10.349320 2014] [mpm_winnt:notice] [pid 5684:tid 420] AH00418: Parent: Created child process 4736
[Fri Oct 10 09:35:11.182368 2014] [ssl:warn] [pid 4736:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:35:11.740400 2014] [ssl:warn] [pid 4736:tid 432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 10 09:35:11.815404 2014] [mpm_winnt:notice] [pid 4736:tid 432] AH00354: Child: Starting 150 worker threads.


And just in case, here's my access log:
Code: Select all
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/print.css HTTP/1.1" 200 541 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/gottatalk.css HTTP/1.1" 200 8163 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /images/content/joinnowlg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/menu.css HTTP/1.1" 200 4490 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/containers.css HTTP/1.1" 200 7240 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/news.css HTTP/1.1" 200 1080 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET / HTTP/1.1" 200 20498 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /images/content/joinnowlg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /images/content/learnmorelg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /images/content/join.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/images/bodybg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/images/frontpage.jpg HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:29:59 -0400] "GET /styles/images/line.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:13 -0400] "GET /styles/gottatalk.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:13 -0400] "GET /styles/print.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:13 -0400] "GET / HTTP/1.1" 200 20498 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:13 -0400] "GET /images/content/joinnowlg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /styles/containers.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /styles/menu.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /styles/news.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /images/content/joinnowlg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /styles/images/bodybg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /styles/images/frontpage.jpg HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /images/content/learnmorelg.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /images/content/join.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
127.0.0.1 - - [10/Oct/2014:09:35:14 -0400] "GET /styles/images/line.png HTTP/1.1" 403 1042 "http://localhost/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
jackanape
 
Posts: 2
Joined: 10. October 2014 14:53
Operating System: windows 7

Re: Dev server throwing 403 error on images...help?

Postby JJ_Tagy » 10. October 2014 15:21

Sounds like you either have a absolute vs relative url issue or you have an .htaccess or other permissions set where you don't want them.
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: Dev server throwing 403 error on images...help?

Postby jackanape » 10. October 2014 15:49

Sigh...of course...I got so involved in the server end, I never checked my htaccess file! I threw a little bit into there to prevent hotlinking a year or so ago--right when this started--and it caused this!

Well, at least I've upgraded to the latest xampp package out of the deal! LOL

Thanks so much for the help! I couldn't see the forest for the trees...
jackanape
 
Posts: 2
Joined: 10. October 2014 14:53
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 53 guests