Link generation with ssl-proxy (4 posts)

  1. Frank Miller
    Posted 5 years ago #

    We are using a ssl-proxy to access our wordpress installation.

    The installation itself is located at

    To use the proxy the following address is required:

    Configuration of 'WordPress address (URL)' in 'General Settings' is:

    Strange thing is that some actions (in the backend) work and others don't. Just one example:
    When I want to insert an image using the 'Media Library' I get the following:
    "The requested URL /wordpress/wp-admin/media-upload.php was not found on this server."

    The GET request that is being sent is the following:

    The part 'www.my-domain.com' after the domain missing.
    Seems like link generation is not (always) based on the 'General Settings'

    Is this a common problem?
    If yes, is there a workaround?

  2. Frank Miller
    Posted 5 years ago #

    Ok, I think I found a solution.
    Whenever wordpress generates a relative link I have to add a prefix.
    so that

    I examined the code for a while now and found multiple functions that seem to be responsible for link generation. But before I get started:

    Is there a simple and short way to do this modification ?
    Maybe I have overlooked something like a general function for link generation?

  3. fireitup
    Posted 5 years ago #

    I'm experiencing the same problem. Couldn't find any info on the web, but I would think this must be a common problem. SSL is pretty much useless this way.
    Frank: Have you made any progress? Did you mean modifying the core files by saying you had to add a prefix?

  4. fireitup
    Posted 5 years ago #

    Found a solution.
    Add this to your wp-config.php:

    $_SERVER['REQUEST_URI']='/my-domain.com'. $_SERVER['REQUEST_URI'];

Topic Closed

This topic has been closed to new replies.

About this Topic