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

Proxy protocol error in apache logs of my virtaul host

I have a two virtual hosts on three linux servers behind an ELB. I have enabled proxy protocol for my ELB so that the requests for ssl are terminated on instance rather than on ELB. I am seeing following errors very continuously in my one of the…
MichealMills
  • 111
  • 1
  • 3
0
votes
1 answer

Apache fills up error log with TransferLog

I'm using Apache 2.4 and several virtual hosts. This is on Windows, BTW. Within each virtual host, I have the following log file configurations: CustomLog "|bin/rotatelogs.exe -l ${SRVROOT}/logs/dev.ssl_request.%Y.%m.%d.log 86400" \ "%t %h…
cbmeeks
  • 243
  • 1
  • 4
  • 11
0
votes
1 answer

httpd overwrite conf file directive with conf.d directive

I am quite new to Apache configuration (working with AWS). In /etc/httpd/conf/httpd.conf there is this directive: IncludeOptional conf.d/*.conf # Enable server-status for internal IP SetHandler server-status Require…
Justinas
  • 103
  • 1
  • 4
0
votes
3 answers

nginx config multiple root doesn't work

According to the config, site.com should open html/web/index.php by default, however site.com/ticket should open html/ticket/index.php. Both ticket and web folders located in html. server { listen 80; return 301…
0
votes
2 answers

CPU spikes on small site- possibly apache or php config related

I hope you can help me. I have a site that I'm moving to a new datacenter. The server is pretty much vanilla, no control panel, and also no optimizations. When I hit a page, the site takes an extremely long time to load, despite it being…
Mike
0
votes
0 answers

Configuring a default blank Apache VirtualHost on port 443 isn't working

I want to create a default blank page VirtualHost for my server so that anyone who attempts to browse directly to the IP address (e.g. https://10.123.123.123/) is shown a blank page. I've done this for HTTP connections easily enough using a…
WackGet
  • 217
  • 4
  • 12
0
votes
1 answer

Why isn't Apache listening on additional ports?

I am running the default (what I think is Apple's version, not Homebrew / Fink / MacPorts) Apache under OSX Sierra. In configuring the computer for potential use as a server where it may or may not have any domain name assigned, I am trying to set…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
0
votes
1 answer

Is there any point in having proxy config instead a match-all Location?

I have inherited a system and there are a few things that no one knows why there are how there are anymore. In the httpd configuration, I've come across a few occurrences of Location directives that match all paths: ProxyPass…
garci560
  • 101
  • 1
  • 3
0
votes
1 answer

How to forbit apache httpd from adding headers to responses

I've a jetty server behind an apache httpd server. I properly handle headers to be returned to requests I receive at jetty level. But sometimes apache httpd add some headers (typically the Content-Type) that I don't want them to be added in my…
bachr
  • 163
  • 1
  • 5
  • 11
0
votes
1 answer

Apache not starting; httpd not working

I have apache installed on RHEL 7.2 and here is what I see upon starting apache as a root user: [root@exampledomain conf]# sudo apachectl start Job for httpd.service failed because the control process exited with error code. See "systemctl status…
Tan
  • 139
  • 1
  • 3
  • 8
0
votes
0 answers

How to prevent ERR_CONNECTION_REFUSED errors following restart of Apache

I am running Apache 2.2.15. I have installed a Comodo SSL Cert. I have the virtual host directives shown in the code snippet at the bottom of this post. When I restart Apache via apachectl restart I get no syntax errors associated with my…
H. Ferrence
  • 533
  • 3
  • 10
  • 18
0
votes
1 answer

How can I block all HEAD requests to urls that contain a substring on Apache?

A server I administer is being pounded with a poorly coded AWS-built bot that switches IPs constantly and appears to be stuck in a recursive encoding loop. The only consistent fingerprint I can see is that each request is only a HEAD request and…
Ryan
  • 420
  • 2
  • 8
  • 16
0
votes
1 answer

mime fonts problems updating Apache from 2.2 to 2.4.25

After updating my Apache Windows server, my website is not showing correctly fonts (eot, svg, ttf, woff). I have updated from 2.2 to 2.4.25 adding a SSL certificate also. Everything is running well except the fonts In the past I was using this…
Raul Taboraz
  • 11
  • 1
  • 5
0
votes
1 answer

Apache 2.4 IP-based virtual host not working

I have apache 2.4 installed in Centos 7 the normal virtual host working fine with all server IPs but when I assign a specific ip address for my virtual host and I change the ip in hosts file the…
Mostafa
  • 131
  • 1
  • 8
0
votes
1 answer

Apache virtual hosts priority

before I created a specific virtual host for my main website the logging in to the main IP address opened the apache default welcome page but after creating this virtual host, the domain.com is working fine but the IP address opens the same contents…
Mostafa
  • 131
  • 1
  • 8