Historically this is the main apache configuration file. In recent installations, the main file can also be called apache2.conf

learn more… | top users | synonyms

0
votes
2answers
225 views

Unable to change Apache http server port in unix

I downloaded Apache HTTP server, compiled it and installed it in a unix box. I tried to start my Apache HTTP server in unix but got the below error so I thought of changing the port. (13)Permission ...
0
votes
1answer
729 views

Apache - how do I create an exception for a vhost's VirtualDocumentRoot in httpd.conf?

I'm new to Apache, and I'm wondering if there's a way to configure VirtualDocumentRoot to create an exception for just one of my vhosts on my local server. Currently all of my sites are stored in ...
0
votes
0answers
81 views

Where do I specifiy custom HTTP range-header entities and the necessary logic behind an entitiy?

I have a large JSON file which consists of xyz records. I'm looking for a way to retrieve parts of the file and have been reading the http-specs on how to define HTTP range-headers in Apache. The ...
1
vote
2answers
398 views

Virtual Host showing “Index of /” instead of displaying my site [closed]

So I just ran a clean install of Mountain Lion OSX 10.8 and am trying to get everything back up and running again. I uncommented the php module and vhosts in http.conf, added brew, mcrypt, autoconf ...
0
votes
1answer
61 views

Using same directory declaration for multiple Vhosts

Is there a method for declaring name based virtual hosts, but sharing the same directory declarations? So for example, the Directory section in both of these Vhosts is the same, so is there a method ...
1
vote
2answers
255 views

Can I use regex or wildcard to set Apache's AddType Directive?

I manage an internal Apache2 system enabling HTTP browsing and downloads of a connected file system. I do not have control of the files, file types, or file names of the content being uploaded by the ...
0
votes
3answers
153 views

How to use one httpd.conf for testing and production server?

On my testing server I want to listen to: 127.0.0.1 and on my productaion server I want to listen to: .###.###. I am searching for something like that: <if #server=> Listen 127.0.0.1 </if ...
1
vote
2answers
2k views

Can't find httpd.conf on Ubuntu

I have installed apache and going to configure the apache settings in Ubuntu 12.10, but I can't find the httpd.conf file (I have searched for it, but it seems I don't have the file in my system). Can ...
0
votes
1answer
1k views

Apache LimitExcept GET to IP address but deny all methods to other IPs

I'm having some trouble with getting the Order directive right in a vhost configuration in Apache. I have some IP addresses that I want to totally deny access to the entire vhost. These have been ...
0
votes
1answer
49 views

Getting gzip compression to work on my server (modules?)

I have copied the htaccess file from HTML5 Boilerplate into my httpd.conf file and restarted Apache, but for some reason, gzip compression is still not working: I have tested to see if the modules ...
1
vote
2answers
148 views

Apache deny/allow in vhost config and in .htaccess, which takes priority

If I specify a Deny from xx.xx.xx.xx Directive in a <Directory /var/www/html/test-directory/></Directory> block in an Apache vhost configuration. Then specify a different Deny from ...
2
votes
1answer
143 views

Redirect subdomain to another website on a single IP virtualhost setup

I apologize if this has been asked before, but I've looked at a number of questions here and none of them seem to answer my question. I have a series of domains all pointing to my server. For each ...
1
vote
2answers
36 views

Make Apache2 skip problematic configs?

Is there a way to make Apache2 skip configuration files or segments if they lead to errors? For example, if I have specified a <VirtualHost></> but the defined path doesn't exist anymore. ...
1
vote
0answers
153 views

Apache configuration with proxy and location

I want to map these domains to these ports. How can I do it? http://test1.example.com/phpmyadmin/ example.com:80/phpmyadmin/ http://test1.example.com/app1/ example.com:8080/app1/ ...
2
votes
1answer
118 views

apache httpd.conf - virtualhost configuration

I'm new to apache and httpd.conf The problem I'm having is I need different website to go to different vhost configs and if only the IP is requested it needs to go to the root index.html This works ...
0
votes
2answers
570 views

Using naked domain in apache, no “www” on domain in httpd.conf

Incredibly there is no good tutorial or easy reference guide for using naked domains (no subdomain) as the primary URI online that I could find. I'm trying to configure this to happen in my ...
0
votes
2answers
908 views

Apache2 default vhost in alphabetical order or override with _default_ vhost?

I've got multiple named vhosts on an Apache web server (CentOS 5, Apache 2.2.3). Each vhost has their own config file in /etc/httpd/vhosts.d and these vhost config files are included from the main ...
1
vote
1answer
213 views

only port working with mod_proxy is 8009, trying to use with tomcat and httpd, dont know why

I am trying to use mod_proxy with httpd and tomcat. If I leave tomcat ajp to run on 8009 in the server.xml of tomcat and in the httpd.conf of apache httpd everything works great but once I change it ...
1
vote
1answer
27 views

Apache log for 301

How can i create a log file for 301 redirects, based on response header? I know that i can use SetEnvIf with CutsomLog, but it seems SetEnvIf has access just for request, no for response.
0
votes
1answer
1k views

Installing distcache on CentOS 6.3

I'm trying to re-build our server based on CentOS 6.3 and i can't seem to find the distcache rpm. I have it on my 5.8 CentOS: [root@server]# yum list distcache Loaded plugins: fastestmirror, ...
3
votes
1answer
65 views

How do you http-auth all sites on a server?

I'm setting up a development server and need to apply these basic rules to all virtual hosts on the server in the /var/www/html directory. AuthType Basic AuthName "Development Area" AuthUserFile ...
0
votes
1answer
190 views

Apache is serving from the first virtualhost for all subdomains and main domain

Objective: To have multiple sub-domains working successfully with a wildcard SSL certificate. The sub domains do not have separate dedicated cpanel account, and hence share the same dedicated IP ...
4
votes
1answer
385 views

Apache HTTPd : How is possible to display “Too many connections”

I want to limit the number of client allowed on my apache httpd server (mpm_prefork). When the number of client is reached, I want to display a custom error message such as "Error 503 : Too many ...
-2
votes
3answers
409 views

Apache as backend server doesnt kill childs

I have apache as backend server for nginx. Here is my config for prefork MPM which i use: StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 10 ...
1
vote
2answers
164 views

httpd running as _www instead of www as it used to [closed]

OSX Mountain Lion and Apache 2.2.22. I have always had the httpd.conf set as: User www Group www and it was running as such. Until today. Rebooted the server for another reason and when I tried to ...
1
vote
2answers
305 views

Is it possible to add wildcard serveralias to virtualhost without modifying httpd.conf manually? [closed]

Is it possible to add wildcard serveralias (example: *.somesite.com) in an apache server without modifying httpd.conf manually? I use a DNS different from my hosting server and i have added asterisk A ...
-3
votes
2answers
119 views

index.html opens up fine but index.php saying 404 not find page [duplicate]

Possible Duplicate: How to configure php5 on apache2.2? I have bought new apache server 142.4.4.15 It opens up index.html but cannot open index.php I have php, apache and mysql installed on ...
3
votes
1answer
122 views

Apache2 Basic Auth: user@ip, user2@ip2 - Is this possible?

I am looking at running an external service for clients to use here in my office while clients are working remotely at their office. Assumptions: Both my office IP and clients office IP are static. ...
0
votes
3answers
118 views

httpd 2.4 missing directives

I just setup httpd 2.4 on an Amazone AMI and I noticed in the httpd.conf file there are alot of directives missing compared to a 2.2 conf file. For example: ServerTokens, Timeout, Server Signature, ...
1
vote
2answers
2k views

Apache httpd LDAP integration

I am configuring a CollabNet Subversion integration. I have the following collabnet_subversion.conf file: <Location /svn> DAV svn SVNParentPath /mnt/svn/new_repos SVNListParentPath on ...
1
vote
1answer
92 views

Redirecting to port 3000 if accessed by a certain domain in IIS

I'm running IIS on port 80 & Apache on port 3000. How can I have IIS to redirect requests with a certain domain name to the Apache on 3000? For example, requests to "x.com" would eventually lead ...
1
vote
1answer
468 views

Virtual Host forces to download files

I have been struggling with this for more than 5 hours now, and I can't seem to find the fix to my problem. Basically, I set up virtual host on my Fedora Core server (on custom port 55555). Any time I ...
0
votes
1answer
86 views

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. ...
0
votes
1answer
947 views

In Apache config, should it be “UserDir disabled” or “UserDir disable”?

I'm comparing two Apache config files (httpd.conf), one on a CentOS 6.2 VM with Apache 2.2.15 and one on a RedHat 5.8 server with Apache 2.2.3, and I see a strange difference. UserDir disabled ...
0
votes
1answer
524 views

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 ...
0
votes
1answer
595 views

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. ...
0
votes
1answer
99 views

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 <VirtualHost *:80> ServerName example.com ...
1
vote
2answers
527 views

How can I configure apache to send an email on every HTTP error 500

I have some server applications running on apache2; Ruby on Rails, PHP and others. In all cases I would like apache to send me an email whenever apache responds a HTTP error 500 Internal server ...
0
votes
3answers
163 views

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 ...
3
votes
1answer
47 views

Does apache apply directives sequentially?

I am fresh new with apache and I could not easily google the answer. Will same directive found further inside httpd.conf override the former? For example: Timeout 400 Timeout 500 Is resultant ...
12
votes
2answers
1k views

best way to handle thousands of permanent redirects

We've a list of 3000 301 redirects. We need assistance on What would the best place to put these? It seems putting these 3000 lines inside vhost in httpd.conf would be a mess. What are recommended ...
4
votes
1answer
172 views

Name Based Virtual Hosts in Apache

I'm having a little trouble configuring name based Virtual Hosts. I can start the server with "service apache2 start" with a blank httpd.conf file, and it will run with everything pointing to ...
0
votes
1answer
874 views

Configuring httpd.conf to handle wildcard domains with *multiple* scripts

I have a full-blown site like: http://www.example.com (uses index.php) http://www.example.com/scriptA.php http://www.example.com/scriptB.php I now want to have the possibility of setting up ...
4
votes
1answer
2k views

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET ...
0
votes
1answer
223 views

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 ...
3
votes
1answer
322 views

Is it possible to rewrite some query strings to HTTPS and keep everything else on HTTP?

I'm rewriting query strings to pretty URIs, example: index.php?q=/en/contact becomes /en/contact and all works nicely.. # httpd.conf # HANDLE THE QUERY RewriteCond %{REQUEST_FILENAME} !-f ...
1
vote
1answer
2k views

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 ...
0
votes
3answers
8k views

HTTP Error: 413 Request Entity Too Large

What I have: I have an iPhone app that sends HTTP POST requests (XML format) to a web service written in PHP. This is on a hosted virtual private server so I can edit httpd.conf and other ...
29
votes
2answers
24k views

_default_ VirtualHost overlap on port 443, the first has precedence

I have two ruby on rails 3 applications running on same server, (ubuntu 10.04), both with SSL. Here is my apache config file: <VirtualHost *:80> ServerName example1.com DocumentRoot ...
0
votes
1answer
42 views

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 ...