Questions tagged [httpd]

httpd is a typical process name of a web server.

httpd (for Hyper Text Transport Protocol Daemon) is a typical name of the web server process.

Apache is the most popular web server that runs using this process name. It is also the name given to the new default server for OpenBSD 5.7 and on.

1418 questions
292
votes
4 answers

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 differences between them, and how can I decide…
Tiffany Walker
  • 6,541
  • 13
  • 53
  • 77
56
votes
3 answers

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 have three recommendations for correctly deploying…
55
votes
6 answers

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 UseCanonicalName Off ServerAdmin …
Jader Dias
  • 4,625
  • 18
  • 48
  • 50
51
votes
2 answers

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

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. #... ServerName host.example.com #... #... ServerName host.example.com …
Luigi Giuseppe
  • 611
  • 1
  • 5
  • 4
46
votes
15 answers

NGinx Best Practices

What best practices do you use while using NGinx?
The Pixel Developer
  • 847
  • 3
  • 9
  • 20
30
votes
8 answers

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 public_html_old. This creates a short down-time, before I…
nicoX
  • 611
  • 9
  • 18
22
votes
2 answers

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?
Ron Garrity
  • 373
  • 1
  • 3
  • 5
21
votes
1 answer

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 -DFOREGROUND Google tells me that means the process will run…
Cocorico
  • 313
  • 1
  • 2
  • 5
20
votes
9 answers

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 restarted it but now I need to find a way that I…
Xoundboy
  • 593
  • 1
  • 9
  • 20
19
votes
5 answers

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 know what software is is using which modules. I…
Matt Simmons
  • 20,218
  • 10
  • 67
  • 114
18
votes
2 answers

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 already defined I tried to check if this is so with…
17
votes
4 answers

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 apache, and would like to be able to distinguish…
jrdioko
  • 567
  • 5
  • 9
  • 18
15
votes
2 answers

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 sites-available. I'm pretty sure the site is…
John
  • 7,153
  • 22
  • 61
  • 86
15
votes
8 answers

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 defined by a module not included in the server…
David E.
  • 151
  • 1
  • 1
  • 3
14
votes
1 answer

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 like so: Control Panel -> Administrative Tools ->…
abbood
  • 1,087
  • 3
  • 13
  • 21
1
2 3
94 95