• I have a default install of WordPress 4.8 that is performing a redirect with no response back to the web client, only to outside network addresses. Internal network addresses work fine.

    Problem is believed to be isolated to the .htaccess file, under my default webroot directory /var/www/html. After a week of troubleshooting from forums, and 2 complete reinstalls of the full-LAMP-monty, I need help. Trace1 level messages were enabled in apache2.conf, and the “redirect without response” in the error.log file is shown below. Connection just times out. Outside connection is being tested with another client, (same local network), running a VPN.

    The default “It works!” webpage can be accessed through the VPN, so this rules out the DNS provider, router, port-forwarding, and default Apache settings.

    When I try to access http://fivealarmpeppers.com, I see this:

    [Fri Jun 16 13:06:57.561065 2017] [authz_core:debug] [pid 4792] mod_authz_core.c(809): [client 173.239.236.64:57278] AH01626: authorization result of Require all granted: granted, referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561134 2017] [authz_core:debug] [pid 4792] mod_authz_core.c(809): [client 173.239.236.64:57278] AH01626: authorization result of <RequireAny>: granted, referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561173 2017] [rewrite:trace1] [pid 4792] mod_rewrite.c(476): [client 173.239.236.64:57278] 173.239.236.64 – – [68.10.66.13/sid#7fa3b13035c8][rid#7fa3b12110a0/initial] [perdir /var/www/html/] pass through /var/www/html/, referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561279 2017] [rewrite:trace1] [pid 4792] mod_rewrite.c(476): [client 173.239.236.64:57278] 173.239.236.64 – – [68.10.66.13/sid#7fa3b13035c8][rid#7fa3b12580a0/subreq] [perdir /var/www/html/] internal redirect with /index.php [INTERNAL REDIRECT], referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561345 2017] [rewrite:trace1] [pid 4792] mod_rewrite.c(476): [client 173.239.236.64:57278] 173.239.236.64 – – [68.10.66.13/sid#7fa3b13035c8][rid#7fa3b12580a0/subreq] [perdir /var/www/html/] internal redirect with /index.php [INTERNAL REDIRECT], referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561405 2017] [rewrite:trace1] [pid 4792] mod_rewrite.c(476): [client 173.239.236.64:57278] 173.239.236.64 – – [68.10.66.13/sid#7fa3b13035c8][rid#7fa3b12580a0/subreq] [perdir /var/www/html/] internal redirect with /index.php [INTERNAL REDIRECT], referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561449 2017] [authz_core:debug] [pid 4792] mod_authz_core.c(809): [client 173.239.236.64:57278] AH01626: authorization result of Require all granted: granted, referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561466 2017] [authz_core:debug] [pid 4792] mod_authz_core.c(809): [client 173.239.236.64:57278] AH01626: authorization result of <RequireAny>: granted, referer: http://fivealarmpeppers.com/
    [Fri Jun 16 13:06:57.561489 2017] [rewrite:trace1] [pid 4792] mod_rewrite.c(476): [client 173.239.236.64:57278] 173.239.236.64 – – [68.10.66.13/sid#7fa3b13035c8][rid#7fa3b12580a0/subreq] [perdir /var/www/html/] pass through /var/www/html/index.php, referer: http://fivealarmpeppers.com/

    Details:
    user@svr1:lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.2 LTS
    Release: 16.04
    Codename: xenial

    user@svr1:/var/www/html$ apache2 -v
    Server version: Apache/2.4.18 (Ubuntu)
    Server built: 2017-05-05T16:32:00

    user@svr1:mysql -V
    mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper

    user@svr1:php -v
    PHP 7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.18-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies

    Wordpress was downloaded & uncompressed in the /var/www/html directory, and chown’d recursively to www-data:www-data.
    Wordpress install completed successfully via 5-minute install

    user@svr1:/var/www/html$ ll -a
    total 8204
    drwxr-xr-x 6 www-data www-data 4096 Jun 15 23:09 ./
    drwxr-xr-x 3 root root 4096 Jun 15 20:23 ../
    -rw-r–r– 1 www-data www-data 36 Jun 16 11:57 .htaccess
    -rw-r–r– 1 root root 235 Jun 15 21:06 htaccess.bak
    -rw-r–r– 1 www-data www-data 11321 Jun 15 20:44 index.bak
    -rw-r–r– 1 www-data www-data 418 Sep 24 2013 index.php
    -rw-r–r– 1 www-data www-data 8169865 Jun 8 10:30 latest.tar.gz
    -rw-r–r– 1 www-data www-data 19935 Jan 2 12:58 license.txt
    -rw-r–r– 1 www-data www-data 7413 Dec 12 2016 readme.html
    drwxr-xr-x 2 www-data www-data 4096 Jun 15 20:51 wordpress/
    -rw-r–r– 1 www-data www-data 5447 Sep 27 2016 wp-activate.php
    drwxr-xr-x 9 www-data www-data 4096 Jun 8 10:29 wp-admin/
    -rw-r–r– 1 www-data www-data 364 Dec 19 2015 wp-blog-header.php
    -rw-r–r– 1 www-data www-data 1627 Aug 29 2016 wp-comments-post.php
    -rw-rw-rw- 1 www-data www-data 3151 Jun 15 21:07 wp-config.php
    -rw-r–r– 1 www-data www-data 2853 Dec 16 2015 wp-config-sample.php
    drwxr-xr-x 4 www-data www-data 4096 Jun 16 11:57 wp-content/
    -rw-r–r– 1 www-data www-data 3286 May 24 2015 wp-cron.php
    drwxr-xr-x 18 www-data www-data 12288 Jun 8 10:29 wp-includes/
    -rw-r–r– 1 www-data www-data 2422 Nov 20 2016 wp-links-opml.php
    -rw-r–r– 1 www-data www-data 3301 Oct 24 2016 wp-load.php
    -rw-r–r– 1 www-data www-data 34327 May 12 13:12 wp-login.php
    -rw-r–r– 1 www-data www-data 8048 Jan 11 00:13 wp-mail.php
    -rw-r–r– 1 www-data www-data 16200 Apr 6 14:01 wp-settings.php
    -rw-r–r– 1 www-data www-data 29924 Jan 24 06:08 wp-signup.php
    -rw-r–r– 1 www-data www-data 4513 Oct 14 2016 wp-trackback.php
    -rw-r–r– 1 www-data www-data 3065 Aug 31 2016 xmlrpc.php

    I have changed the permalink settings to plain, watched the .htaccess file clear, then changed back to Day and Name format. Here’s the .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Wordpress Address and Site Address are both set to http://fivealarmpeppers.com

    Your help would be super-terrific!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fivealarmpeppers

    (@fivealarmpeppers)

    Tried adding “DirectoryIndex index.php” above the WordPress section of the .htaccess file. This stopped serving the “It works!” index.html file, but still does not serve the WordPress index.php file. No joy; pressing forward.

    Checked the /etc/apache2/conf-enabled files to identify any glaring issues. NSTR.

    Thread Starter fivealarmpeppers

    (@fivealarmpeppers)

    I think I may be onto something…

    I’m port-forwarding TCP 65532 at my router to TCP 80 (default http) as to not screw up all the links, etc. Looking at the redirect from the client-side, using Firebug, I notice that after the redirect takes place the next Request URL (GET) is for http://68.10.66.13, the public IP but without the port number. However, the initial response from upstream DNS servers is http://68.10.66.13:65532, as it should be. (I have a URL Redirect configured for my domain at NameCheap.)

    I think the Internal Redirect may NOT be accounting for the port number, which may be why my internal network hosts can render the WordPress site just fine, while outside networks cannot. My internal hosts don’t have to worry about port forwarding…

    I’m just unsure how to fix it now. Probably with the .htaccess file?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Default Install Redirect No Response’ is closed to new replies.