Apache :: Mod Proxy - Error Page Handling

Nov 10, 2014

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 )

Config like:
...
ProxyPass /abc/ http://server4/abc/
ProxyPassReverse /abc/ http://server4/abc/

View 1 Replies


ADVERTISEMENT

Apache: Setup A Proxy For One Page

Mar 5, 2008

Im using AJAX on my site and i need to access a seperate server instance on a different port. AJAX wont allow me to do that so i want to use Apache as a proxy but only for one page.

View 4 Replies View Related

Apache :: Proxy Error In Accessing Web Portal

Nov 6, 2014

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

What do I need to check?

View 7 Replies View Related

Apache :: Reverse Proxy Giving 404 Error

Mar 21, 2014

I need to get working an apache2 in suse 11 as reverse proxy with a vendor's web page and it is not working. This is what happens:

1. I load the page through the reverse proxy and i can see: http://192.168.1.10/cgi-bin/design/html_template/login.html

2. Then i write user and password

3. I press the login button and i should see:

http://192.168.1.10/cgi-bin/design/html_template/login.cgi
http://192.168.1.10/cgi-bin/design/html_template/webviewer.cgi

but instead of that i see:

404 Not Found
The requested URL /error/HTTP_BAD_GATEWAY.html.var was not found on this server.

View 5 Replies View Related

Php.ini Error Handling

Oct 15, 2007

If I have a php page with no errors, everything works fine. If I remove a semicolon so it should give me an error, it displays nothing but a white page... Also, there is no error_log created.

php.ini error config:

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = "E_ALL"
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
error_reporting = E_ALL & ~E_NOTICE

; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
;log_errors = On;

; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; sourcelines.
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Disable the inclusion of HTML tags in error messages.
;html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot.
;docref_root = "/phpmanual/"
;docref_ext = .html

; String to output before an error message.
;error_prepend_string = "<font color=ff0000>"

; String to output after an error message.
;error_append_string = "</font>"

; Log errors to specified file.
error_log = "error_log"

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = error_log;

View 8 Replies View Related

Reverse Proxy Apache ==> IIS, Need Custom Error Pages Triggered On IIS Side

Dec 3, 2008

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?

View 0 Replies View Related

Apache :: Reverse Proxy Modules - Error Reading Status Line From Remote Server

Oct 17, 2013

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.

View 2 Replies View Related

Apache :: Redirect Some HTM Page To WordPress Page Without Path And Query String

Jan 5, 2015

I want to permanent redirect some .html page from subdomain to main domain WordPress page,Redirect permanent /cat/FSBO76.URL....

View 1 Replies View Related

Apache :: Proxy Pass / Proxy Pass Reverse

Jun 10, 2013

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.

View 3 Replies View Related

Proxy Error 502 When Using Www

Mar 27, 2008

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

View 0 Replies View Related

HTTP 502 Proxy Error

May 7, 2008

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.

View 1 Replies View Related

Installed Apache And PHP Only Seeing Default Apache Page

Jun 1, 2007

I am having an issue where I have a server that Directadmin is installed on. I go to the a url that is on the server and all i see is the default page of apache saying congrats, it is installed. Although there is no file like that in the public_html any longer and I can see my files in the public_html folder of that specific site.

View 6 Replies View Related

Proxy Error While Viewing Bandwidth At Reseller Panel

Oct 20, 2007

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...

Im using Ensim Pro 10.2.0 + RHE 4

View 1 Replies View Related

Plesk 12.x / Linux :: Reverse Proxy Not Working - 503 Error

Oct 12, 2014

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/

Code:

ProxyPass /cam http://xxx.xxx.xxx.xxx:8008/cam_1.png
ProxyPassReverse /cam http://xxx.xxx.xxx.xxx:8008/cam_1.png

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.

View 1 Replies View Related

IIS Custom 500.100 Error Page

Jun 2, 2009

I have configured a custom 500.100 Error for one of my web sites in IIS 6.0. However, the custom error page appears nested within the HTML of the page throwing the error, at the point the error occurs.

This is problematic as live errors are being overlooked when they appear late in the script as the majority of the page outputs normally.

On my development server IIS 5.1 this does not happen. The Custom Error Page is shown as its own page. The errors cannot go unnoticed.

How can I change IIS 6.0's Customer Error to behave like my development server, and do it just for the one web site concerned?

View 2 Replies View Related

Error Page Not Found

Dec 14, 2007

Im facing problem from last 48 hours when i try to access my site

www.yourdomain.com/forum

then it showing me error Page not found
Not Found

The requested URL /forum was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

and when i checked this forum folder through shell and cpanel then its there and when i try to access it through
[url]
then its working fine does any of you know whats the problem was plz help me my site was already closed from 48 hours God Bless you

View 7 Replies View Related

Cpanel 404 Error Page

May 30, 2007

I want to be able to set my 404 error page in cpanel so that the user when goes to my error page gets redirected back to lets say my home page.

Im a little stuck on how to set it in cpanels pre-configured set up.

This is kind of what i have but dont know how it works once my website is added it appears something like this;

<!--

--> mywebsite.com

<!--#echo var="REDIRECT_STATUS" -->

View 2 Replies View Related

Plesk 12.x / Linux :: Error When Accessing Backup Via Reverse Proxy

Jun 3, 2015

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>

View 1 Replies View Related

Apache :: Mod Proxy With Failover

Jul 13, 2014

I have the following setup in my apache vhost:

Code:

ProxyPass /abc http://www.newest.com/
ProxyPassReverse /abc http://www.newest.com/

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

View 1 Replies View Related

Front Page Auth Error

May 19, 2007

Forbidden You don't have permission to access /_vti_bin/_vti_aut/author.exe on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have done the following: uninstalled /re installed extensions via whm (same error)

.htaccess is default frontpage's code only, nothing else

/scripts/chownpublichtmls

dns zone propagated fully, correct (today)

.htaccess file:

Code:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.domain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp

View 0 Replies View Related

Apache :: 2.4.6 - Reverse Proxy Cache

Nov 19, 2013

I have Apache 2.4.6 on a Windows Server 2008 (windows build from apachelounge). I want to use it as reverse proxy cache with mod_cache_disk.

My configuration is:

Code:

<IfModule cache_module>
<IfModule cache_disk_module>
CacheRoot C:/temp/cache
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 3

[Code] .....

Loading a page with ~150 files (most images and js files) i keep runing into "locked requests" that are not comeing back and block the whole page from finishing loading. The files differ every time.

I see this warnings in my error.log (looks like they are connected to the behauviour above).

Code:

[Tue Nov 19 20:38:10.890013 2013] [cache_disk:warn] [pid 216692:tid 15924] (OS 5)Access is denied. : [client x.x.x.x:58963] AH00699: rename tempfile to file failed: C:/temp/cache/aptmpcBQArf -> C:/temp/cache/H8Cta/9ha4U/Uhhhs/OlQfU/1Q.data,

[Code] .....

View 1 Replies View Related

Apache :: Reverse Proxy With Several Websites

Apr 22, 2014

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 ?

<VirtualHost *>
ServerName testsupport.xxxx.com
ProxyRequests Off
ProxyPass / http://10.253.12.41/
ProxyPassReverse / http://10.253.12.41/
</VirtualHost>

<VirtualHost *>
ServerName support2.xxxx.com
ProxyRequests Off
ProxyPass / http://10.253.11.31/
ProxyPassReverse / http://10.253.11.31/
</VirtualHost>

View 10 Replies View Related

Apache :: How To Force SSL On Reverse Proxy

Nov 23, 2014

We are struggling to configure our Apache reverse proxy (on WIN 2008) server to force https.

We have the cert installed on the proxy server, and it seems to be working but we are unable to force connections to https: and the site is still available via http:

How do you enforce https on the site?

reading read about the .htaccess file, virtual hosts but still having a hell of a time putting it all together

Internet -> SSL -> Apache 2.2 -> HTTP -> web app

View 2 Replies View Related

Apache :: Mod Proxy With F5 Load Balancer

May 30, 2013

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.

View 1 Replies View Related

Apache :: 2 Kerberos SSO Through Reverse Proxy

Apr 24, 2014

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)

View 3 Replies View Related

Apache :: Proxy To SP Can't Log In After Fixing 401error?

Aug 12, 2014

I have apache 2.2 on Linux going through the a firewall to a backend sharepoint server. My sharepoint application has anonymous and authenticated traffic. This works fine most of the time but we randomly get (104)Connection reset by peer: proxy: error reading status line from remote server. I was able to fix this by adding *SetEnv force-proxy-request-1.0 1 *SetEnv proxy-nokeepalive 1 *RequestHeader unset Expect early But after I added this I was then no longer able to log in. I would receive a *HTTP/1.1" 401 my understanding is KeepAlive is required for NTLM to work so making sure I can stop the connection resets which are unacceptable and still allow the authenticated users to log in.

View 4 Replies View Related

Apache :: Setting Up Reverse Proxy

Apr 6, 2015

I'm currently in the process of configuring a red hat linux server as a proxy server for a number of back end web servers. I set up reverse proxying to hide the web server url's, but I've run into a problem with the second web server, because some of the directory structures are identical on both servers.

View 2 Replies View Related

Apache :: Reverse Proxy Redirect

May 14, 2013

I am having a little trouble getting a reverse proxy redirect to work. I have a Linux server running Apache2. I have installed SABnzbd+, Sickbeard, Couchpotato & Headphones onto this device. I want to access SABnzbd+, Sickbeard, Couchpotato & Headphones from the outside world (via a DYNDNS name).

I know that I could just forward the ports through the router, but I don't want all the extra ports opened. I was told that I can have Apache to do a revers proxy, but I can't get it to work. I basically want to be able to do type myname.dyndns.org/sickbeard instead of typing in myname.dyndns.org:8081.

View 1 Replies View Related

Apache :: Open Proxy On Website

May 23, 2015

I'm trying to fix a problem with open proxy on my website. It's running ubuntu & apache2. I also run pfsense for a firewall with snort. I have a SSL for the website, so I have regular port 80 redirect to https.

At first I did notice right away when I checked & saw this happen that proxy was turned on. So I got that turned off.

My firewall is still allowing these bad IPs to port 80. I would like to figure out what I could turn on the firewall or snort to stop those connections in addition to what needs fixing in apache. I've read the solution is to make the redirects go to a 403 error page.

I also tried adding a mod_security rule but ended up blocking all people from website, though I may have accidentally turned some other rules on too.

There are a few different problems it looks like.

First - It looks like they're trying to connect to my HTTPS then redirect to an ad through my domain name?
Second - It looks like they're still trying to use my website for open proxy but directly accessing ib.adnxs.com through my port 80. My logs indicate I'm redirecting to a 301 page.

View 2 Replies View Related

Apache :: 2.4.3 Mod Proxy Not Stable In Production

Dec 25, 2013

Have run through a bunch of threads on mod_proxy race conditions, possible causes, and potential solutions.

What is the status? Is there a fix for this, maybe in 2.4.7?

On 2.4.3 in production we literally have 10K errors in the past 2 months along the lines of:

Code : AH00898: Error reading from remote server returned by...

Application server (JVM webapp) issues no errors at the time of mod_proxy error occurring. It seems then that mod_proxy is sporadically broken, which is horrible for end users accessing an otherwise rock solid production application.

View 8 Replies View Related

Apache :: How To Use Reverse-proxy With Mod Rewrite

Nov 5, 2014

I am running a few different web servers on my home network and have found a way of binding each wb server (and any virtual hosts) to domain names and having a "central" web server rerouting a request to the appropriate server using reverse-proy. at the moment, this central web server is IIS (Windows Server 2008 R2) based and it works perfectly. I want to change the central server to an Apache based one.

As an example; I want the central server to see an incoming http request (e.g sub.domain.com) and reroute it using reverse-proxy to a different web server that wouldn't normaly be accessible from the Internet (e.g 192.168.1.122/index.html).

My question is how do you reverse-proxy to a different server on the LAN with mod_rewrite in Apache?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved