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

Loading Module Into Apache - mod_wsgi

Loading Module Into Apache Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module. Exactly how this is done and in which of the main Apache…
0
votes
1 answer

ErrorDocument 404 not found in non-existent subdomain

I am trying to get the apache server to issue a custom 404 error for invalid subdomains. The following is the relevant part of the httpd configuration: Alias /err/ "/var/www/error/" ErrorDocument 404 /err/HTTP_NOT_FOUND.html.var
Question Overflow
  • 2,103
  • 7
  • 30
  • 45
0
votes
1 answer

ssl_error_bad_cert_domain when accessing site by its ip address on https

i finally got my certificate verified from a trusted CA. now, i have edited my etc/httpd/conf.d/ssl.conf to locate my new certificate. i already included the ssl.conf in my etc/httpd/conf/httpd.conf. i have setup my virtual host. ServerName…
xian
  • 1
  • 1
  • 3
0
votes
1 answer

How to test virtual host setting on local or intranet environment?

I have the following httpd configuration to allow subdomains and to redirect www url to non-www url: ServerName example.com:80 NameVirtualHost *:80 ServerName example.com ServerAlias…
Question Overflow
  • 2,103
  • 7
  • 30
  • 45
0
votes
3 answers

Dynamically determine htpasswd file

Is there any way to dynamically determine which htpasswd file to use at runtime? For example, the following (which does not work, just an example) inside a VirtualHost context: RewriteEngine on RewriteMap htpasswdfiles…
roirodriguez
  • 163
  • 1
  • 7
0
votes
2 answers

How to stick my changes in httpd.conf on WHM/Cpanel/EasyApache

I'm setting up a server and trying to configure the Apache. It only needs to work as a frontend to Tomcat. To do that I added some instructions to the VirtualHost directive, using mod_proxy: ServerName myserver.domain.com …
Seiti
  • 145
  • 1
  • 3
  • 10
0
votes
1 answer

Deny URLs with a parent .. in the path in apache

I was wondering if there was a simple way to make apache httpd deny (403) any URLs which contain a parent .. in the path. So far I have tried (ignoring the flase positives for simplicity) Order allow,deny Deny from…
Sodved
  • 163
  • 5
0
votes
1 answer

How do I enable Clean URLs on Zend Server CE?

I installed Zend Server CE followed by Drupal. I would like to enable clean urls for the local site but I am not able. How do I do that? Also, any changes being made to the httpd.conf file are not taking effect after I restart the server.
bcosynot
  • 141
  • 1
  • 1
  • 5
0
votes
1 answer

Apache Detects files as directories

I have a file 'result.txt' in my documentroot, now when I access: http://localhost/result/first It's accessing this instead: http://localhost/result.txt/first What could have I incorrectly misconfigured in my apache config? EDIT: My rewrite rules…
Jürgen Paul
  • 1,265
  • 4
  • 15
  • 22
0
votes
2 answers

Blocking referring domains via httpd.conf

I'm using the following code to block referrer spam on a site which is receiving a huge volume of spam traffic. I'm told that it is more efficient in terms of server load to use httpd.conf, but I'm largely unfamiliar with this type of operation and…
toomanyairmiles
  • 121
  • 1
  • 13
0
votes
2 answers

Apache 2.2.15: Allow from CN require auth from Internet

How do I configure httpd.conf for directory /something to grant access to everybody from 10.0.0.0/8 withOUT password AND to require everybody else coming from whereever to basic authenticate The goal is simple: Folks from inside my corporate…
fsg
  • 1
0
votes
1 answer

Apache + CentOS 6 + Joomla: You don't have permission to access / on this server

My site was in /usr/local/apache/htdocs. Now i created new account in cpanel and move site to /home/account_name/public_html Group and owner for all files are "account_name" .htaccess and path configuration for a site are OK I get error: "You don't…
johnode
  • 129
  • 2
  • 5
0
votes
3 answers

Apache without any error page

How to set up apache to serve no error page content? I don't want the default behavior, blank or custom page. I want return no content except headers, that all browsers must display own native error page. I'm using Apache 2.2.22
kbec
  • 953
  • 1
  • 9
  • 10
0
votes
2 answers

Configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses

I'd like to know how to configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses. I assume there is a directive to add to httpd.conf, but not sure what it is. Most of the tutorials I see for…
0
votes
3 answers

How to make subdirectory the document root of a web domain or localhost

I have a subdirectory abc in the document root /var/www/html I want to be able to run any file any_file.html within the subdirectory by typing in the browser: localhost/any_file instead of localhost/abc/any_file.html or my_domain.com/any_file…
Question Overflow
  • 2,103
  • 7
  • 30
  • 45