WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[resolved] Failure to find permalink that has secure flag (10 posts)

  1. brianbowles
    Member
    Posted 1 year ago #

    I am trying to install wordpress-https for a few pages for a shopping cart.

    I seem to remember it working a bit better previously, but it has been a couple weeks since I first installed. I have permalinks set to post name. https server is up and running, no certificate problems for the domain etc. However, when I create a simple page named test1 and go to https://mysite.com/test1 it fails to find the file. The var/log/apache2/error.log says the file /var/www/test1 is not found.

    I deleted 3.2.2 after upgrading today and went back to 3.2.1. No luck. I now have 3.2.3rc1 installed and still the same problem. If I go to http://mysite.com/test1 then it redirects to https, but then apache does not find the test1 file.

    I am using ubuntu and a vps, so I don't think this is "shared ssl".

    http://wordpress.org/extend/plugins/wordpress-https/

  2. Mvied
    Member
    Plugin Author

    Posted 1 year ago #

    So does https://mysite.com work?

  3. brianbowles
    Member
    Posted 1 year ago #

    Yes, https://mysite.com does work. If you are the developer and are interested in passswords to debug the issue, I'll be happy to give them to you.

  4. Mvied
    Member
    Plugin Author

    Posted 1 year ago #

    And what if you go to https://mysite.com/test1 without the plugin enabled?

  5. brianbowles
    Member
    Posted 1 year ago #

    Same result. I double verified that the ssl is serving on the 443 port. The timeout code always happens 5 seconds later after the file not found error.

    [Sun Nov 18 05:50:13 2012] [info] Initial (No.1) HTTPS request received for child 3 (server www.mysite.com:443)
    [Sun Nov 18 05:50:13 2012] [error] [client 199.188.248.74] File does not exist: /var/www/test1
    [Sun Nov 18 05:50:13 2012] [debug] mod_deflate.c(615): [client 199.188.248.74] Zlib: Compressed 288 to 218 : URL /test1
    [Sun Nov 18 05:50:18 2012] [debug] ssl_engine_io.c(1908): OpenSSL: I/O error, 5 bytes expected to read on BIO#1209ce0 [mem: 120faf3]
    [Sun Nov 18 05:50:18 2012] [info] [client 199.188.248.74] (70007)The timeout specified has expired: SSL input filter read failed.
    [Sun Nov 18 05:50:18 2012] [debug] ssl_engine_kernel.c(1884): OpenSSL: Write: SSL negotiation finished successfully
    [Sun Nov 18 05:50:18 2012] [info] [client 199.188.248.74] Connection closed to child 3 with standard shutdown (server www.mysite.com:443)
  6. brianbowles
    Member
    Posted 1 year ago #

    Actually I suppose this means there isn't a problem with the plugin, but other pages worked.. grumble grumble.. maybe I'll be able to figure it out soon or look at other plugins as the source of the problem.

  7. brianbowles
    Member
    Posted 1 year ago #

    Meh, previous post is too old to fix now, but the file is served without https so it doesn't appear to be a problem with my webserver. my problem is just not knowing php or wordpress well enough to know where the hook is on the url to see why it is failing to serve teh page under https. Guess I will try the 3.2.3 plugin and if it fixes things I'll report as such.

  8. Mvied
    Member
    Plugin Author

    Posted 1 year ago #

    If the file isn't being served over HTTPS, the problem is your web server or network. If it's saying that "/test1" doesn't exist in your server logs, it's not even making it to WordPress.

  9. brianbowles
    Member
    Posted 1 year ago #

    I just created a file.php and accessed it via https just fine. I just can not find any evidence that my web-server is broken. So if i create test1.php it would work, but i use a permalink on a wordpress page and get "file not found" in my apache logs.

    ... and i chose wordpress because it seems simple with no frills... :(

    Now I have to learn low level wordpress code to try to track this down. Any pointers of what file/hook/function in the https plugin I should start with in order to debug this ?

  10. brianbowles
    Member
    Posted 1 year ago #

    The problem ended up being that AllowOverrides was set to None under the https configuration. I assume this prevented the .htaccess file from being read. Because there was no .htaccess read, there were no mod_rewrite rules. So under http everything is rewritten to index.php, but https never had these rules in place so the 'file not found' messages in error.log. Thanks for your early support mvied. Unfortunately I started out on the wrong end trying to track this down.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic