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
0
votes
2 answers

Apache optimisation

I'm trying to set properly an apache installation on an aws instance EC2 m3 Large (with 7.5 Gio or RAM). Once or twice a week, apache crash with the message: [Thu Aug 14 12:38:33.552250 2014] [mpm_prefork:error] [pid 6279] AH00161: server reached…
0
votes
2 answers

How to restrict access to root to daemon user?

I have Apache 2.4 with PHP 5.5.14 installed on latest Debian. According to Apache security tips&tricks I've set my httpd.conf to this: AllowOverride none Require all denied Options…
Kevin Kopf
  • 117
  • 6
0
votes
1 answer

How do I allow access to a directory in apache that is actually a RewriteRule match?

We have a server with a lot of domains. Each domain will have one or more of the following admin areas that we wish to secure by IP: domain.tld/admin (admin area) domain.tld/blog/wp-admin (wordpress admin area in blog sub-dir) domain.tld/wp-admin…
Leonard Challis
  • 53
  • 4
  • 13
  • 27
0
votes
2 answers

resolving two tomcat instances to two different directories with httpd.conf and mod_proxy_ajp

Please excuse my ignorance on this topic. I've read and read, searched and searched and I'm still struggling with my setup. I'm trying to setup my httpd.conf to allow one domain, with two directories to resolve to two different tomcat…
Fred
  • 143
  • 1
  • 8
0
votes
1 answer

www going to the wrong domain

So I have two sites on one plesk server set out as below: /var/www/vhosts/site1.co.uk and /var/www/vhosts/site2.co.uk The problem is both www.site1.co.uk and www.site2.co.uk are both going to /var/www/vhosts/site1.co.uk. This is illustrated…
Kal
  • 141
  • 7
0
votes
3 answers

Which settings schould be changed to lower apache CPU usage and use more RAM?

On our CentOS 6 server, we have now a lot of CPU overload, while our RAM is almost not used. KeepAlive is set to "on" because we have some AJAX elements on your website and serving many files such as images, etc... Do you have some recommend…
lickmycode
  • 167
  • 3
  • 9
0
votes
1 answer

Need help overriding a strict httpd.conf directory setting

Per requirements of a project I am working on, the apache httpd.conf must have the following restrictive setting as a security measure. Order Deny,Allow Deny from all Options None AllowOverride None I've…
tremor
  • 143
  • 1
  • 10
0
votes
2 answers

How to limit access to website based on specific header?

I am developing on my local PC but it's setup so that it is listening on external IP, so anyone can hit my apache is they know the port number. I want to implement a quick solution to prevent other developers from accessing my development PC. This…
Dmitri
  • 127
  • 1
  • 3
0
votes
3 answers

How to Redirect FROM https TO http

I have a site that does not need https. We do not collect any information at all, nor do we have any forms. This being so we did not set up an SSL certificate. However, when I go to https://example.com it goes to another site on my server that DOES…
r00tAcc3ss
  • 119
  • 2
0
votes
1 answer

ProxyHTMLURLMap replaces url given two times

to explain the title, i have put this (this is the only htmlUrlMap) in my conf: ProxyHTMLURLMap / /rp/ticket/ and this in my html: what was expected:
Bor691
  • 233
  • 4
  • 14
0
votes
1 answer

issues setting up subdomain with httpd

Hey I'm having an issue getting my subdomains to show up, I am using HTTPD and have set up my conf in conf.d witht he following ServerName wp.{domain}.com SetEnvIfNoCase HOST ^wp\.{domain}\.com\.?(:80)?$ PROTECTED_HOST …
ehime
  • 597
  • 2
  • 7
  • 15
0
votes
1 answer

not able to access xml file from webserver

when i am trying to aceess my html file of xml file after putting it in var/www/html i am not be able to access it from a browser. for example , i have stored crossdomain.xml file in var/www/html folder after that i hit following…
Hunt
  • 151
  • 2
  • 11
0
votes
2 answers

Exclude the root from a ProxPass directive, but keep everything below the root included

I am running Apache in front of a Tomcat instance. Apache proxies every request that comes through and passes it on to Tomcat. The current configuration is such that Apache puts a ProxyPass on the root (/). There are however, new requirements, which…
user802232
  • 103
  • 2
0
votes
1 answer

Multiple VirtualHost Configuration files in Apache2.

I have servers with RHEL-5, Apache-2.2.22, PHP-5.3.25 I know I can configure multiple virtualhost configurations in mutliple file by including these files in httpd.conf. Can Apache support this arrangement while any incorrect configuration in one…
0
votes
1 answer

configuration files and ssh keys are being reset

I own a Centos 6.4 OS. I have standard lamp stack installed. Apache 2.2, PHP54 and mysql 5.5. I have also uploaded a public key into my authorized file in .ssh. I have my document root set in my httpd.conf. Everything works as it should. Until a…
Seph
  • 101
  • 2