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 )
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.
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 received notices from several customers with this error and I checked myself. When trying to connect to a ftp hosted on my server with Plesk gives an error expired certificate, a certificate of Parallels. The solution I've found is to configure access without TLS but says it is unsafe and customers are not satisfied.
I have 3 computers on the same network. One running apache2 on Ubuntu 12.04 and the others with Windows7. I want to access the website I set up from a Windows machine. When I type in the URL, domain.com, I get a 404 error. When I type in 127.0.1.1/domain.com I get the directory listing for the website. I have to actually type 127.0.1.1/domain.com/public_html/ before the website can actually be seen. I would like to get rid of the public_html part. I am brand new to all this.
I'm not sure if it's a technical or a license issue. When I try to retrieve external services, such as purchase an ssl certificate or buy an application; I see the the following error: "Error: Error validating license."
For example: If I click on 'Tools and Settings' > 'External Services' > 'View Services' , the browser redirects to [URL] .... (as it should) and then gives me the license error. I have re-retrieved my license key, and even downloaded and reinstalled it from the Parallels Partner Channel and the problem persists. When I check the license key status from the Panel it says, "Key Update Status: License key PLSK.02557481.0016 is up-to-date." Everything else is working fine.
I am running Plesk version 12.0.18 Update #37 on Centos 6.6
I created a new virtual site and cloned an existing to to the new docroot to have content. But when I access it I receive the Access Denied you do not have permission to access . . .I've checked all my entries and unless I'm blind I cannot figure out how to remedy this on my Windows 2003R2 server running apache 2.2.x
So I have a script running on my apache that catalogs pictures and clips. All the actual video files are located on a separate drive which is mounted in to a folder in my site. I've set apache as the owner and have the correct permissions on the mounted folder but I'm getting Forbidden errors accessing files even when on html file in the mounted folder.
I know it's a permissions issue at the disk or mounting level. The way I mount is by using this command:
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:126.96.36.199/folder.While keeping the original URL (www.xyz.edu/folder). I'm unsure of the apache syntax for this.
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 188.8.131.52] proxy: DNS lookup failure for: freehostedsite.com returned by /brit.htm [Thu Mar 27 20:31:44 2008] [error] [client 184.108.40.206] 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.
I have a website that I want to have people sign up for a user name and password in order to view member content on it. Right now I dont want them to pay for anything, but I want them to be able to go to the site, view a few pictures of clothing, and in order to see more of that line of clothing, they have to register to be a member, or already have a username and password to login and see. Is this done only through webhosts? or is there code that can be bought to accomplish this? what are my options to get this going?
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:
[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.
I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout should be in Proxy Pass and if timeout occurs it shifts to Refer.com | The world
I m trying to setup a reverse proxy with several site that will redirect the request into several internal server.I wanted to do that with several VirtualHost (like shown below). Unfortunatly whatever I type on my browser testsupport.xxxx.com or support2.xxxx.com I m redirected at the first of the config file (in the exemple http://10.253.12.41/.Is it the ServerName key that will redirect to the right proxypass ?
I have a setup where Apache connects to a F5 load balancer which in turn balances between two jboss app servers.
Apache using mod_proxy -> F5 (hardware load balancer) -> 2 jboss application server
It uses jsessionid. I sometimes get 500 errors for the post methods. I think the request goes to the incorrect jboss server because of the F5 load balancer. Everything works just right when I shutdown one of the jboss app servers.
I'm trying to do a setup of alfresco.It has two basic sites. [URL]. Both use kerberos authentication. Alfresco has SSO and share has not. Both sites are on the same server (its just one site but different subs)
I want to put this behind a reverse proxy to eliminate the servername:port combination.
When I put it in a normal config with ajp everything works fine for the share website. I can login without problems. Not so however for the alfresco website. I get a browser login request (not the alfresco one) when i enter my credentials he asks them again and again and then he ends on the regular login page of alfresco at which point everything works. The username I entered is displayed at this point. When I do not enter my credentials correct I do not reach the page.
If I remove the SSO from the alfresco website everything is normal (but i have to login)