httpd is a typical process name of a web server.

learn more… | top users | synonyms

78
votes
2answers
24k views

How do I select which Apache MPM to use?

I'm a little confused between the different MPMs offered by Apache - 'worker', 'event', 'prefork', etc. What are the major differences between them, and how can I decide which one will be best for a ...
25
votes
6answers
64k views

How to configure basic authentication in Apache httpd virtual hosts?

I'm trying to configure mercurial access using Apache http. It requires authentication. My /etc/apache2/sites-enabled/mercurial looks like this: NameVirtualHost *:8080 <VirtualHost *:8080> ...
12
votes
3answers
2k views

Can you determine which Apache modules have been used and can be removed?

I, like many people, have a relatively out-of-the-box Apache installation with a lot of default "LoadModule" lines. Since the beginning, I've installed a lot of software, and to be honest, I don't ...
10
votes
2answers
4k views

HowTo redirect HTTP to HTTPS on the same httpd?

Here is what I have got: CentOS 5.4 (32-bit) installed Apache httpd (Server version: Apache/2.2.11 (Unix)) mod_rewrite already presents Question: how to redirect simple http://site.com to ...
9
votes
3answers
32k views

Apache httpd: How can I Deny from all, Allow from subnet, but Deny from IP within that subnet?

I am running CentOS 5.5 with the stock Apache httpd-2.2.3. I have enabled mod_status at the Location /server-status. I would like to allow access to this single Location in the following way: Deny ...
8
votes
3answers
5k views

Apache CustomLog to log full URL

I'd like to add a CustomLog directive to my apache configuration to log the full URL requested (or at least the host portion of the URL). I have several domains being handled by the same instance of ...
8
votes
2answers
14k views

MaxClients in apache. How to know the size of my proccess?

From http://httpd.apache.org/docs/2.2/misc/perf-tuning.html The single biggest hardware issue affecting webserver performance is RAM. A webserver should never ever have to swap, as swapping ...
7
votes
1answer
2k views

Authenticate http requests EXCEPT for from this IP

I've got Nagios running on a server here (CentOS 5.3 w/ Apache 2.2.3-22.el5.centos) authenticating to my LDAP server, and all works well. However, I'd like to have some IP able to see the Nagios ...
6
votes
6answers
5k views

Can RHEL 4 have two instances of apache httpd running using two different config files?

We have a Red Hat Enterprise Linux 4 instance running Apache on the default port. We want to add a second Apache instance that we can restart completely separate from the first instance. Can we do ...
6
votes
5answers
4k views

Apache uses 100% CPU. Can “ps” command tell me what it is doing?

I have a SLES 10 Linux server, and some times it is maxed out by Apache to 100% CPU. With ps ax can I see, that Apache have spawned ~50 Apache processes. Can e.g. the ps command tell me what each of ...
5
votes
3answers
1k views

Why do people put empty index.html files into web directories?

I see that quite often other people's web-site directories have empty html index files (1 file per dir). AFAIK - that's been done to prevent website users from seeing directory content - right? I ...
5
votes
5answers
218 views

How should I deal with logs before they get to big?

I found out my disk was full today, and I freed up 10% just from deleting mostly logs from multiple websites. I, personally, like to keep logs as an archive, because I may need to look back on them ...
5
votes
2answers
638 views

How would I run two different web servers on the same server?

I know that you can't listen to the same port and IP using two different server processes, but apparently this is possible if you allocate a separate IP address to each. Is this the case? I'm ...
5
votes
1answer
4k views

What is the maximum number of virtualhosts Apache can handle?

What is the maximum number of VirtualHosts Apache can handle on a single machine (I don't mean anything related to load, let's suppose it's irrelevant for the question). And we take only Apache ...
5
votes
3answers
4k views

Running out of swap space on web servers, what to do?

I have 2 LAMP web servers that are routinely running out of swap space (see attached top screenshot). Apache's settings are as follows: <IfModule prefork.c> StartServers 64 ...
5
votes
4answers
4k views

Too many httpd processes running and CentOS server freeze

I am running a high traffic website on a Dedicated-Virtual 16GB RAM CentOS server hosted by Media Temple. Very often the server dies because of high CPU usage (%1500) When i check the running ...
5
votes
1answer
340 views

Viewing complete computed Apache httpd configuration?

Is there a command / tool to generate the computed configuration that Apache httpd is using? I know I can manually go through the httpd.conf and other configuration files, but is there a standard tool ...
5
votes
5answers
705 views

Apache httpd dashboard options

We have a httpd instance that uses Virtual Hosts to serve content on various domains. What we are lacking is some sort of (near) real-time tool for showing the shape of our traffic. We can see the ...
5
votes
1answer
1k views

How to run PhantomJS on CentOS with SELinux?

I'm trying to make a screenshot using PhantomJS on my CentOS 5 machine, but I can't get it to work together with SELinux. It works on an identical machine with SELinux disabled, so I really suspect ...
5
votes
1answer
619 views

How to allow Active Directory authenticated users use Nagios web interface?

I have put .htaccess files in the Nagios html root and CGI root directories, so in order to get access to the web interface, the users needs a valid Active Directory account. The problem I have is in ...
5
votes
2answers
370 views

How do I configure apache to accept a client ssl certificate (if present) or authenticate using ldap (if the cert is absent)?

I have an Apache server that serves up mercurial repositories and it currently authenticates using ldap credentials. I want to permit a single user (to start with) to use a SSL client certificate, ...
5
votes
2answers
690 views

apache/httpd responds slower under EL6.1 than EL5.6 (CentOS)

I've read through other threads on performance differences between RHEL 6 and RHEL 5, but none seem a tight match to mine. My issue manifests itself in slightly slower average response time (20ms) ...
5
votes
3answers
3k views

httpready problem on Apache httpd restart on FreeBSD?

I run Apache HTTPD 2.2 on my FreeBSD 7.2 webserver. I have enabled the httpready and dataready in my /boot/loader.conf, like this: accf_http_load="YES" accf_data_load="YES" That works great when ...
5
votes
4answers
2k views

SSL connection errors from Apache

I'm running a (self-signed) SSL cert site on Apache/2.2.14 on Ubuntu 10.04, but various browsers are giving errors on half the connection attempts. Just now saw this transient error from Chrome: ...
4
votes
7answers
9k views

fastest web server for static, dynamic content?

I'm looking for the fastest http server available for: serving static content -- huge set of large images. Minimal features need, just as fast as possible. dispatching dynamic content plugins -- ...
4
votes
4answers
688 views

How to prevent bots from trying to guess a link on my site

My logwatch report which I installed recently shows me this: --------------------- httpd Begin ------------------------ 0.78 MB transferred in 5864 responses (1xx 0, 2xx 4900, 3xx 0, 4xx 964, 5xx 0) ...
4
votes
2answers
2k views

Apache “httpd” process, utilizing all my servers memory

My small ec2 instance with 1.7 GB memory, running the Amazon AMI based off of CentOS, has an issue with Apache utilizing way too much memory than it should. If you take a look at the screenshot, the ...
4
votes
6answers
14k views

script to automatically test if a web site is available

I'm a lone web developer with my own Centos VPS hosting a few small web sites for my clients. Today I discovered my httpd service had stopped (for no apparent reason - but that's another thread). I ...
4
votes
3answers
171 views

Run both sshd and httpd SSL on port 443 [closed]

Is it possible by anyway (maybe with inetd) to make 443 port serve both as sshd and as httpd SSL? Perhaps by analysing the request, if request is "CONNECT", then let httpd handle the connection; if ...
4
votes
4answers
249 views

Who is 1014? I have no user on my system named 1014, so why is this httpd process run as 1014?

[root@home ~]# ps au | grep httpd 1014 9701 0.0 0.2 281620 3124 pts/24 Sl+ 18:41 0:00 ./bin/httpd -X root 9742 0.0 0.0 3084 720 pts/22 R+ 18:45 0:00 grep httpd By the ...
4
votes
1answer
354 views

/var/lib/mysql folder is missing

I've created a virtual machine and am installing things from scratch. Definitely not a sys admin so I'm running into some trouble. I've installed these packages and then restarted httpd yum -y ...
4
votes
4answers
2k views

Apache: Automatic log splitting per Virtual Host?

Whenever we create new Virtual Hosts on our dev servers, we always have to manually specify separate access and error logs: ErrorLog logs/mysite/dev1-error.log CustomLog logs/mysite/dev1-access.log ...
4
votes
2answers
713 views

What is the impact of increasing the httpd process priority (negative nice)?

Renicing a process to a negative nice level increases the process's scheduling priority. High priority processes are run before low-priority processes. They are also allowed to run longer before being ...
4
votes
3answers
7k views

Failed to enable the 'dataready' Accept Filter

I'm not sure why, but I'm getting this warning when I start my apache... su-3.2# /usr/local/apache2/bin/apachectl start [Wed Sep 23 13:40:42 2009] [warn] (2)No such file or directory: Failed to ...
4
votes
1answer
1k views

How to troubleshoot Apache httpd that just went silent?

I had one of our Apache httpd servers "die" in a weird way overnight. I have looked at all relevant logs and cannot find anything out of the ordinary. This happened in our development environment ...
4
votes
5answers
2k views

Apache mod_rewrite remove question mark (?) and query-string substitution

I registered a RewriteRule with mod_rewrite, but the substituted URL are wrong. The rule are: RewriteRule ^/img/z(0|1)u(.+)\.(gif|jpg|jpeg|png)$ /image-servlet/img/?z=$1&url=$2 ...
4
votes
3answers
2k views

Simple User's Guide / Tutorial for Apache httpd?

Is there a simple user guide or tutorial for Apache httpd? I find that the official documentation (http://httpd.apache.org/docs/2.2/) is a little hard to navigate and learn from if you're not up to ...
4
votes
1answer
2k views

how to rewrite '%25' in url

My website software replaces space characters with '+' characters in the URL, A proper link would look like 'http://www.schirmacher.de/display/INFO/How+to+reattach+a+disk+to+XenServer' for example. ...
4
votes
2answers
2k views

What's the equivalent of <Location> in .htaccess?

I'm setting up Trac, and want to password protect the login page, as suggested here. I'm on a shared hosting setup, so I can't modify the httpd.conf, I have to use .htacces. How do I restrict just ...
4
votes
1answer
127 views

How to use apache-status if the http connection table is full?

I am currently faced with a comical situation: I am testing DOS tools against a test server, and I cannot monitor the server with the http status scoreboard, as all connection threads are used up! ...
4
votes
1answer
270 views

Apache HTTPd : How is possible to display “Too many connections”

I want to limit the number of client allowed on my apache httpd server (mpm_prefork). When the number of client is reached, I want to display a custom error message such as "Error 503 : Too many ...
4
votes
1answer
193 views

AD GIT SELinux RHEL 6 : Can not get SELinux to allow connetion to git

I have a problem with SELinux! I have installed git on Red Hat Enterprise 6 with AD group control and SSL Cert . Everything works fine if I do setenforce 0 ( set SELinux in detection only mode ) or ...
4
votes
1answer
510 views

Apache + PHP-FPM = random “Error parsing script headers” + Seg Faults

I have PHP-FPM setup with Apache 2.4 using proxy_fcgi, all works fine, but every one in 4-6 requests, Apache returns a blank page. This happens on my main site http://danielhe.com/, but not subdomain ...
3
votes
1answer
2k views

Configuring HTTPD behind Varnish on a 512mb VPS

I am hosting a website for a client on a dedicated VPS that has 512mb of RAM. Within the last 2 weeks, it has hosed up twice due to 0% free memory (or free swap). The site is pretty database ...
3
votes
2answers
852 views

Apache / httpd not starting automatically on boot

I have apache2 installed on Amazon Linux AMI release 2012.03. I'm able to start it manually just fine, without any errors using /etc/init.d/httpd start. However, it doesn't start automatically when ...
3
votes
4answers
3k views

Apache httpd won't stop doing reverse DNS requests for clients' IPs

Obviously my Apache httpd instance is doing reverse DNS (RDNS, give me the hostname for this IP address) lookups for each incoming client connection's IP address. This is bad. Especially since ...
3
votes
3answers
4k views

Fastest option for a PHP webserver

I need to serve a PHP app that handles lots of requests. I want to know if there's any real benefit in going with anything other than Apache, and what are the pros and cons of the alternatives. I ...
3
votes
2answers
1k views

Difference between mod_authn_ldap and mod_authz_ldap

What is the difference between mod_authn_ldap and mod_authz_ldap?
3
votes
6answers
12k views

What can cause Apache HTTPD to use 100% CPU indefinitely

An application running a lightly loaded Apache HTTPD 2.0 has occasionally had problems where one (or more?) of the Apache processes took 100% CPU. We currently run HTTPD 2.2, I we may have seen this ...
3
votes
4answers
417 views

Apache httpd Java Application?

I have an Apache httpd server (not Tomcat) installation with various applications running on it. One application that I just "installed" is a Java application. The application was installed into the ...