Questions tagged [httpd]

httpd is a typical process name of a web server.

Filter by
Sorted by
Tagged with
261
votes
4answers
144k views

How do I select which Apache MPM to use?

This is a Canonical Question about selecting the right Apache httpd MPM. I'm a little confused between the different MPMs offered by Apache - 'worker', 'event', 'prefork', etc. What are the major ...
56
votes
3answers
59k views

How to fix 'logjam' vulnerability in Apache (httpd)

Recently, a new vulnerability in Diffie-Hellman, informally referred to as 'logjam' has been published, for which this page has been put together suggesting how to counter the vulnerability: We ...
48
votes
6answers
160k 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> ...
46
votes
15answers
38k views

NGinx Best Practices

What best practices do you use while using NGinx?
34
votes
2answers
39k views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> <...
29
votes
8answers
3k views

Deploying new code live

What's the best practise to deploy new code on a live (e-commerce) site? For now I have stopped apache for +/- 10 seconds when renaming directory public_html_new to public_html and old to ...
20
votes
2answers
30k views

How to test keep-alive is working on client end

What are some different ways/tools to verify that keep-alive is working on the server from the client's end?
18
votes
9answers
89k 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 ...
18
votes
4answers
5k 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 ...
16
votes
4answers
24k 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 ...
13
votes
1answer
33k views

Confused about DFOREGROUND with Apache

So I just installed Apache on a new CentOS 7 server, using Yum. I've installed Apache many times before, but never have I seen this: When I run ps aux now, it always shows /usr/sbin/httpd -...
12
votes
2answers
12k views

SElinux error :ValueError: Port tcp/5000 already defined

I have been trying to add an exception to SELinux for apache on port 5000.So I used the command: # semanage port -a -t http_port_t -p tcp 5000 But returns the error, ValueError: Port tcp/5000 ...
12
votes
1answer
35k views

why isn't laravel's php artisan serve server being accessible from the WWW on IIS

I have a laravel application running through the laravel artisan server: php artisan serve and it works just fine if I go on my localhost:8000.. Further, I added an inbound rule in the IIS server ...
12
votes
8answers
55k views

Error Start Apache “php value”

After updating my vps, I get the follow error: Failed to start apache : Starting httpd: Syntax error on line 31 of /etc/httpd/conf.d/php.conf: Invalid command 'php_value', perhaps misspelled or ...
12
votes
1answer
52 views

PHP Hostname not correct

We have an application that has been running for about 2 years now without any issue. This morning when I came in the site was getting an error: Session: connection failed I checked the database ...
12
votes
1answer
22k views

How to get a core dump from apache when segfaulting

I've followed instructions from many locations online on how to get a core dump from apache when it is producing a segfault, but it still refuses to generate the dump. I have: Added the ...
11
votes
2answers
35k 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 ...
11
votes
4answers
27k views

Is it possible to create Custom Error Log in Apache 2.2?

I'd like to prepend the vhost name in my ErrorLog and then pipe it into a program I wrote. Is it possible to write Custom Error log format as it is with Access log?
11
votes
5answers
7k views

Apache 2.4 is unkillable and can't be stopped on Windows Server

We have two Windows Server, one in 2012 R2 and the other in 2008 R2 which uses Apache HTTP Server (httpd) 2.4 in proxy/reverse-proxy mode (usage of ProxyPass, ProxyPassReverse and Virtual Hosts ...
10
votes
2answers
36k views

How to a2ensite and a2dissite?

I'm logged into a Linux server. I think it's a Red Hat distribution. The commands a2ensite and a2dissite are not available. In the /etc/httpd directory, I don't see any mention of sites-enabled or ...
10
votes
3answers
38k views

Invalid command 'SSLEngine' Centos

I uninstalled Apache, and reinstalled it, and now when I try to start it I get the following error: Syntax error on line 94 of /usr/local/psa/admin/conf/generated/13636697550.95452800_server.include: ...
10
votes
3answers
23k views

Disable modsecurity For a Specific Directory

How do you disable modsecurity for just a specific directory. I'm getting errors in phpMyAdmin that are caused by modsecurity tripping based on rules. I have the following files set up: # /etc/httpd/...
10
votes
2answers
10k 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 https://...
9
votes
2answers
10k views

Permanently Disable Init Service

I just provisioned a new VPS running CentOS 6, and it comes with Apache. I want to disable Apache, because I will be using Nginx instead. I know I can just delete the script in /etc/init.d/, but I ...
9
votes
2answers
22k 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 ...
9
votes
2answers
19k 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 ...
9
votes
2answers
44k views

Why does apache httpd tell me that my name-based virtualhosts only works with SNI enabled browers (RFC 4366)

Why does apache give me this error message in my logs? Is it a false positive? [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) I ...
9
votes
1answer
5k 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 ...
9
votes
1answer
904 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 ...
9
votes
2answers
5k 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 ...
8
votes
6answers
43k views

CentOS Apache HTTPD Configuration (403 Forbidden)

This is what i have in my httpd.conf <VirtualHost *:80> ServerAdmin spero78@spero78.com ServerName mcmoddr.com ServerAlias www.mcmoddr.com DocumentRoot /home/...
8
votes
5answers
8k 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 ...
8
votes
7answers
34k views

httpd dead but subsys locked

I modified today max_execution_time in php.ini, when I restarted the server, I get this error : Stopping httpd: [FAILED] Starting httpd: (98)Address already ...
8
votes
3answers
9k 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 MinSpareServers ...
8
votes
3answers
7k 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 ...
8
votes
4answers
7k 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: "...
7
votes
6answers
7k 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 ...
7
votes
6answers
39k views

Why is https not working?

I am trying to redirect just the root of my site to https. Although the rewrite happens, https does not yield anything. The browser says. connecting to thinkingmonkey.me... and stagnates. ...
7
votes
4answers
8k 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 ...
7
votes
2answers
25k views

Can't make httpd use correct SSL

I have a signed CA, issued by my university. I generated my CSR using their public key file as so: openssl genrsa -out myservername.key 2048 (new key) openssl req -new -key myservername.key -out ...
7
votes
1answer
5k views

Directory inside or outside VirtualHosts?

Is there a difference between putting Directory tags inside or outside VirtualHosts? I found a configuration file that has several VirtualHosts all with the same Directory tag inside, and the same ...
7
votes
3answers
306 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 ...
7
votes
2answers
86k views

Error “not found or unable to stat” in apache logs, and difference in httpd.conf and site Document Roots

I get many of these errors each day in my apache error log: [error] [client 127.0.0.1] script '/var/www/html/wp-cron.php' not found or unable to stat and I'm wondering if it has something to with my ...
7
votes
2answers
13k 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 ...
7
votes
1answer
15k views

How to run HTTPD as specific user(s) and not by nobody?

Currently, top shows me that almost all httpd processes are run by nobody. "Almost" because 2 of them are run by root. How can i make it in such a way that given i have users say: dartagnan, porthos, ...
7
votes
2answers
19k views

SSL peer was unable to negotiate an acceptable set of security parameters

I followed section 1B of this guide to create a certificate and sign it on my own and set up Apache to use that certificate, but whenever I try to view my website securely, Firefox spits out this ...
7
votes
2answers
5k views

httpd service will not start on boot under CentOS 6

I am having trouble configuring a CentOS 6 Vagrant setup to start the Apache service on boot. I have tried using chkconfig and the OS seems to just ignore it. When I run sudo chkconfig --list httpd, ...
6
votes
4answers
37k views

Add a directory to the Apache Web Root?

I'm running httpd on linux. I have a folder (/data/) that is not in the apache web directory (/var/www/html/) that I would like users to be able to access from their browser. I don't want to move ...
6
votes
1answer
8k views

HTTPD listening in IPv6, according netstat, but reacheable in IPv4

Using Openstack, I have a Web GUI (horizon) hosted on my server (HTTPS). When I do a netstat -lt | grep https, I have: tcp6 0 0 [::]:https [::]:* LISTEN ...
6
votes
3answers
12k views

Catch-All HTTPS Vhost on Apache 2.4

Is it possible to configure a catch-all (default) HTTPS Vhost on Apache 2.4? I currently have 4 domains, and an HTTP catch all but as soon as I try to add any sort of configuration my other vhosts ...