[wp-trac] Re: [WordPress Trac] #4732: $guessurl wrong in install.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 18 23:51:13 GMT 2008
#4732: $guessurl wrong in install.php
-----------------------------------------------------------+----------------
Reporter: ar0n | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: Administration | Version: 2.2
Severity: major | Resolution:
Keywords: $guessurl install.php has-patch needs-testing |
-----------------------------------------------------------+----------------
Changes (by sciolizer):
* cc: sciolizer at gmail.com (added)
Comment:
I ran into the same problems with squid changing the REQUEST_URI, but I
found that if you have access to the squid.conf file, you can workaround
the problem (until the patch becomes mainstream) by changing the
cache_peer line to include the "originserver" option. You must have the
rproxy patch, or be using Squid v3.
For example:
cache_peer 127.0.0.1 parent 80 7 no-query round-robin
no-digest originserver
This will prevent squid from altering the REQUEST_URI, and is probably a
good idea regardless of whether Wordpress uses REQUEST_URI or not, since
other sites might be depending on it.
My workaround only works if you are using one squid server. If you are
using multiple squid servers, then there is the possibility that the
REQUEST_URI will be changed at the first one and not reverted at the last
one. (I'm no squid expert, and I haven't tried this setup.)
Also, I would like to point out that the use of REQUEST_URI in the
Wordpress source is much more systemic than just schema.php and
upgrade.php. An rgrep on my copy returns 33 hits (version 2.3 of
Wordpress).
--
Ticket URL: <http://trac.wordpress.org/ticket/4732#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list