Apache configuration is text based configuration file (or set of files) which are used to configure apache httpd web server
Questions tagged [apache-config]
264 questions
5
votes
3 answers
How can I redirect all sub-directories to root using htaccess or httpd.conf?
I have an index file that builds content based on n PATH_INFO variables.
Example:
site.com/A/B/n/
should use index.php at either:
site.com/index.php?var1=A&var2=B&varN=n
- or -
site.com/index.php/A/B/n/
instead of:
site.com/A/B/n/index.php ||…

Ryan
- 14,682
- 32
- 106
- 179
5
votes
5 answers
Get a 404 Error when clone, pull mercurial repository
I have a repository in here http://repos.joomlaguruteam.com/
I using hgweb.cgi
this is my hgweb.config file
[web]
baseurl =
#allowpull = true
allow_push = *
push_ssl = false
allow_archive = bz2 gz zip
[paths]
/ = /home/repos/*
I can browse it but…

Yuan Chen
- 1,117
- 1
- 11
- 18
5
votes
2 answers
What is the equivalent value for apache configuration
I need to convert following nginx rule to Apache configuration.
can anyone help me.
location /chat {
rewrite /chat(/.+)$ $1 break;
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header …

Prakash
- 2,749
- 4
- 33
- 43
5
votes
1 answer
custom php.ini / php_value : which takes precedence?
We could override the default php.ini settings using the
PHPINIDir /var/www/web1
directive in decription.
But I have seen php_value statements which is applied to all the sites in the httpd.conf files. For example :
php_value…

sjsam
- 21,411
- 5
- 55
- 102
5
votes
2 answers
Codeigniter deny access to directory of controllers with apache config
I’d like to restrict access to a folder of controllers that are used for admin purposes only. I’ve tried a number of ways and not coming up with a solution. These controllers are behind password protection. But, I’d like to just remove it from view…

MAZUMA
- 913
- 3
- 10
- 20
4
votes
1 answer
Apache: how to limit virtual dir to local network
On my Apache 2.x server at home, I have a number of virtual directories. I've set up my router so that I can access Apache from the internet. I need to keep one of those virtual dirs (/private) from being accessed outside my home network LAN. So…

user86282
- 55
- 1
- 3
4
votes
1 answer
Windows XP: Add site directory to Apache config
I have a local instance of Apache on my computer for development purposes, I'm trying to add a site directory, to Apache's httpconf file, that contains some sample web applications I'm trying to debug using Eclipse. The directory I'm trying to add…

kingrichard2005
- 7,179
- 21
- 86
- 118
4
votes
3 answers
Will broken css/image link 404 errors affect server performance under load?
I have a few images and a css file on my site that don't exist on the server, so each time a visitor comes Apache throws 3 404 errors in it's log. The items are hidden on the page, so it does not affect the display of the page. Our site performs…

Sj Sros
- 41
- 1
- 2
4
votes
1 answer
Apache: “AuthType not set!” 500 Error
It's been a while since I used the Apache httpd web server in windows.
when I try to request localhost/index.html, I get a 500 error and I see this in the error log:
[client 127.0.0.1] configuration error: couldn't perform authentication. AuthType…

stefansaye
- 135
- 1
- 3
- 16
4
votes
2 answers
Is there a way to use place holders in Apache PropertiesConfiguration
I have the following configuration setup using Apache Configuration:
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.PropertiesConfiguration;
Configuration config = new…

Ascalonian
- 14,409
- 18
- 71
- 103
4
votes
1 answer
Apache & JBoss use port 80 at the same time
I have both Apache 2 and JBoss 4.2.3 on the same machine and would like both of them to use port 80. There are several ways I see people doing this mod_jk, mod_proxy, but I'm not sure which one is the best.
I don't need any load balancing, but I do…

Stella Peristeraki
- 289
- 1
- 9
- 16
4
votes
3 answers
Setting error log filename in apache to include current date
I'm trying to have apache create a new error log file every day, based on the current date.
The default error log filename is something like this:
ErrorLog "/logs/error.log"
and I want it to be something like:
ErrorLog…

Orr Siloni
- 1,268
- 10
- 21
4
votes
1 answer
Necessary to set ServerSignature and ServerTokens apache config options with Rails apps?
I came across something in one of my rails books that said I should set
ServerSignature Off
ServerTokens Prod
to disable apache from showing server information in production when the app screws up. Is this necessary? The only error message I see…

Tony
- 18,776
- 31
- 129
- 193
4
votes
2 answers
How to support "AddType x-mapp-php5 .php" on my development machine
My ISP requires me to put the following in my .htaccess files:
AddType x-mapp-php5 .php
But that breaks my development machine.
I don't really understand what that directive is for, but I'm sick of commenting it out for dev, and uncommenting it…

Lee Kowalkowski
- 11,591
- 3
- 40
- 46
3
votes
2 answers
Setup Dynamic Virtual Host (Apache2 on Ubuntu)
I want to set up a single virtual host that can dynamically handle all requests based on the hostname used to access it. If %{HTTP_HOST} could be used in a DocumentRoot, this is probably exactly what I want:
ServerAdmin…

Nathan J.B.
- 10,215
- 3
- 33
- 41