Apache :: Serve XML File As Response For Appropriate Request When Web Service Is Down
May 30, 2013
I am using the latest version of Apache on an Windows XP machine
When my web service is down for maintenance, since Apache is will still be up and running, I would like for Apache to serve an xml file as a response for the appropriate request. I have three operations available, makePayment, calculateFee, and voidPayment.
Is it possible to have Apache determine what type of request is made for example if I have an xml error page for each operation; how will Apache know which xml file to serve based on the operation request from the client
To make it more clear: What is the best practice for modifying apache to know what request is being made in order to serve the appropriate xml file?
View 1 Replies
ADVERTISEMENT
May 16, 2009
Request response time on my openvz node is very very low!
Load is below than 4 6 5
But ping, http, mysql, ... response time is very low!
View 2 Replies
View Related
Jun 17, 2009
how to setup Nginx webserver on a cpanel server to serve static contents,
say /images folder from every domains hosted on the server so that Apache's load will decrease?
View 12 Replies
View Related
Jan 25, 2013
I have installed Apache 2.0.64(Win32) and after repeated tries at adjusting the httpd.conf file, it still is refusing to serve up CGI. So far I have, following the Apache documentation, set my designated CGI directory with AddHandler directive, Option +ExecCGI enabled. Also have added the ScriptAlias directive as per instructions. These directives should work in conjuction with modules mod_alias and mod_cgi, both of which I have made sure were set to be loaded. The log files show no errors. There are no syntax errors being pushed out at start-up. The server stops and starts upon commands, with no problems,
I will post some excerpts from my httpd.conf in the pastebin as soon as it gets up & running--right now the authentication icon is missing.I have Active Perl 5.16 running on this machine, but my Apache download is the binary without SSL and with msi installer.
View 7 Replies
View Related
Jul 30, 2008
can someone share to me a letter format as response to service termination. the thing is, one of my client will be terminating his hosting acct. and i want to give him a good impression so in case he would change his mind to put his website online, he would consider our services again.
<<Please setup signature in Member Control Panel>>
View 7 Replies
View Related
May 25, 2015
I have a little problem (on my Raspberry) with the maximum concurrent connections.When I open multiple tabs of a webpage which keeps persistent connections, apache is unable to serve more requests.Here is the (shortened) mod_info output (which also takes some time till there is a process kind enough to serve the request):
Code:
Server Version: Apache/2.4.10 (Raspbian) OpenSSL/1.0.1k
Server MPM: prefork
5 requests currently being processed, 9 idle workers
.___W____WWW_..W_...............................................
................................................................
......................
Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
[Code] ....
When I understood it correctly, apache should spawn new processes (up to MaxRequestWorkers=150)
But there are idle???? processes, so it wont add new ones?
I dont think it has to do with mod_proxy (used for the webpage) since the mod_info output is affected as well...
View 1 Replies
View Related
Aug 31, 2013
I need to serve domain subfolder from different Apache 2 server.
1. Squid 3 reverse proxy is pointin to 80.241.222.151 for domain [URL] ....
2. Apache 2 server is on 80.241.222.151 with all files in the root folder so all requests are served from here
3. Now im creating new server at 80.241.222.149 with all files from [URL] ... transferred to the root
4. On Squid 3 server [URL] .... is still pointing to 80.241.222.151
5. But now i need to call [URL] .... from 80.241.222.149 in the root.
What is the example to do this? mod_proxy on Apache 2 server at 80.241.222.151?
View 1 Replies
View Related
Nov 15, 2013
My website is on 1and1 shared hosting and to enable PHP I needed to put in my .htaccess the following
AddType x-mapp-php5 .php .html .htm .shtml
View 11 Replies
View Related
Jun 14, 2008
I recently switched webhosts from The Planet to iWeb -- not really because of the recent outages at The Planet but more because I was just looking for a better price/performance ratio. I thought other people should be warned about my experience, which was that it was not possible to get The Planet to honor my request to cancel service.
I filled out their online form to cancel service. They then sent me an automated email saying that I had to call a certain 800 number within 48 hours to confirm. When I called that number, I got a message saying that all their people were busy, and offering to let me leave a message and have them call me back. I tried four or five times over then next day and a half or so, leaving multiple messages, but I never got through, and they never returned my calls. I then opened an online chat session with one of their people. After going around in circles for a while, she told me that The Planet had a new policy, which was that confirmation was not required in order to cancel an account. She assured me that my account would be canceled within 48 hours of my original request, and that I would receive an email by then confirming the cancellation of the service.
At this point my monthly billing date was only one day away, and I wasn't very convinced that they actually would refrain from billing me. So I called my credit card company and changed my credit card number to make sure that it wouldn't be possible for The Planet to run the recurring charge. (Changing the number seems to be the thing to do in this situation, and is really not that difficult. You just have to switch any other recurring-charge accounts to a different credit card, and wait a week for the new version of the card whose number was changed.)
Well, sure enough, I got an email from The Planet saying that they'd tried to bill me, and the charge had failed.
I don't know if this is a systematic problem at The Planet. A couple of things may have contributed to the problem. One is that I was originally a customer of Rackshack, which was renamed to EV1 and later bought by The Planet. The Planet apparently has separate user databases for the two sets of customers, and this initially confused the person I talked with in the chat session, although she eventually assured me that it was ok. The other factor that may not be generally applicable is that this was in the time period right after the explosion at one of their data centers, so things were probably crazy there, and that may have contributed to their problem with processing the cancellation correctly.
View 12 Replies
View Related
Mar 27, 2013
I'm running Apache 2.4.4 on Windows Server 2008 R2. It's already happened many times that Apache stopped responding to requests. The last entry in the error.log:
[Wed Mar 27 06:22:07.043600 2013] [mpm_winnt:notice] [pid 1736:tid 256] AH00354: Child: Starting 64 worker threads.
[Wed Mar 27 06:52:34.521200 2013] [mpm_winnt:error] [pid 1736:tid 1656] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
View 1 Replies
View Related
Feb 21, 2008
does anyone of you know a script that bans
a IP that is trying to access a specific file I can manually define?
View 2 Replies
View Related
Jun 16, 2014
My development environment is:
OS: Windows 2003 SP2
Httpd: 2.4.9
JDK: 1.7.0_60
Tomcat: 7.0.45
mod_jk: 1.2.40
When I deploy my application into tomcat, and bind httpd with AJP, httpd do not response occasionally, it will halt 2-3 minutes. The quickly way is restart httpd
View 1 Replies
View Related
Oct 21, 2014
I have setup a reverse proxy that allows users to query an internal server. That internal server returns a JSON or XML response.
In that response some URLS need to be rewritten as they cannot be resolved externally. Is it possible to rewrite JSON/XML response bodies?
I experimented with "ProxyHTMLURLMap 1.1.1.1 2.2.2.2" but that did not work (seems to ignore the JSON response entirely)...
View 1 Replies
View Related
Oct 17, 2013
My site will wait for 30s almost everytime before loading any of the page itself.Specs of my install:
- DigitalOcean Droplet (VPS) with Ubuntu Server 12.10: 512 Ram and 20GB SSD (not even coming close to needing more RAM, still have 240MB free according to top)
- Wordpress 3.6.1
- 5 plugins: W3 Total Cache, Wordpress SEO by yoast, WP Better Security, WP Smush.it, and Redirection (problem occured before adding the last 2, I can't remember about the others)
- No traffic to speak of. I get maybe 10 uniques/day.
- Apache 2.2.22
- MySQL 5.5.32
I've optimized my site itself the best I can, minifying and combine js and css files, using the WP Smush. It plugin to compress images, serving jQuery from a CDN, but none of that worked the 30 second wait (though it did shave about 10 seconds off the load time after the wait for response).
I was using cloudflare and had to fiddle with the nameservers of my domain, but cloudflare didn't work at all and I switched the nameservers back to normal pointing DNS directly at my site to eliminate the obvious causes. I'm comfortable with Linux and the command line. This is the link to my site: [URL] ....
View 3 Replies
View Related
Aug 17, 2012
How can i remove "Connection and keep-alive" from response headers ? I am using Apache http server to load balance two tomcat nodes
Apache Server- Apache/2.4.2
mod_jk - 1.2.27
Apache tomcat - Apache Tomcat/7.0.23
JDK - 1.6
I have also enabled SSL in the apache http server using mod_ssl. The load balancing works fine, but in all the response headers these connection attributes are added "Connection: keep-alive keep-alive: timeout=5"
Is there a way to remove these headers? I do not want these headers to be added in the response. I have also tried mod_header to unset these headers, but no use. HTTP/1.1 protocol is being used, so eventhough the connection is not present in the header, the connection would should be considered as persistent. Why is apache sending these attributes explicitly in each response. I just want to get rid of these attribute...
View 7 Replies
View Related
Mar 4, 2014
We are trying to disable server info into response header.
Header unset Server
Header set Server "unknown"
It is not working.We have installed "Apache 2.4.6-x86 server" on Win 2008 R2 Standard server (64-Bit).
View 3 Replies
View Related
Dec 6, 2008
when i check apache status, i see one domain send many request to server, for example:
domain.com 10.20.30.40
domain.com 10.20.30.40
domain.com 10.20.30.40
domain.com 10.20.30.40
domain.com 10.20.30.40
-
-
-
how can i prevent this problem?
this problem tease me and my server, because induce apache to work unremitting.
Ram Usage is: 65%!
View 5 Replies
View Related
May 12, 2015
I am working with XAMPP 5.6.8 (Apache 2.4.4, MySQL 5.5.32 and PHP 5.6.8 ) on a 64 bits Windows 7 Ultimate (Service Pack 1) Operating System.
I am working with an Arduino UNO and a WIFI Shield connected to the Apache server.
I am sure Arduino is connected to the WiFi network and to the server, and it also sends the GET request to the server.
Apparently, everything is OK because I can see the 200 OK message from the server in the Arduino serial monitor, but I find no trace of that request in the server log although all the requests made from the browser (by typewriting the server address in the browser address bar and pressing enter) appear in the server log.
View 6 Replies
View Related
Jan 22, 2014
I have Configured Apache2.4.4 for forward Proxy and tested from my browser the response is very slow and even not coming complete Response for some requests.
I also Tested the same for Apache2.2 Forward Proxy it is very fast and good.
May I know what is the Problem in Apache 2.4
Is there any Issues in proxy modules (mod_proxy,mod_proxy_connect.so,mod_proxy_http.so) in Apache2.4
This is the same configuration i used for Apache2.2 and Apache2.4
##########################################################################
## Apache Forward proxy
##########################################################################
<IfModule !proxy_module>
LoadModule proxy_module modules/mod_proxy.so
</IfModule>
<IfModule !proxy_connect_module>
LoadModule proxy_connect_module modules/mod_proxy_connect.so
[Code] ....
View 1 Replies
View Related
Oct 21, 2007
New VPS, CentOS 4.5, Apache 2.0.52, Plesk 8.2.
Every request is getting processed 3 times. In other words, if I point my browser to the URL of an image hosted on this server, it generates 3 lines in the access log each time I refresh the page.
If I point it to a script which logs something to a file, it logs it 3 times, showing it's run all 3 times.
I haven't touched the httpd.conf or any other configuration. Any idea what could cause this?
View 4 Replies
View Related
Jan 17, 2007
Is there any tool out there (I prefer command line) that is especially for analysis of apache error log files ? I need something that can summarize information from log and give them back to me.
View 0 Replies
View Related
May 22, 2015
My site is hosted in shared hosting.
Whenever I try to upload text using form It is showing me '413 - request entity too large'
I have uploaded the screenshot of the problem so that you can view the problem i details.
View 1 Replies
View Related
Nov 13, 2013
In my web site I have several index pages in different languages in the following format
[URL] ....
Two days ago I noticed increased, many times. Google bot activity on my site and when I checked my log file I found that all pages crawled were wrong web addresses: to the above index were added existing files from my site like
/folder1/folder2/file.html
So, the strings looked like
[URL] ....
And surprisingly all they returned code "200".
My question is: is there any way to rewrite such requests to the first ".html" found in the string.
View 2 Replies
View Related
Feb 3, 2014
I have question for apache in centos. I loaded the apache and I want to know that which MPM used by default two MPM defined in apache but which MPM apache actually used for request server.
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
[Code] ....
View 6 Replies
View Related
May 31, 2015
I have following components configured.
LoadBalancer, Apache and SSL enabled JBoss.
Lodbalancer URL ....
Apache URL ...
Jboss URL (SSL) ...
When the request comes to Loadbalancer, it is forwarding the request fine to apache.
But from apache I am not able to forward the request to Jboss(SSL)
I am using below settings on httpd.conf file of apache but url is getting changed to [URL] .... from [URL] ...
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://servername:8443/EPC [R,L]
I still want the generic name (emsprod.com) to be displayed on url instead of server name.
How I can successfully forward the request to Jboss when I access LB url.
View 3 Replies
View Related
Nov 18, 2014
I would like to rewrite mysite.com to www.mysite.com.
However, if the request is a subdomain (i.e. blabla.mysite.com), then it should not rewrite.
I believe this gets me close, but it will not differentiate the subdomains (i.e., blabla.mysite.com).
View 5 Replies
View Related
Nov 1, 2014
I've just joined the group and new to Apache/php. I have just assembled a website in Joomla/vertumart and called petslovezone.com.au. I want to redirect all the request such as
1. http://xyz.com to https://xyz.com
2. http://www.xyz.com to https://xyz.com
3. xyz.com. to https://xyz.com
4. www.xyz.com to https://xyz.com
now know I have to change .htaccess "RewriteEngine On" section. What would be the best code to do all the above.
Apache Version2.4.10
PHP Version5.4.32
View 2 Replies
View Related
Jul 4, 2014
As we are planning to implement Mobile for our platform, we want to distinguish between request coming from Mobile and Web in Apache. We will be using Apache for Reverse Proxy and we want it to differentiate the request source and forward it to required destination.Is this possible ?
View 1 Replies
View Related
Jun 17, 2008
in my apache server error logs:
[Sun Jun 15 20:26:18 2008] [error] [client xx.xx.xx.xx] Invalid URI in request ntity, trailers
[Sun Jun 15 20:42:44 2008] [error] [client xx.xx.xx.xx] request failed: erroneous characters after protocol string: gzip, $
[Sun Jun 15 22:34:05 2008] [error] [client xx.xx.xx.xx] client sent HTTP/1.1 request without hostname (see RFC2616 section$
[ Jun 14 11:27:23 2008] [error] [client xx.xxx.xx.xx] Invalid URI in request rset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
[Fri Jun 13 12:15:12 2008] [error] [client xx.xx.xx.xx] request failed: error reading the headers
View 0 Replies
View Related
May 28, 2008
I am seeking a solution such that the apache vs 2 denies php or allowing requests out of the server to say domain abc.com and its entire IP block.
I have done so far is used apf -d abc.com to deny outgoing and incoming requests and the php pages (proxies) cannot access the site anymore).
But what i want it something hardcoded into apache itself so it blocks all php based request going off the server to that domain.
How can i go about it?
using centos5 apache 2 and cpanel!
View 2 Replies
View Related