MediaSmartServer.net
http://www.mediasmartserver.net/forums/

You are not authorized to view this page
http://www.mediasmartserver.net/forums/viewtopic.php?f=5&t=9522
Page 1 of 1

Author:  jas1931 [ Thu Nov 18, 2010 12:55 pm ]
Post subject:  You are not authorized to view this page

This may not the the right place to ask this question, here goes anyway!

I'm trying to learn PHP and MySQL using the my EX495 WHS using my local network. With the test folder/files in the WebSite folder of the WHS.
I have an index.html which I use an link-menu to to go to the examples from the book. I run an example with a file name: example17-3.php, it run ok. I then take a break :beerme: and when I come back and to the example I get the mesage "You are not authorized to view this page ......".

I go to the WHS and using Adv Admin add-in look at the security properties (like I thought I knew what I'm doing) and don't see any problem. I continue playing around trying to get it to run, and run other examples in the same folder without problem.

I made a copy of the "example17-3.php" and name it "example.php" and link to it and got the correct result. Again using Adv Admin add-in looked and compared the properties. They look the same.

How do I correct this problem? What am I doing to create this problem?

Jim Smith

Author:  yakuza [ Fri Nov 19, 2010 1:27 pm ]
Post subject:  Re: You are not authorized to view this page

I'd check the IIS logs to see what error message it's giving for the refused connection.

Author:  jas1931 [ Fri Nov 19, 2010 1:46 pm ]
Post subject:  Re: You are not authorized to view this page

Where can I find the iis log?
Jim

Author:  yakuza [ Fri Nov 19, 2010 2:17 pm ]
Post subject:  Re: You are not authorized to view this page

C:\WINDOWS\system32\Logfiles\W3SVC1

Author:  jas1931 [ Fri Nov 19, 2010 6:24 pm ]
Post subject:  Re: You are not authorized to view this page

I could not find the original entries in the log so I created some new one. I do not see anything except for the 401 error code for the bad file and zero for the good one, the only difference is the file name.

I will try to print is out here, it worked.

Thanks anyway, Jim Smith

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2010-11-19 00:00:00
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status

2010-11-18 23:59:59 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:02 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:02 W3SVC1 192.168.1.109 GET /phpTest/example17-3.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 401 5 5

2010-11-19 23:15:11 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:11 W3SVC1 192.168.1.109 GET /phpTest/example.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 200 0 0

2010-11-19 23:15:11 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:17 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:17 W3SVC1 192.168.1.109 GET /phpTest/example.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 200 0 0

2010-11-19 23:15:17 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:24 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:24 W3SVC1 192.168.1.109 GET /phpTest/example.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 200 0 0

2010-11-19 23:15:24 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:28 W3SVC1 192.168.1.109 GET /phpTest/example17-3.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 401 5 5

2010-11-19 23:15:33 W3SVC1 192.168.1.109 GET /PushClient/JIMHPTAB/connection - 80 - 192.168.1.107 - 200 0 0

2010-11-19 23:15:33 W3SVC1 192.168.1.109 GET /phpTest/example17-3.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 401 5 5

2010-11-19 23:15:43 W3SVC1 192.168.1.109 GET /phpTest/example.php - 80 - 192.168.1.100 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10.6;+en-US;+rv:1.9.2.12)+Gecko/20101026+Firefox/3.6.12+GTB7.1 200 0 0

Author:  yakuza [ Sat Nov 20, 2010 12:26 pm ]
Post subject:  Re: You are not authorized to view this page

example.php is giving 200 response codes (which is good), and example17-3.php is giving a 401 response code. If the content of the files is identical, I don't know what's going on, sorry.

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/