Re: [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2013-01-19 Thread Yang Zhang
For posterity, Igor's solution is what worked for me - thanks! Specifically: proxy_redirect http://host.com:88/ http://host.com/; On Sun, Nov 18, 2012 at 9:21 PM, Igor Cicimov wrote: > > > > On Mon, Nov 19, 2012 at 12:56 PM, Yang Zhang wrote: >> >> (Th

Re: [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2012-11-18 Thread Yang Zhang
(The app server is this: http://gitit.net/README#proxying-to-httpmysite.comwiki) On Sun, Nov 18, 2012 at 5:55 PM, Yang Zhang wrote: > This is not an option because the point of my using the proxy in this > case is that I need to rewrite the URLs and content (with > mod_proxy_html)

Re: [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2012-11-18 Thread Yang Zhang
On Mon, Nov 19, 2012 at 12:38 PM, Yang Zhang wrote: >> >> On Sun, Nov 18, 2012 at 3:21 PM, Igor Cicimov wrote: >> > >> > On Mon, Nov 19, 2012 at 9:48 AM, Yang Zhang >> > wrote: >> >> >> >> I have: nginx (port 80) reverse-p

Re: [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2012-11-18 Thread Yang Zhang
`fgrep -ir usecanonicalname /etc/apache2/` turns up nothing. (FWIW I'm using the apache2 from Ubuntu 12.04) On Sun, Nov 18, 2012 at 5:04 PM, Igor Cicimov wrote: > > > > On Mon, Nov 19, 2012 at 11:03 AM, Nick Kew wrote: >> >> On Sun, 18 Nov 2012 14:48:35 -0800 &g

Re: [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2012-11-18 Thread Yang Zhang
On Sun, Nov 18, 2012 at 3:21 PM, Igor Cicimov wrote: > > On Mon, Nov 19, 2012 at 9:48 AM, Yang Zhang wrote: >> >> I have: nginx (port 80) reverse-proxying to apache2 (port 88) >> reverse-proxying to a web app (port 5001). >> >> However, when the web app res

Re: [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2012-11-18 Thread Yang Zhang
On Sun, Nov 18, 2012 at 4:03 PM, Nick Kew wrote: > On Sun, 18 Nov 2012 14:48:35 -0800 > Yang Zhang wrote: > >> I have: nginx (port 80) reverse-proxying to apache2 (port 88) >> reverse-proxying to a web app (port 5001). >> >> However, when the web app respon

[users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?

2012-11-18 Thread Yang Zhang
I have: nginx (port 80) reverse-proxying to apache2 (port 88) reverse-proxying to a web app (port 5001). However, when the web app responds with a redirect like `Location: /foo`, apache2 rewrites this into `Location: http://host.com:88/sub/foo`, even though port 88 is publicly inaccessible. I'd li

[us...@httpd] Re: SSL errors

2010-09-08 Thread Yang Zhang
Adding some more info - just now saw this transient error from Chrome: "Error 126 (net::ERR_SSL_BAD_RECORD_MAC_ALERT): Unknown error." On Wed, Sep 8, 2010 at 1:03 PM, Yang Zhang wrote: > I'm running a (self-signed) SSL cert site on Apache/2.2.14 on Ubuntu > 10.04, but

[us...@httpd] SSL errors

2010-09-08 Thread Yang Zhang
-D HTTPD_ROOT="" -D SUEXEC_BIN="/usr/lib/apache2/suexec" -D DEFAULT_PIDLOG="/var/run/apache2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"

Re: [us...@httpd] Redirecting URL to a location

2010-05-08 Thread Yang Zhang
2010 9:06, Igor Cicimov wrote: > > On the second thought this should work (tested): > > >DirectorySlash On > > > Any way, shouldn't the trailing slash automatically be added by mod_dir > starting from apache2.0.5? > > Igor > > On Wed, Apr 28, 2010

Re: [us...@httpd] Redirecting URL to a location

2010-05-08 Thread Yang Zhang
2.0.5? I'm using apache2.2.14-5ubuntu8 -- Yang Zhang http://yz.mit.edu/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscr

[us...@httpd] Redirecting URL to a location

2010-04-27 Thread Yang Zhang
t redirect). Thanks in advance for any hints. -- Yang Zhang http://yz.mit.edu/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubs

Re: [us...@httpd] .htaccess not working

2010-04-24 Thread Yang Zhang
D'oh: I thought AllowOverride was not None for this, but now it's fixed. On Sat, Apr 24, 2010 at 11:01 AM, Yang Zhang wrote: > No, it's not on that server. > > On Sat, Apr 24, 2010 at 4:16 AM, Sharl.Jimh.Tsin > wrote: >> 嗨,同胞: >> i checked your site http:

Re: [us...@httpd] .htaccess not working

2010-04-24 Thread Yang Zhang
No, it's not on that server. On Sat, Apr 24, 2010 at 4:16 AM, Sharl.Jimh.Tsin wrote: > 嗨,同胞: > i checked your site http://yz.mit.edu/wp/, > the rewrite module seems to work now. > > Best regards, > Sharl.Jimh.Tsin > > &g

[us...@httpd] .htaccess not working

2010-04-24 Thread Yang Zhang
AME} !-f RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.+)$ /index.php/$1 [L,QSA] RewriteRule . /wp/index.php [L] -- Yang Zhang http://yz.mit.edu/ - The official User-To-User support forum of the Apache HTTP Serv