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

Apache refuses to acknowledge my Sites folder

I'm running Apache on a Mac, and all of the sudden http://localhost results in Apache's HTDOCS folder, while for some time now it correctly referred to my Sites folder. Running apachectl -D DUMP_HOSTS yields: (13)Permission denied: make_sock: could…
konzepz
  • 209
  • 1
  • 2
  • 7
0
votes
3 answers

allow domain in httpd.conf file block rule

I have a "rule" in httpd.conf to pop-up a windows if somebody tries to access wp-admin section of any domain where wordpress is installed. With this rule I prevent boots for accessing wp-admin folder and to stop brute forces attacks. # BEGIN…
AndreiG.
  • 151
  • 1
  • 1
  • 5
0
votes
1 answer

Changing the Default Foreman URI

I have just installed the latest instance of foreman on a RHEL 7.1 VM. Now that it is installed the httpd configuration has changed so that the foreman URI is http(s)://(server)/. This has broken everything else running on the server such as…
Barry
  • 23
  • 6
0
votes
0 answers

How to implement gzip compression in such a way that the files compressed path is stored as relative path rather than absolute path?

I am trying to implement gzip compression in my Application server machine but when it is served through the proxy(different machine) to the front end the css files are getting broken due to the mixed content error. CAUSE: mixed-content (Serving…
Geo j
  • 11
  • 2
  • 6
0
votes
1 answer

Virtual Host for SimpleSAMLPHP

I want to install SimpleSAMLPHP on my apache2, I don't have a lot of experience on server config and need to ask if this is correct for virtual host setup: ServerName service.mywebsite.ca DocumentRoot…
0
votes
1 answer

Load Balance Virtual Host and Amazon/DO Server using HAProxy

I am stuck with an issue and im hoping someone can point me in the right direction. I have a server that hosts multiple sites using Apache Virtual hosts (shared IP's). A few months ago my server provider had downtime at the Data Center making my…
0
votes
1 answer

Apache - unset a directive

Is there a way to "unset" an arbitrary Apache directive such as by repeating it verbatim but with Unset or something in front of it? For example let's say at the server config level I have: ScriptAliasMatch "^/cgi-bin(.*)"…
sa289
  • 1,318
  • 2
  • 18
  • 44
0
votes
1 answer

How to avoid leaking the existence of local API in Apache httpd?

I'm building an API which will only be accessible to local services by using Require local in the directive. How can I make this return a 404 rather than 403 status code when accessed from a remote address? That way I can hide the fact…
l0b0
  • 1,140
  • 1
  • 8
  • 17
0
votes
1 answer

How to alias name for IP Address

I have a website which is hosted in local Server (CentOS 5.x) (Hostname: xxx.yyy.local, IP : 192.168.5.25). I can browse the site typing server ip in the browser from my Local Network. How can I get an alias for “http://192.168.5.25/support” Eg:…
SM_IND
  • 11
  • 1
  • 2
0
votes
1 answer

Apache losing VirtualHost configurations "randomly"

I am hoping someone might be able to shed some light on this issue that I have had no luck solving elsewhere. We are running an Apache (2.2.15) server used for basic load balancing, but ultimately using ProxyPass directives to our various backend…
Chase
  • 472
  • 4
  • 14
0
votes
1 answer

How to correctly setup an Apache VirtualHost as HTTP and HTTPS?

I am trying to setup a locally (for development/testing purposes) SSL site using Apache and mod_ssl and this is what I have in my VirtualHost files: /etc/httpd/conf.d/local.conf ServerName reptool.dev DocumentRoot…
ReynierPM
  • 710
  • 5
  • 14
  • 30
0
votes
2 answers

Plain Wildcard for Apache's ServerAlias

Are there any possible problems with using ServerAlias * in an Apache configuration? One thing I considered: ServerAlias is based on HTTP_HOST in HTTP headers delivered by the client, which can obviously be modified manually by the client. Is there…
ChaimKut
  • 191
  • 4
  • 9
0
votes
1 answer

What's the easiest way to integrate Authy (two-factor) authentication with Apache httpd?

EDIT: Something similar to Authy would work too, if that service was i) hosted/SaaS and ii) able to send SMS messages. Most examples advocate RADIUS for two-factor authentication but I'm already using OpenLDAP for centralized authentication and…
Patrick
  • 121
  • 1
  • 6
0
votes
0 answers

Apache swapping virtual host entries each request

I have the following httpd.conf. Based on the different domain, it should route the request to the appropriate entry showing a different site based on a similar code base. The problem is that it swaps between site 1 and site 2 every few…
petey
  • 572
  • 3
  • 9
  • 20
0
votes
2 answers

Unable to connect via apache port

I created a new VirtualHost file with the folllowing parameters: ServerAdmin xxx@xxx.systems DocumentRoot /var/www/xxx/httpdocs Options Indexes FollowSymLinks …
sitilge
  • 105
  • 1
  • 6