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

MaxClients exceeds ServerLimit value...see the ServerLimit directive

I want to set my serverLimit to 1024, and I am using prefork.c So, went to prefork.c, made the change, did make, make install. Then I did an apachectl stop && apachectl start Not I change the directive again in httpd.conf but I'm still getting the…
rixx
  • 41
  • 1
  • 1
  • 2
4
votes
3 answers

apache multiviews, how to disable it

I have a OS X Snow Leropard Server running and I want to disable multivewis from Apache. I could add Options -MultiViews to each .htacces file I have, but I guess there must be a global option. Disabling mod_negotiation.so renders all pages useless…
Sorin Buturugeanu
4
votes
4 answers

Yet another (13)Permission denied error on Apache2 server

I just can't figure it out. I'm running apache2 on a Ubuntu 10.04 i386 server. Whenever I visit my server (has an IP address, and is connected to internet with static IP xxx.xxx.xxx.xxx) so that's not the problem) in browser, mysub.domain.edu…
lollercoaster
  • 3,545
  • 5
  • 18
  • 10
4
votes
2 answers

Accessing localhost (xampp) from another computer over LAN network - how to?

I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2). On my desktop I can access localhost through the normal…
bcosynot
  • 141
  • 1
  • 1
  • 5
4
votes
4 answers

How can I see the httpd log for outbound connections?

The access log specified in httpd.conf for a website only shows the information for incoming connections. For outbound connections such as those issued by php file_get_contents function, how can I get the log?
peter
  • 93
  • 13
4
votes
1 answer

How can I apply HSTS header to all vhosts over 443 in Apache

I'm looking to add the HSTS header in Apache... # HSTS / Header Strict Transport Security Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" ... but I have a long list of vhosts for different but related…
oucil
  • 557
  • 6
  • 21
3
votes
2 answers

Is it correct to define two listen (80 and 443) under same nginx server?

Is it correct to define both listen (80 and 443) under same server {} like this ? The other method would be to define two separate server{} for each port which I know would be OK. server { listen 80 default_server; server_name …
adrianTNT
  • 1,077
  • 6
  • 22
  • 43
3
votes
1 answer

How do I use a custom variable in an If-Else statement inside an Apache config?

Here's my code (I've commented out the if-else part as it's not working) snippets/contents of my config files /etc/httpd/conf.d/staff.vhost Define host_domain "staff" Include…
mrjayviper
  • 187
  • 1
  • 11
3
votes
1 answer

How to exclude RewriteMap if REQUEST_URI is not found

I have an old site wordpress site I am in the process of migrating. There are about 50000 urls that need to be redirected. For this I am using DBM files which seem to be working fine, however during load testing I noticed that I am losing about .5…
Donna Delour
  • 424
  • 5
  • 10
3
votes
1 answer

Apache 2.2 / CentOS: Denying Bad Bots

I'm having all kinds of problems trying to restrict bad bots on my Apache 2.2 server, and am hoping somebody can assist. I have banged my head on the wall for days trying to get this working, and used several different methods, but none seem to…
Cheddar
  • 131
  • 2
3
votes
0 answers

Apache httpd sets X-Forwarded-Host instead of Host header

I have an Apache httpd proxy (proxy.example.com) that proxies requests to an application server (app.example.com). Now I'm trying to overwrite the Host header in requests to app.example.com with a directive like this: RequestHeader set Host…
dokaspar
  • 165
  • 1
  • 2
  • 8
3
votes
1 answer

Unable to connect to apache from the web

I have an apache instance running with vhost configured, here is the httpd.conf: #Listen {the_server_ip}:80 Listen 80 # ServerAdmin webmaster@example.com DocumentRoot /var/www/example.com ServerName example.com …
3
votes
2 answers

Apache security - list all possible handlers / actions

To ensure there aren't security weaknesses that can be exploited via .htaccess, how can we see all possible handlers that Apache can use via directives like SetHanlder and AddHandler. I know I can find some by looking at the output of mod_info or…
sa289
  • 1,318
  • 2
  • 18
  • 44
3
votes
4 answers

Multiple Developers, One Apache (with mod_perl)

I have multiple developers on one server, each with their own copy of the same perl codebase checked out of SVN. I want each developer to have their own subdomain pointing to their own copy of the codebase. I tried putting PerlSwitches inside , but…
aidan
  • 615
  • 4
  • 10
  • 23
3
votes
3 answers

How can I make Apache look in 2 separate directories with one common url ? follow-up question

This is a follow-up question to my previous question on this site. Maybe I should point out that the Apache server is running on a windows system, don't know if it matters. My problem is following: I have 2 drives J: and K:, both have a directory…
Alex F
  • 41
  • 2