Questions tagged [httpd.conf]

httpd.conf is a typical name for a web server configuration file. Historically this is the main Apache configuration file. It is also the configuration file for OpenBSD httpd.

httpd.conf is a typical name for a web server configuration file.

Historically, this is the main Apache configuration file, but has been adopted by other servers, including OpenBSD httpd.

In recent Apache installations, the main file can also be called apache2.conf.

616 questions
9
votes
2 answers

How can I redirect any ServerAlias to the respective ServerName?

I want to 301 redirect all example.org to www.example.org. The following example is doing just that, but it's got a lot of noise to it and is thus hard to maintain and error prone: ServerName example.org …
user569825
  • 351
  • 3
  • 6
  • 12
9
votes
3 answers

Limit upload file size and redirect user to error page if limit exceeds

Is it possible to redirect user to file file too big page when POST request size exceeds specified limit? I am aware about max-request-size option, but it gives just static page that cannot be overloaded. I am thinking to create a rewrite rule which…
jonny
  • 357
  • 1
  • 3
  • 15
9
votes
1 answer

Where do I place the WSGIPythonHome directive in the httpd.conf file?

I have searched the entire file for a place to put the directive, but I have no idea where to put it, and the internet doesn't seem to have a good answer either, or maybe I'm just not good at searching for it hehe. Anybody know where this directive…
jasonaburton
  • 263
  • 1
  • 4
  • 9
8
votes
2 answers

Apache Conditional Redirect HTTP to HTTPS

all. I have a syntax problem. I've tried following other sources, but It's just not working. I've successfully created an unconditional HTTP to HTTPS redirect. Go to http://www.robjvargas.com, wind up at HTTPS. All well and good there. But now…
Rob Vargas
  • 83
  • 1
  • 3
8
votes
3 answers

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 break. Here is what my config looks…
Nicolas Bouvrette
  • 211
  • 1
  • 2
  • 9
8
votes
1 answer

Apache (Linux) httpd listen on link-local IPv6 address

I would like Apache to listen on the link-local ipv6 address on a particular interface. I have the following line in my httpd.conf: Listen [fe80::a00:16ff:fe89:420f]:80 Which is based on the Apache documentation here:…
bao7uo
  • 1,704
  • 12
  • 24
8
votes
1 answer

is "ServerAdmin email@domain.tld" required in the VirtualHost in Apache?

I rather not have ServerAdmin in my VirtualHost because all it does is attract spam. has no use what so ever. can it be ignored ?
user235927
  • 83
  • 1
  • 3
8
votes
2 answers

httpd.conf variables : What is the difference between ${var} and %{var}?

What is the difference between ${var} and %{var} in httpd.conf? How and when would one use ${} and %{}? http://httpd.apache.org/docs/2.4/configuring.html mentions : The values of variables defined with the Define of or shell environment variables…
X10
  • 205
  • 2
  • 4
8
votes
1 answer

If directive not working in apache VirtualHost conf, says "Invalid command"

Why?? ServerAdmin admin@mydomain.com DirectoryIndex index.php Redirect / https://www.mydomain.com:443/ ..... Save, and then…
NotGaeL
  • 277
  • 1
  • 3
  • 14
8
votes
2 answers

Warning in Apache log: Cannot get media type from 'x-mapp-php5'

I have no idea what is causing this issue, but it seems to be related to the displayed file (just a simple index.php to print phpinfo) being in an aliased directory. Any suggestions what I can do to avoid the warning? Here's an excerpt from my…
IronGoofy
  • 201
  • 1
  • 2
  • 7
8
votes
1 answer

Is there a way to increase the maximum allow url length for incoming requests on Apache HTTPd?

I'm running a web services site on Apache HTTPd and every once in while I get an error indicating the incoming URL is too long (HTTPError: HTTP Error 414: Request-URI Too Large). My site is servicing programs rather than browser so I'm not worried…
Boaz
  • 2,229
  • 5
  • 20
  • 15
8
votes
3 answers

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: StartServers 64 MinSpareServers 64 MaxSpareServers 128 ServerLimit …
mmattax
  • 1,304
  • 7
  • 19
  • 30
7
votes
1 answer

Why is allow not allowed here in apache2

I've the following in my httpd.conf file: Options Indexes FollowSymLinks AllowOverride AuthConfig FileInfo Options=Indexes,Limit Order allow,deny Allow from all Next, I've a directory ChatLogs located…
hjpotter92
  • 670
  • 1
  • 10
  • 20
7
votes
2 answers

Running a file without extension as CGI-script outside /cgi-bin

It seems like I'm the first person wanting to do this... It was really easy to solve with lighttpd, but with apache this seems impossible. Basically I want to run a cgi-file without extension outsite cgi-bin. Now unfortunately apache ignores it if I…
Daniel Ziltener
  • 248
  • 2
  • 10
7
votes
6 answers

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 this? Perhaps is there another easy-to-maintain web…
Geo
  • 3,071
  • 11
  • 42
  • 52
1
2
3
41 42