I just moved my server from one colo center to another.
The server is running debian and Layered Panel.
The only thing that changed was my two IP's.
Once I got the server up I ran a Layered Panel script
designed for changing IP's ./reconfigure domain IP1 IP2 .
After that all seemed well until I found a problem.
All the free hosted sites on my system work fine unless one
uses www . For example site.myhost.com works but www.site.myhost.com causes a 502 Proxy error.
The same happens for top level domains, freehosted.com works but
www.freehostedsite.com causes 502 error.
A couple lines from my error log:
[Thu Mar 27 20:26:45 2008] [error] [client 86.156.43.42] proxy: DNS
lookup failure for: freehostedsite.com returned by /brit.htm
[Thu Mar 27 20:31:44 2008] [error] [client 69.137.107.47] proxy: DNS
lookup failure for: amour.myfreehost.com returned by
/petra/index.html
Someone tried to access their webmail from a remote location and got a page not found error. It did have the following error like this at the bottom though:
"HTTP 502 Proxy Error - The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
Internet Security and Acceleration Server"
This is a cpanel server with Centos. I did not find any info via cpanel's forums about the 502 error.
a question on mod_proxy. We're using mod_proxy as a simple reverse proxy (ProxyPass & ProxyPassReverse) to reverse-proxy various back-end PHP and Mono/.NET apps.
One problem we see is that when the back-end PHP app suffers an error (e.g. a 404 or 500) , then mod_proxy ignores the nicely-formatted custom error page served up by our PHP app, and instead serves a very plain generic mod_proxy 404 or 500 error page back to the client. Is there a way to configure mod_proxy to serve up the 500/404 error page content which is created by the back-end app ?
(We thought ProxyErrorOverride might work, but it seems to be intended for the opposite scenario, where I want to *ignore* the 404 page content from the back-end and show a mod_proxy-defined error page instead.We're using apache 2.2 on 64-bit CentOS 6.5 ( httpd-2.2.15-31.el6.centos.x86_64 )
We are getting the error from the SAP portal where we have installed Apache as a reverse Proxy on Windows server.
The Apache Server received an invalid response from an upstream server.
The Proxy server could not handle the request POST/irj/portal
Reason: Error reading from remote server -------------------------------------------------- Apache/2.4.9 (Win32)OpenSSL/1.0.1h Server at www.xyz.com port 80
Everytime I try to see the bandwidth in the reseller panel, i got this failure:
Code: "Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /reseller/services/bandwidth/show_bandwidth. Reason: Error reading from remote server"
I already restarted epld, httpd, named, and mysql daemons and the error stills...
Being relatively new to the Linux world, I don't exactly know why my reverse proxy settings are not working. Nothing i have tried has worked.
The code below is from my old windows server what does not seem to be working in my new 1&1 vps server. I have the below code at the moment at the bottom of my httpd_ip_defult.conf file under /var/www/vhosts/system/mydomain.com/conf/
The following errors also show up in my vhosts error log:
Code:
[Sun Oct 12 23:30:56 2014] [error] (70007)The timeout specified has expired: proxy: HTTP: attempt to connect to xxx.xxx.xxx.xxx:8008 (xxx.xxx.xxx.xxx) failed [Sun Oct 12 23:30:56 2014] [error] ap_proxy_connect_backend disabling worker for (xxx.xxx.xxx.xxx) I also have mod_proxy.so , mod_proxy_http.so and mod_proxy_html.so all enabled in my main httpd.conf file at /etc/httpd/conf/
Basically, I need to fix this urgently as a core feature of my site relies on this setup.
When accessing a backup in backup-manager in a user subscription via a reverse proxy (eg. plesk panel is called as localhost:8443) I get following error:
Internal error: Failed to exec pmm-ras: (array ( 'code' => 127, 'stdout' => 'Transport error: File 'clients' not found ', 'stderr' => '', )). Message Failed to exec pmm-ras: (array ( 'code' => 127, 'stdout' => 'Transport error: File 'clients' not found ', 'stderr' => '', )). File Connector.php Line 227 Type PleskPMMResponseException
This happens when I try to download the backup and also when clicking on the backup name. These are the apache settings for the reverseproxy domain:
SSLProxyEngine On AllowEncodedSlashes On <Location /> ProxyPass https://localhost:8443/ ProxyPassReverse https://localhost:8443/ </Location>
I'm not sure if this is the right forum, or if anyone can suggest a message board where I might get support on this.
This is what I have. I have Apache and IIS both running on Windows 2k3.
Apache is running in reverse Proxy mode sending multiple domains/virtual hosts to IIS.
Code:
ProxyRequests Off <VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://localhost:8080 ProxyPassReverse / [url] ServerName mydomain.com
</VirtualHost> Now, if I type in [url]everything works great and IIS (listening on 127.0.0.1:8080) serves the page. However, I am doing custom error trapping, so when I type in [url](and /mydirectory doesn't exist on IIS) I need to fire ASP code (via custom error messages/handling) on the IIS server and then present a data driven page.
However, Apache is returning A 502 error:
Code: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /mydirectory.
Reason: DNS lookup failure for: localhost:8080mydirectory Is there a way for me to setup Apache to pass all error checking to IIS while using it as a reverse proxy?
We have been using Apache 2.2.x with reverse proxy modules for our clients to access their OWA servers for over a year. I want to get us to Apache 2.4.x so I setup a test box with latest 2.4 on it. I fixed the config file issues since 2.4 has changes in it. OWA proxy is working on my test server with Apache 2.4. But with 2.4 I do have an issue I cannot figure out. Note that this does NOT occur with Apache 2.2. I get the following errors when using ActiveSync through reverse proxy:
[Thu Oct 17 12:19:11.670665 2013] [proxy_http:error] [pid 748:tid 8440] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : [client x.x.x.x:20311] AH01102: error reading status line from remote server mail.nameredacted.net:443 [Thu Oct 17 12:19:11.670665 2013] [proxy:error] [pid 748:tid 8440] [client x.x.x.x:20311] AH00898: Error reading from remote server returned by /Microsoft-Server-ActiveSync
So somehow with Apache 2.4 there is some sort of timeout that was not there with 2.2.
I have a proxy site which is hosted with a proxy host, do i have to use proxy hosting as i have an account with another host i might want to use. The proxy hosting has run out.
I'm using the isapi rewrite module for iis 6 which uses the exact same syntax as mod_rewrite in apache. I'm not very well versed in apache and need getting this to work asap. Basically I have a directory in our website: URL....
I need to forward this to an IP address, for example to this address:100.12.33.45/folder.While keeping the original URL (www.xyz.edu/folder). I'm unsure of the apache syntax for this.
I work for a company who is on Microsoft Technology, IIS 6.0 specifically is what I deal with day to day. We support classic asp 3.0, .net and php ( through plain jane cgi mode *yuck* ) and I am newly hired and bring ruby on rails to the table.
Eventually we are going to replace the entire stack with ruby on rails as I re-code our existing tech. While waiting for IIS 7 to solve the majority of their problems with the lack of MS made IIS modules for rewriting URLs, fast CGI, Server-Side Forwarding I need to get my application out the door and for it to be stable.
Our server is a 2.4ghz Xeon with 512mb and our first order of business is to finally push it to 2g ram. That will help Ruby best as the application is running. What I would like to do is Have IIS sit in front of Mongrel, a ruby HTTP server serving my RoR applications, and pass requests to it.
For example the IIS right now is serving 3 .org/edu sites. We use a company to redirect our URL requests to our IP and IIS has 3 virtual servers passing on the buck all on port 80. It works very well.
I want mongel to sit at, for example, port 8080 and have 1 .org that we serve to use mongrel to serve the content. As I understand it this is called Server-Side Forwording, aka Proxy, and is very ellusive on Windows.
The options I have found is a) the use of Microsoft ISA which is probably out of the question. b) an ISAPI such is ISAPI Rewrite or c) Pound
Our problems arise is that we don't have the ability to toss up another machine for Pound or ISA. Pound can run on CentOS out the box but again, no machine as we are funded by grants, and that will ruin one of the network admins remote desktop uses [so I understand but I could be wrong.]
I have posted on the ISAPI Rewrite forums to see if their 'proxy' feature is indeed what I am looking for. I don't have anything bad to say about Microsoft tech, I enjoy Apache 1x, 2x and have come to respect IIS 6 as well. I just find it hard to find a lot of solid products and documented howto's on MS. One thing I don't find lack of is people with the same darn problem and nobody willing to share solutions exept the ones that are really just technology previews.
So my question is : Has anyone has run across this need and what you did to solve it. Am I on the right track? Again, solutions like mod_proxy for apache isn't an option I need IIS.
I'm from a country that block websites! Recently they blocked a useful website that my friends and me can't live without!
We already have a dedicated server (located in the US). We need to do the following:
- register a domain name, and when this domain is requested, requests will be served through our server. That means that our server will get the requested website then delivers it to the user who has requested the website
I know I can simply install a web proxy script such as CGIProxy and use it to surf this blocked website or other blocked websites as well, but that website heavily uses Javascript which I noticed that it does not function probably with scripts such as CGIProxy .
I do not need a detailed HowTo of course, I just need to know where to start from, is this related to some apache option? Do I need some specific software to be installed on server? I need any clue to get me started.
Okay, I keep seeing VPS (and dedicated for that matter) providers that say you have control over your box... and then forbid things like IRC, adult content, and proxies. Why? What is it about those three types of content that strike fear into the hearts of hosting providers?
I can see forbidding those on shared hosting accounts. The extra CPU and bandwidth required could really put a crimp on the other accounts. But with VPS and dedicated, you are paying for a portion of the CPU and bandwidth so why would the provider care what you do with them?
way to centrally login our FTP clients. We currently run ftp1/2/3/4.[url]and would like to have simply [url]which would authenticate the user and push the user to the relevant server.
This would hopefully work in the same way as a Radius Proxy.
if my main site hosted in usa and reverse proxy server located in UK or Canada. will my site load still quickly or be slow dramtically? both use linux and apache. or canada user will quickly load my site or still slow? how about usa customers?
I'm outsourcing some works overseas and my oversea employees are directly contacting the customer to discuss his needs. Everything is fine except when a client sees the email IP address (he is dealing with a local company, how come he is being emailed me from India or some similar places).
So I decided to create a proxy server for the oversea employees. I need the one that requires the browser setting change to have all the traffic passing through the server/VPS, therefore the IP will be the IP of the server and there's no way to find the original IP (of course no problem is it exists in the proxy server, but not showing in any way to the customer).
The problem is I absolutely have no idea how to do this.
- Can this be accomplished on a VPS or a server is required?
- Do I need a Linux or Windows OS?
- Do I need any software? If so, could you recommend some.
I would like to setup lighttpd with automatic insertion of some ads text to each html page requested by server.
I already managed this on Apache by adding perl scirpt as output filter, which actually work pretty well and fast. But the purposse of this project is freehosting with a lot of request's per second which will be critical for Apache and Lighttpd would do a better work in this case.
My solution, which I will use if anything better appears is to have Apache configured as a proxy inserting the ads and forward all request's to lighttpd.