Support » How-To and Troubleshooting » Link generation with ssl-proxy

Link generation with ssl-proxy

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

    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?

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

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link generation with ssl-proxy’ is closed to new replies.