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
6
votes
1 answer

Can't restart httpd.service on CentOS 7 (Apache server)

I used the command "service httpd restart" on my centOS apache server, and the following error occurred: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service and "journalctl -xe" for…
Denise
  • 263
  • 3
  • 5
  • 10
6
votes
3 answers

How add SSL/443 to Apache server without virtual host?

I have an apache server set up on CentOS. I am trying to add SSL. I was able to create the certificate and keys and then updated /etc/httpd/conf.d/ssl.conf to have the following configurations: /etc/httpd/conf.d/ssl.conf #Where I put my…
Don Rhummy
  • 403
  • 4
  • 8
  • 16
6
votes
3 answers

PHP memory_limit local value does not match php.ini value

CentOS system. Summary: changed memory_limit in master and local php.ini and yet no change in the local value for a particular virtual host. Trying to improve performance, I set the memory_limit to 1024M in /etc/php.ini phpinfo() shows Master and…
Buttle Butkus
  • 1,741
  • 8
  • 33
  • 45
6
votes
3 answers

Restarting the httpd service in RHEL returns "Stopping httpd: [FAILED]" - How do I fix this?

This is my first indication of an issue: $ sudo /sbin/service httpd restart Stopping httpd: [FAILED] Starting httpd: no listening sockets available, shutting down Unable to open logs …
ghbarratt
  • 163
  • 1
  • 1
  • 6
6
votes
3 answers

htaccess vrs httpd.conf?

Is it still true that you shouldn't use htaccess files if you can use httpd.conf? The Apache site says "In general, you should never use .htaccess files unless you don't have access to the main server configuration file." But I don't know how old…
nedlud
  • 273
  • 2
  • 10
6
votes
1 answer

Security question about httpd.conf AllowOverride setting

I am working on a website where I will need to use rewriting commands in .htaccess. It is not working and finally have traced the problem where I will need to set "AllowOverride All" in my Apache httpd.conf I am wondering if there are any security…
forestclown
  • 945
  • 4
  • 15
  • 25
6
votes
2 answers

What are the steps to setup git-http-backend w/ Apache on Windows?

I would like setup a Git server using the "Smart-HTTP" approach. However, I'm having difficulties getting it to work in Windows, and I'm new to Apache. My httpd.conf, in part: SetEnv GIT_PROJECT_ROOT "d:/repositories" SetEnv…
Jordan
  • 163
  • 1
  • 1
  • 3
5
votes
5 answers

Apache doesn't log remoteIP when RemoteIPHeader X-Forwarded-For is present

I'm using Apache/2.4.27 Within the VirtualHost I'm forwarding the remote client IP header from the Loadbalancer with: RemoteIPHeader X-Forwarded-For Which is needed by the application served by that Virtualhost. This is the log format within the…
DaWe4444
  • 131
  • 1
  • 2
  • 6
5
votes
1 answer

OpenBSD: How to use `relayd` and `httpd` for redirecting subdomain requests

Situation I created the following setup on OpenBSD: So I have my OpenBSD server on 192.168.1.250 redirecting all http-requests to the host-vm on 192.168.30.2. The host-vm itself operates nginx for redirecting subdomain-requests like so: ## the…
Jan
  • 107
  • 1
  • 8
5
votes
1 answer

How to impose two conditions at once for Apache CustomLog?

I currently have separate access logs for static and dynamic pages. My httpd.conf has (inside ): SetEnv static 1 CustomLog /var/log/apache2/gopal.log myCustom…
mkaama
  • 191
  • 1
  • 5
5
votes
1 answer

VirtualHost Defaulting to Wrong Deployment on Restart

We have a server running seven domains/subdomains. To try to go as minimal as possible here I'll include four of them. example.com www.example.com dwf.example.com chris.example.com The server works great 90% of the time, but occasionally we get a…
chris85
  • 81
  • 2
  • 11
5
votes
2 answers

Apache rewrite all URLs to lowercase if contains at least one uppercase

I have been trying to get Apache to rewrite all URL's that contain an uppercase character anywhere in it to be lowercase. All the solutions I have found do not work in my case for some reason. I am hoping someone here can help me track down…
BigB8767
  • 51
  • 1
  • 1
  • 2
5
votes
1 answer

Settings in httpd.conf not working

I have the following (maybe very simple) problem: I have a fresh install of apache2 on debian. In my /etc/apache2 directory I have an apache2.conf and a httpd.conf. I thought that any change I need to make should be done in the httpd.conf. Well,…
sleepless
  • 220
  • 1
  • 3
  • 5
5
votes
1 answer

Why is my Apache in an infinite redirection loop?

We currently have an internal site set up for IT at it.example.com, which hosts a single Redmine site. I want to set up Apache so that if a user goes to kb.example.com it redirects them to http://it.example.com/some/path/to/knowledge-base as a…
DOOManiac
  • 791
  • 6
  • 12
  • 26
5
votes
3 answers

Only allow the POST method for a specific file in a directory

I have one file that should only be accessible via the POST method. /var/www/folder/index.php The document root is /var/www/ and index.php is nested inside a folder. Version of Apache is: 2.4.4. My configurations are as follows:
Dave Chen
  • 53
  • 1
  • 1
  • 10
1 2
3
41 42