Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: client denied by server configuration

    i tried this but it did not work

    #############################
    ## General Settings

    Options +SymLinksIfOwnerMatch -FollowSymlinks -Indexes

    RewriteEngine ON

    #############################
    ## Redirect for a dir. that has been removed.

    RewriteCond %{REQUEST_URI} xxx
    RewriteRule .? http://example.com/404.shtml [R=301,L]

    I even tried to do a redirect to see if it would still populate that error and of course it did.

    Any recommendations here will be much appreciated.

  2. #12
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: client denied by server configuration

    xxx = whatever it was called in your error path: public_html/images/xxx/cwr

    I don't know what it was actually called. Since you used 'xxx' so did I but you have to use the actual name.

  3. #13
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: client denied by server configuration

    This is the code i tried to use. But I still get constant errors .

    This is the path that no longer exist: images/marine_images/cwr


    Error
    [Tue Sep 26 01:20:41.599619 2017] [access_compat:error] [pid 24737:tid 140411909183232] [client 157.55.39.123:3783] AH01797: client denied by server configuration: /home/xxx/public_html/images/marine_images/cwr

    #############################
    ## General Settings

    Options +SymLinksIfOwnerMatch -FollowSymlinks -Indexes

    RewriteEngine ON

    #############################
    ## Redirect for a dir. that has been removed.

    RewriteCond %{REQUEST_URI} images/marine_images/cwr
    RewriteRule .? http://xxx.com/404.shtml [R=301,L]

  4. #14
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: client denied by server configuration

    RewriteCond %{REQUEST_URI} marine_images
    RewriteRule .? http://insert-your-actual-domain-name/404.shtml [R=301,L]

  5. #15
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: client denied by server configuration

    Rob

    That seems to have done the trick. Though i did notice one thing.

    If I type the path in http://www.xxx.com/images/marine_images/cwr ------ all is good
    when i type in https://www.xxx.com/images/marine_images/cwr ------- i get the log error
    If I type the path with the redirect in place in http://www.xxx.com/images/marine_images/cwr ------ all is good

    I also have this included in my .htaccess file i am not sure if that will help.


    Options -Indexes
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

  6. #16
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: client denied by server configuration

    As mentioned earlier, if you are using 'https' for you site then you need to use it in the redirect.


    RewriteRule .? https://your-domain-name.com/404.shtml [R=301,L]

  7. #17
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default Re: client denied by server configuration

    Quote Originally Posted by chadlly2003 View Post
    Rob

    That seems to have done the trick. Though i did notice one thing.

    If I type the path in http://www.xxx.com/images/marine_images/cwr ------ all is good
    when i type in https://www.xxx.com/images/marine_images/cwr ------- i get the log error
    If I type the path with the redirect in place in http://www.xxx.com/images/marine_images/cwr ------ all is good

    I also have this included in my .htaccess file i am not sure if that will help.


    Options -Indexes
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    I think that the HTTPS value is only present when the request is made over https:// protocol. What happens if you change one statement in the .htaccess:
    Code:
    Options -Indexes
    RewriteCond %{HTTPS} !on
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

  8. #18
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: client denied by server configuration

    Lat9

    I tried your suggestions but got the same results. The error constant I tried everything to get this to work. Do you have any other suggestions or recommendations on solving this issue

    If I type the path in http://www.xxx.com/images/marine_images/cwr ------ all is good
    when i type in https://www.xxx.com/images/marine_images/cwr ------- i get the log error
    If I type the path with the redirect in place in http://www.xxx.com/images/marine_images/cwr ------ all is good

  9. #19
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: client denied by server configuration

    Just a follow up of some information when testing I found that even when i remove the redirect completely i still get the same results. So i don't think that is the issue. Also noticed that when i use piece of code some of my images disappear.

    If anyone has any idea or suggestions please let me know

  10. #20
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: client denied by server configuration

    I am having a hard time with client denied by server configuration.

    What if I remove my .htaccess file from the image folders. Would that solve the issue. I know its not the best solution but its the only thing i can think of

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v139h cpanel error log - client denied by server configuration
    By Interceptor in forum General Questions
    Replies: 12
    Last Post: 30 Sep 2015, 11:30 PM
  2. Replies: 24
    Last Post: 23 Sep 2011, 01:45 PM
  3. mod_security vs client denied by server configuration
    By gsdcypher in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 2 Jan 2010, 09:43 PM
  4. Client Denied by Server Configuration
    By fortun3 in forum General Questions
    Replies: 5
    Last Post: 18 Dec 2009, 06:38 PM
  5. client denied by server configuration - misconfigured host settings
    By RedGerry in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 5 Oct 2006, 04:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR