Error 403 denied access

Support for webhosts that use CentOS
Post Reply
efernandez
Posts: 4
Joined: 2006/08/31 16:35:44

Error 403 denied access

Post by efernandez » 2006/08/31 17:04:44

Hi

I start up a CentOS server 4.3 with Apache and instaled a NOD32 antivirus Mirror edition.
My objetc is that in my net of Windows 2000 client, its, down the antivirus update from the server.
The files with update is in /var/lib/nod32/mirror/ and this folder and the files intro, its have read permision of owner, group of owner and other.
When in Window2000 Nod32 client run a update rutine, the nod32 client connect my server (192.168.0.4/nod_upd) and read de 1er file called update.ver. Then the client continuos with the next file called engine0.nup appears the error 403. The update.ver and engine0.nup have the same permision, read other.

Specification of my installation:
The apache run with root user.
I use alias /nod_upd/ to published the folder /var/lib/nod32/mirror

I probe give permission 777 to folder mirror and all file but the not work.

I probe changing the extension file name from .nup to .ver in file engine0 but not work.



Thanks.

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Error 403 denied access

Post by foxb » 2006/08/31 17:37:06

What is into apache logs?

efernandez
Posts: 4
Joined: 2006/08/31 16:35:44

Re: Error 403 denied access

Post by efernandez » 2006/08/31 18:08:07

In access log:

login as: root
root@192.168.0.4's password:
Last login: Wed Aug 30 10:19:54 2006
[root@srvnmb04 ~]# mc
access_log [----] 0 L:[174+19 193/195] *(36489/36891b)= 1 49 0x31
192.168.0.168 - - [30/Aug/2006:10:42:28 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 457 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:11:42:28 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:11:42:28 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 457 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:12:35:21 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:12:35:21 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:12:42:28 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:12:42:28 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:12:43:38 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:12:43:38 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:13:42:28 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:13:42:28 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:14:42:28 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:14:42:29 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:15:42:29 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:15:42:29 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:16:42:30 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [30/Aug/2006:16:42:30 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (
192.168.0.168 - - [31/Aug/2006:13:47:33 -0300] "GET /nod_upd/update.ver HTTP/1.1" 200 2688 "-" "Mozilla/4.0 (c
192.168.0.168 - - [31/Aug/2006:13:47:42 -0300] "GET /nod_upd/engine0.nup HTTP/1.1" 403 414 "-" "Mozilla/4.0 (c
192.168.0.168 - - [31/Aug/2006:14:43:41 -0300] "GET /nod_upd/update.ver HTTP/1.0" 200 2688 "-" "NOD32 Update (
192.168.0.168 - - [31/Aug/2006:14:43:42 -0300] "GET /nod_upd/engine0.nup HTTP/1.0" 403 414 "-" "NOD32 Update (

1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn 10Quit


In error log:

login as: root
root@192.168.0.4's password:
Last login: Wed Aug 30 10:19:54 2006
[root@srvnmb04 ~]# mc
error_log [----] 0 L:[276+20 296/297] *(28553/28672b)= [ 91 0x5B
[Wed Aug 30 10:42:28 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 11:42:28 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 12:34:52 2006] [notice] caught SIGTERM, shutting down
[Wed Aug 30 12:34:56 2006] [notice] Digest: generating secret for digest authentication ...
[Wed Aug 30 12:34:56 2006] [notice] Digest: done
[Wed Aug 30 12:34:57 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Aug 30 12:34:57 2006] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
[Wed Aug 30 12:35:21 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 12:42:28 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 12:43:38 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 13:42:28 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 14:42:29 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 15:42:29 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 16:42:30 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Wed Aug 30 17:30:53 2006] [notice] caught SIGTERM, shutting down
[Thu Aug 31 13:44:21 2006] [notice] Digest: generating secret for digest authentication ...
[Thu Aug 31 13:44:21 2006] [notice] Digest: done
[Thu Aug 31 13:44:24 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Aug 31 13:44:25 2006] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
[Thu Aug 31 13:47:43 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied
[Thu Aug 31 14:43:42 2006] [error] [client 192.168.0.168] (13)Permission denied: access to /nod_upd/engine0.nup denied

1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn 10Quit

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Error 403 denied access

Post by foxb » 2006/08/31 18:25:43

Is apache owner and group on this folder and all files inside?

efernandez
Posts: 4
Joined: 2006/08/31 16:35:44

Re: Error 403 denied access

Post by efernandez » 2006/08/31 19:20:50

The owner of folder and all in file is root.
Apache must be owner?

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Error 403 denied access

Post by foxb » 2006/08/31 19:47:29

Yes.

efernandez
Posts: 4
Joined: 2006/08/31 16:35:44

Re: Error 403 denied access

Post by efernandez » 2006/09/01 13:45:58

I change the owner form root to apache but not work.

Is possible that apache publish the update.ver (txt file) but not engine0.nup (binary file).
My linux server not recgnise the .nup extension file.

I "listen" in the NOD32 forum that a possible way of solution is the mime type but I not understand how apply it.

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Error 403 denied access

Post by foxb » 2006/09/01 15:24:44

Apache must be:
Owner and Group

You do this like this

[code]
chown -R apache:apache <folder name>
[/code]

Post Reply

Return to “CentOS 4 - Webhosting Support”