Why is my gateway/reverse proxy forcing Content-Type: text/plain in header?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have the following very simple gateway set up. For some reason I am getting the field
Content-Type: text/plain
added to the HTTP header. Thus pages served through the apache gateway display the source code rather than displaying as html.

I'm also confused by why the "Header always unset Content-Type" doesn't cure my problem. I thought it should strip out all occurrences of "Content-Type". As you can see from the commented out lines below, I also tried a simple rewrite rule. I assume I'm making a silly mistake. Can anybody help me spot it?

Thanks,
Jonathan
-------proxy part of config file------
#gateway to sage
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass /sage http://127.0.0.1:8000
ProxyPassReverse /sage http://127.0.0.1:8000
Header always unset Content-Type

#RewriteEngine On
#RewriteRule ^/sage(.*)$ http://127.0.0.1:8000$1 [P,T=text/html]
---------------------------

                         Dr. Jonathan H. Gutow
Chemistry Department                                 gutow@xxxxxxxxx
UW-Oshkosh                                           Office:920-424-1326
800 Algoma Boulevard                                 FAX:920-424-2042
Oshkosh, WI 54901
                 http://www.uwosh.edu/faculty_staff/gutow/





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux