• I recently had to install a wordpress on a not yet existant url. Created the hosting and use my provider’s proxy to prepare the site before changing the registrar’s dns entries.

    The install goes fine, the 5 min install ends, and then when I try to log-in, the browser tells me that cookies are not supported and that I should activate this option. Of course, they were already active at the time of log-in. Furthermore, strangely, I had no visible styling, just minimal html rendering.

    I had a look at the db entries, and found a weird entry in table wp_options in the option_name column for the siteurl entry. I had:
    https://mysite.comhttps://mysite.com/blog

    (where “blog” was the name of the folder where I put the files on my hosting)
    I intuitively replaced this by:
    https://mysite.com/blog

    This solved the problem, styled the pages and allowed me to log-in. I had a look the the wp-advanced forum and didn’t find anything similar. Since I can’t post there, I post here. Hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • There is nothing “advancved” – it’s a simple How-To question.
    The two URI values in admin > Options > General MUST point to the real physical location of the blog.

    Thread Starter svenjick

    (@svenjick)

    Sorry!!! The tone of your first sentence fills me with guilt – I’m only trying to help.

    Now my point was that “I can’t login to the admin” with the std 5-min install procedure under this behind-proxy configuration. So I don’t see how I could have reset these URI (which by the way I didn’t set in the first place either). Hence my assumption this might be a small ‘bug’ in the setup-script. Does this make any sense?

    Maybe.
    The two values in wp_options (i.e. site_url and home) must reflect your real install location.
    WP is “reluctant” to collaborate with any kind of tricky redirect attempts or not straightforward installations.
    That’s all.

    Install it where you (will) use it – and there are no problems.

    Thread Starter svenjick

    (@svenjick)

    As explained, I’m preparing a new version of a site, so I can’t change the official dns entry, I must work under this configuration. (this is std practice in the web-dev community, nothing “tricky”)

    Now changing the two URL in admin > Options > General didn’t solve the problem. So changing manually in the db is necessary to gain access to the admin, but isn’t enough to view the blog properly (it is rendered, but all url in the site are wrong). Changing the “Blog address (URL)” in the Options makes things worse, as the blog no longer is visible (error page).

    Definitive workaround:
    You can trick your browser by adding an entry to your /etc/hosts file (for those who don’t know how to do that, just add a line containing: 0.0.0.0 www.mysite.com where 0.0.0.0 is the ip of your proxy/hosting) This solves all problems whilst working on a site behind a proxy.

    Misc: I was using Firefox 2.0.0.11 and its manual proxy configuration. No idea where this problem is coming from (FF or proxy conf or wordpress).

    Hope this helps. Peace.

    I changed the site URL in the admin page. Now I cant get back in to change. How can I fix the problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[bug?] False ‘siteurl’ upon install behind proxy’ is closed to new replies.