Apache :: Httpd Do Not Response Occasionally

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


ADVERTISEMENT

Apache :: Rewrite JSON / XML Response Possible?

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

30 Seconds To Initial Response - Wordpress / Apache On Linux VPS

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

Apache :: How To Remove Connection And Keep Alive From Response Headers

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

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 View Related

Apache :: Disabling Server Info Into Response Header

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

Apache :: 2.4.4 Forward Proxy - Response Slow When Tested From Browser

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

Cant Restart Apache Httpd

Aug 3, 2008

I am trying to restart my apache since i made changes to my php.ini file.

I tried using this command /etc/init.d/httpd restart which didnt work for me..any ideas guys? Its a basic dedicated server from a hosting company..

View 10 Replies View Related

Apache 2.2 And Httpd.conf

Mar 6, 2008

I recently updated to apache 2.2 and when I went to check

/usr/local/apache/conf/httpd.conf

I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update.

I was actually looking to change the

Keepalive
Timeout
MinSpareServers
MaxSpareServers
MaxRequestsPerChild
Etc...

But it doesn't look like it's in there.

View 2 Replies View Related

Apache 2 - Httpd.conf

Sep 15, 2008

how should I optimize httpd.conf on my server. Apache was set up by my friend, unfortunately it started to "stuck" lately during peak time. Browser is connecting to a website for a long time before it actually starts to load it.

My current setup:

Timeout 300
KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 15
MinSpareServers 2
MaxSpareServers 5
StartServers 5
ServerLimit 650
MaxClients 650
Server:
Intel Quad-Core Xeon X3220 @ 2.40 GHZ
4x 2GiB Kingston ECC Not-Registred 667Mhz
2x 150GiB RaptorX 10k RPM, sw raid 1

View 12 Replies View Related

Apache Httpd.conf

Nov 10, 2007

tuning apache configurations, and would like to seek for some opinions on how I should optimize my httpd.conf

The server is primarily for downloads, serving file sizes that are around 100~200MB.

how I should configure my apache so it'll allow a better/faster/more stable environment?

Hardware Specs:
Intel Xeon 3220 Quad-Core (2.4Ghz)
2GB Ram

My current httpd.conf

ServerTokens None
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 20
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

# worker MPM
<IfModule worker.c>
StartServers 4
MaxClients 500
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

View 4 Replies View Related

Apache :: HTTPD Crashing On Its Own

Jul 12, 2013

httpd 2.4.4 x64 with php 5.5 x64 and mysql 5.6 x64, it worked just fine the first few days, but after a week or so, I'm starting to get this error:

[mpm_winnt:notice] [pid 1928:tid 552] AH00428: Parent: child process 8092 exited with status 255 -- Restarting.

What can cause that and how can I fix it?

View 2 Replies View Related

Apache :: Httpd Can't Access SSL

Sep 28, 2014

I can't reach my website, I get a "corrupted content" error message in the browser.Looking into apache (version 2.4.7), I get

Code:
~$ apachectl -S
AH00526: Syntax error on line 22 of /etc/apache2/sites-enabled/000-default.conf:
SSLCertificateKeyFile: file '/etc/ssl/private/owncloud.key' does not exist or is empty
Action '-S' failed.

However, I double checked that the file is in the appropriate location and does contain the key, so maybe apache has no permission. afaik, it doesn't run as root all the time - or only for a short time?

permissions for the key file are as follows:

Code:
~$ sudo ls -l /etc/ssl/private/owncloud.key
-rw-r--r-- 1 root ben 1704 Sep 28 04:01 /etc/ssl/private/owncloud.key

, where ben is my normal user.

It was suggested to me on the httpd IRC channel that maybe apparmor was doing something wrong, but I don't know how to investigate that.

View 6 Replies View Related

Apache :: Can Httpd 2.4.X VC10 And PHP 5.4.X VC9 Be Used Together

Mar 9, 2013

I did some googling and searching on Apache lounge forums prior to posting this question, but I didn't find a definite answer to whether is it ok to use Apache Httpd v2.4.X VC10

View 2 Replies View Related

Apache/httpd Wont Restart

Jan 25, 2008

I keep trying to restart Apache but it wont restart... I run a command line to restart it, but nothing happens. Here is what I have tried:

Quote:

-bash-3.1# chroot /home/fatehost.net/runtime_layeredpanel/
fatehost:/# /etc/
bash: /etc/: is a directory
fatehost:/# /etc/init.d
bash: /etc/init.d: is a directory
fatehost:/# /etc/init.d/httpd-users
Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload
fatehost:/# /etc/init.d/httpd-users start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80
no listening sockets available, shutting down
Unable to open logs
fatehost:/# /etc/init.d/httpd-users restart
Forcing reload of web server: Apache2httpd (pid 5955) already running
.
fatehost:/# /etc/init.d/httpd-users force-reload
Forcing reload of web server: Apache2.
fatehost:/# /etc/init.d/httpd force-reload
Forcing reload of web server: Apache2.
fatehost:/# /etc/init.d/httpd-users restart
Forcing reload of web server: Apache2httpd (pid 13475) already running
.
fatehost:/#
fatehost:/# /etc/init.d/httpd-users start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80
no listening sockets available, shutting down
Unable to open logs
fatehost:/# /etc/init.d/httpd-users stop
Stopping web server: Apache2.
fatehost:/#
fatehost:/# /etc/init.d/httpd-users start
Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80
no listening sockets available, shutting down
Unable to open logs
fatehost:/#
fatehost:/# sudo /etc/init.d/httpd-users stop
bash: sudo: command not found
fatehost:/# su root /etc/init.d/httpd-users restart
Forcing reload of web server: Apache2httpd (pid 20391) already running
.
fatehost:/# /etc/init.d/httpd-users reboot
Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload
fatehost:/# reboot
WARNING: could not determine runlevel - doing soft reboot
(it's better to use shutdown instead of reboot from the command line)
shutdown: timeout opening/writing control channel /dev/initctl
init: timeout opening/writing control channel /dev/initctl
fatehost:/# WARNING: could not determine runlevel - doing soft reboot
bash: WARNING:: command not found
fatehost:/# (it's better to use shutdown instead of reboot from the command line)
> shutdown: timeout opening/writing control channel /dev/initctl
> init: timeout opening/writing control channel /dev/initctl
>
fatehost:/# /home/fatehost.net/runtime_layeredpanel
bash: /home/fatehost.net/runtime_layeredpanel: No such file or directory
fatehost:/#

View 6 Replies View Related

Apache Httpd Service Crashing

May 17, 2008

It's been happening on both my old and new server, was really hoping this would be fixed.

Basically, the httpd/apache service crashes or goes down making domain names and sites unable to load; although cPanel/WHM still accessible. This would go on for about 5 minutes OR until I restart httpd in root.

sites simply do not load or just timeout after a period of time.

This has become extremely annoying for both me and my clients because it makes it seem like we have downtime.

View 11 Replies View Related

My Apache Any 1h Going To Down And I Force Run Restart Httpd

Oct 22, 2007

i ask of cpanel.net that why : my apache any 1h going to down and i force run restart httpd

cpanel :
Howdy,

This is occurring because your server is consistently hitting the maximum
allowed concurrent connection limit, defined by MaxClients in httpd.conf:

[root@part7 ~]# grep MaxClient /usr/local/apache/logs/error_log | tail -5
[Mon Oct 22 13:07:46 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 13:32:03 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 14:03:29 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 14:16:07 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[Mon Oct 22 16:48:36 2007] [error] server reached MaxClients setting, consider
raising the MaxClients setting
[root@part7 ~]#

You will need to adjust this setting to a value which better accommodates your
server to prevent any further downtime.

View 5 Replies View Related

Apache: Httpd Not Running, Trying To Start

Jul 22, 2007

Code:
[root@serwer /]# httpd restart
/usr/sbin/httpd restart: httpd not running, trying to start
/usr/sbin/httpd restart: httpd could not be started

Code:
[root@serwer /]# httpd status
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile [url]

View 14 Replies View Related

Apache Does Not Restart After Editing Httpd.conf

Jun 12, 2009

I am having a problem on my VPS. I am running the latest version of Apache on Windows Server 2K3, and after editing httpd.conf to allow virtual hosts (#Include /conf/extra/httpd-vhosts.conf) and trying to restart the service, an error appears saying the operation failed.

I have even tried restarting/starting the service via services.msc

If I am not using the default httpd.conf Apache will not restart at all... it is very strange. I have also tried doing a repair of the installation of Apache.

View 11 Replies View Related

/usr/local/apache/bin/httpd -k Start -DSSL

Jul 29, 2009

When I look at my Current CPU Usage / process manager, I see this:

Pid |Owner | Priority | Cpu % |Mem % | Command

13754 | nobody | 0 | 2.2 | 4.0 |/usr/local/apache/bin/httpd -k start -DSSL

I've got about 9 more of these, and it keeps eating up the memory. What is it and what can I do? Is it just apache running?

View 14 Replies View Related

Apache :: Httpd Service Unavailable 503 Error

Jan 13, 2015

I am using windows 2008 R2 64 bit O.S, I downloaded httpd-2.4.10-win64-VC11 and tomcat-connectors-1.2.39-windows-x86_64-httpd-2.4.x and I created 3 tomcat workers and then I configured workers.properties and httpd.conf.

After complete setup when i tried using

http://localhost then

I got It works! message (looks everything is fine).

and then I have deployed my sample web application I tried to access the same application then using

http://localhost/SampleCluster

I am getting

503 service not available.

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

View 1 Replies View Related

Apache :: 2.2 On 2008 R2 Won't Start After Modding HTTPD For SSL

Oct 31, 2014

New to Apache Web Server. Built the self signed certs, and tried to bring up server after configuring the httpd.conf file.I also included the section of the error log file that is pertinent.httpd.conf removed, use past bin.

View 1 Replies View Related

Apache :: Httpd -S Show Two Source Of A Site When Its Config In One

Jan 31, 2014

When i do httpd -S i notice one of my sites show with 2 config source. but i just config one file for the site.

for example:

[root@apachesrv ~]# httpd -S | grep devel.site.com
default server devel.site.com (/etc/httpd/sites/000-default.site.com:1)
port 80 namevhost devel.site.com (/etc/httpd/sites/000-default.site.com:1)
port 80 namevhost devel.site.com (/etc/httpd/sites/devel.site.com:1)

the problem is the following, when i do reload and in this moment the config is bind this result, the site is blank.

Why it shows me this.

version of apache
Server version: Apache/2.2.15 (Unix)

View 1 Replies View Related

Apache :: Rotatelogs Crashes When Used As Piped Logging With Httpd

Apr 16, 2015

I've got a problem at a local customer with rotatelogs.exe and the current release of Apache HTTPD 2.4.12.

I've downloaded the 64-bit zip-file (VC11) and installed the VC11 vcredist in both 32- and 64-bit version.

The project is to upgrade apache 2.2 to apache 2.4. I've adjusted the configuration and added rotatelogs for log rotation for error_log and access_log.

The configuration is 100% correct, I can copy the line to cmd.exe and it runs correctly.

Variables are set in global environment, APACHE_HOME is set with "/" instead of "" to get sure rotatelogs.exe is found.

View 2 Replies View Related

Apache Stops Working And Have To Restart The Httpd Service

Jul 21, 2014

Out of nowhere apache stops working, and I have to restart the httpd service that restablesca

The message it throws is "Service Unavailable"

The server is a CentOS Linux Centos 6.5

It has 24 cores and 24 GB RAM

These are the values ​​that I have in httpd.conf

Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

[Code]....

View 3 Replies View Related

Cpu High Load /usr/local/apache/bin/httpd -k Start -DSSL

Jul 29, 2009

after installed php 5.2.10
nobody /usr/local/apache/bin/httpd -k start -DSSL

Code:
5896 nobody 0
81.5
1.3 /usr/local/apache/bin/httpd -k start -DSSL
mysql (5.0.81-community)
os : centos 5.3

Has been very fast server. Guide is accurate and if you leave.

View 1 Replies View Related

How To Use Appache (HTTPD) With LXAdmin? Only Apache Homepage Shows, Not My Pages

Apr 30, 2009

I've got a VPS with XenSmart, and I'm running CentOS. Recently, I have been needing to redirect my users to 'www.', since if they don't put the 'www.' in front of the domain the vB forum doesn't run properly. Though, to do this, I edited the .htaccess file and was using the 'mod_rewrite' command, but this requires Apache.

So, on my VPS I've installed Apache, and set LXAdmin to use 'httpd' instead of 'lighttpd', though now my web pages wont show up and all I've got is the default Apache web page:

[url]

How am I able to use Apache (HTTPD) and have it load my current forum? My current forums hosted in:

/home/admin/public_html/vb

View 1 Replies View Related

Apache Wont Start :: Httpd.conf File Was Empty

Apr 6, 2008

[root@server1 ~]# service httpd start
no listening sockets available, shutting down
Unable to open logs

CENTOS Enterprise 4.6 i686 on standard - WHM X v3.1.0

apache 2.2

httpd.conf file was empty... I'm recompiling right now.

View 3 Replies View Related

Installing Httpd-devel Module On Fedora Updates Apache

Feb 26, 2008

to install mod_evasive module on our Apache2 that runs on Fedora server. However, for that we need Apache's apxs to compile it. We found out that we can do that by running the

yum install httpd-devel
However, when we run that, we get the following:

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
httpd-devel i386 2.2.8-1.fc7 updates 144 k
Updating:
httpd i386 2.2.8-1.fc7 updates 1.0 M
openldap i386 2.3.34-7.fc7 updates 291 k
Installing for dependencies:
apr-devel i386 1.2.8-6 fedora 170 k
apr-util-devel i386 1.2.10-1.fc7 updates 54 k
cyrus-sasl-devel i386 2.1.22-8.fc7 updates 351 k
db4-devel i386 4.5.20-5.fc7 fedora 2.3 M
expat-devel i386 1.95.8-9 fedora 129 k
openldap-devel i386 2.3.34-7.fc7 updates 1.5 M
Updating for dependencies:
httpd-manual i386 2.2.8-1.fc7 updates 821 k
mod_ssl i386 1:2.2.8-1.fc7 updates 85 k
openldap-clients i386 2.3.34-7.fc7 updates 179 k

Transaction Summary
==========================================
Install 7 Package(s)
Update 5 Package(s)
Remove 0 Package(s)

Total download size: 7.0 M
We're kind of cautios, because we have never updated Apache on our live server. We'd prefer if we could download and install just the httpd-devel module. Is this possible?

If not, would this mess up any of our existing configuration? Could we expect any problems? And do we need to shut Apache down, then run the updates and only then restart it?

View 5 Replies View Related







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