Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18
You won't need to edit the hosts file. Even if it doesn't affect functionality: Pretty strange you chmodded all to 777, you should consider to tighten your security. Try to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773

    You won't need to edit the hosts file. Even if it doesn't affect functionality: Pretty strange you chmodded all to 777, you should consider to tighten your security.

    Try to enable AllowOverride, it is currently set Off.

    EDIT: shouldn't be a problem either. there is probably somewhere a "Order allow,deny Allow from localhost" or something like that that prevents access.

  2. #12
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Okay.I try that. Actually after I got access denied error message,while in the process in troubleshooting,I changed permission to 777. But even that didn't help.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #13
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    I commented out entire "Order deny,allow" in config file and restart apache.

    logs
    =======
    ]# cat logs/ssl_error_log
    [Mon Aug 02 18:49:00 2010] [error] [client 192.168.1.158] (13)Permission denied: access to /ajaxterm/ denied
    [root@space httpd]# cat logs/ssl_access_log
    ::1 - - [01/Aug/2010:14:06:13 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:06:13 +0530] "POST /u HTTP/1.1" 502 465
    ::1 - - [01/Aug/2010:14:06:19 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:06:19 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:06:19 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:06:19 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:06:19 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:06:20 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:06:22 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:07:51 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:07:53 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:07:53 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:07:53 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:07:53 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:07:53 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:13 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:08:13 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:08:13 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:08:13 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:13 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:08:13 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:16 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:08:16 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:08:16 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:16 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:08:16 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:08:17 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:08:17 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:52 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:08:52 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:08:52 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:08:52 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:08:52 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:08:54 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:14:09:36 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET / HTTP/1.1" 200 1963
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET /ajaxterm.css HTTP/1.1" 502 499
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET /sarissa.js HTTP/1.1" 502 493
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET /ajaxterm.js HTTP/1.1" 502 496
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 511
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET /ajaxterm.js HTTP/1.1" 502 496
    192.168.1.3 - - [01/Aug/2010:14:09:51 +0530] "GET /favicon.ico HTTP/1.1" 502 496
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET / HTTP/1.1" 200 1963
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET /ajaxterm.css HTTP/1.1" 502 499
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET /sarissa.js HTTP/1.1" 502 493
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 511
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET /ajaxterm.js HTTP/1.1" 502 496
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET /favicon.ico HTTP/1.1" 502 496
    192.168.1.3 - - [01/Aug/2010:14:09:54 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 511
    192.168.1.3 - - [01/Aug/2010:14:09:55 +0530] "GET /ajaxterm.js HTTP/1.1" 502 496
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET / HTTP/1.1" 200 1963
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /sarissa.js HTTP/1.1" 502 491
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /ajaxterm.css HTTP/1.1" 502 497
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /sarissa_dhtml.js HTTP/1.1" 502 509
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /ajaxterm.js HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:20:29:08 +0530] "GET /favicon.ico HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:20:29:11 +0530] "GET /favicon.ico HTTP/1.1" 502 494
    ::1 - - [01/Aug/2010:20:29:30 +0530] "GET / HTTP/1.1" 503 399
    192.168.1.3 - - [01/Aug/2010:23:18:10 +0530] "GET / HTTP/1.1" 200 3
    192.168.1.3 - - [01/Aug/2010:23:18:10 +0530] "GET /favicon.ico HTTP/1.1" 404 287
    192.168.1.3 - - [01/Aug/2010:23:18:13 +0530] "GET /favicon.ico HTTP/1.1" 404 287
    192.168.1.3 - - [01/Aug/2010:23:18:16 +0530] "GET /ajaxterm HTTP/1.1" 301 315
    192.168.1.3 - - [01/Aug/2010:23:18:16 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:19:10 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:19:15 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:20:33 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:20:33 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:20:34 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:20:34 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:20:34 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:20:51 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:21:31 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:26:08 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:27:23 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:27:26 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:27:27 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:27:27 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:27:50 +0530] "GET / HTTP/1.1" 403 4609
    192.168.1.3 - - [01/Aug/2010:23:27:50 +0530] "GET /icons/apache_pb2.gif HTTP/1.1" 200 1797
    192.168.1.3 - - [01/Aug/2010:23:27:50 +0530] "GET /icons/poweredby.png HTTP/1.1" 200 3034
    192.168.1.3 - - [01/Aug/2010:23:31:33 +0530] "GET / HTTP/1.1" 403 4609
    192.168.1.3 - - [01/Aug/2010:23:31:37 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:33:52 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:34:41 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:41:56 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:43:45 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:43:49 +0530] "GET / HTTP/1.1" 403 4609
    192.168.1.3 - - [01/Aug/2010:23:45:10 +0530] "GET / HTTP/1.1" 403 4609
    192.168.1.3 - - [01/Aug/2010:23:46:58 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:46:58 +0530] "GET /favicon.ico HTTP/1.1" 403 291
    192.168.1.3 - - [01/Aug/2010:23:47:01 +0530] "GET /favicon.ico HTTP/1.1" 403 291
    192.168.1.3 - - [01/Aug/2010:23:48:59 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:48:59 +0530] "GET /favicon.ico HTTP/1.1" 403 291
    192.168.1.3 - - [01/Aug/2010:23:49:02 +0530] "GET /favicon.ico HTTP/1.1" 403 291
    192.168.1.3 - - [01/Aug/2010:23:50:30 +0530] "GET /ajaxterm HTTP/1.1" 403 288
    192.168.1.3 - - [01/Aug/2010:23:50:30 +0530] "GET /favicon.ico HTTP/1.1" 403 291
    192.168.1.3 - - [01/Aug/2010:23:50:33 +0530] "GET /favicon.ico HTTP/1.1" 403 291
    192.168.1.3 - - [01/Aug/2010:23:54:04 +0530] "GET /ajaxterm HTTP/1.1" 403 288
    192.168.1.3 - - [01/Aug/2010:23:54:07 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.3 - - [01/Aug/2010:23:54:17 +0530] "GET /ajaxterm/ HTTP/1.1" 403 289
    192.168.1.158 - - [02/Aug/2010:18:45:44 +0530] "GET / HTTP/1.1" 403 4609
    192.168.1.158 - - [02/Aug/2010:18:45:44 +0530] "GET /icons/apache_pb2.gif HTTP/1.1" 200 1797
    192.168.1.158 - - [02/Aug/2010:18:45:44 +0530] "GET /icons/poweredby.png HTTP/1.1" 200 3034
    192.168.1.158 - - [02/Aug/2010:18:45:44 +0530] "GET /favicon.ico HTTP/1.1" 403 293
    192.168.1.158 - - [02/Aug/2010:18:45:47 +0530] "GET /favicon.ico HTTP/1.1" 403 293
    192.168.1.158 - - [02/Aug/2010:18:45:50 +0530] "GET /ajaxterm HTTP/1.1" 403 290
    192.168.1.158 - - [02/Aug/2010:18:45:52 +0530] "GET /ajaxterm/ HTTP/1.1" 403 291
    192.168.1.158 - - [02/Aug/2010:18:46:55 +0530] "GET /ajaxterm/ HTTP/1.1" 403 291
    192.168.1.158 - - [02/Aug/2010:18:47:54 +0530] "GET /ajaxterm/ HTTP/1.1" 403 291
    192.168.1.158 - - [02/Aug/2010:18:49:00 +0530] "GET /ajaxterm/ HTTP/1.1" 403 291
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. #14
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Well, the proxy did work and forwarded the request, but the proxied request failed and returned a status 502 (bad gateway). So it is not the proxy, but probably something at the ajaxterm thingy that breaks.

    EDIT: above is actually wrong, I didn't take a look at the timestamps. the proxy immediatly fails with 403 without even trying to forward it. So this is a problem with the proxy.

    Replace this:
    Code:
      ProxyPass /ajaxterm/ http://localhost:8022/
           ProxyPassReverse /ajaxterm/ http://localhost:8022/
    with this:

    Code:
      ProxyPass /ajaxterm http://localhost:8022/
           ProxyPassReverse /ajaxterm http://localhost:8022/

  5. #15
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    no luck too

    cat logs/ssl_error_log
    [Mon Aug 02 19:04:11 2010] [error] [client 192.168.1.158] (13)Permission denied: access to /ajaxterm denied
    [root@space httpd]# cat logs/ssl_access_log
    192.168.1.158 - - [02/Aug/2010:19:04:11 +0530] "GET /ajaxterm HTTP/1.1" 403 290
    [root@space httpd]# cat logs/ssl_request_log
    [02/Aug/2010:19:04:11 +0530] 192.168.1.158 SSLv3 DHE-RSA-CAMELLIA256-SHA "GET /ajaxterm HTTP/1.1" 290
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  6. #16
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    But you get also 403 for requests at /.

    Code:
    192.168.1.158 - - [02/Aug/2010:18:45:44 +0530] "GET / HTTP/1.1" 403 4609
    *hmm*

    Try to remove the Directory section with the proxy stuff inside.

    Apache module mod_proxy

  7. #17
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Okay.I'll check that link
    I found this 13PermissionDenied - Httpd Wiki
    which says its related to permissions ...
    okay day3 over , My fight with apache +ajaxterm ,
    will continue tomorrow for 4th day
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  8. #18
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Today I tried it again , instead of using localhost - i used 127.0.0.1 -I was not connected to online. and i got a different error message.

    [Wed Aug 04 09:17:53 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /ajaxterm/ denied
    [Wed Aug 04 09:17:53 2010] [error] [client 127.0.0.1] ModSecurity: Failed to access DBM file "/var/asl/data/msa/global": No such file or directory [hostname "127.0.0.1"] [uri "/ajaxterm/"] [unique_id "TFji6X8AAAEAAA1bLQMAAAAC"]
    [Wed Aug 04 09:17:53 2010] [error] [client 127.0.0.1] ModSecurity: Failed to access DBM file "/var/asl/data/msa/ip": No such file or directory [hostname "127.0.0.1"] [uri "/ajaxterm/"] [unique_id "TFji6X8AAAEAAA1bLQMAAAAC"]
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •