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

1
vote
0answers
143 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
99 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
457 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
663 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 ...
0
votes
0answers
33 views

Error configuring virtual hosts

i Have a problem using my virtual hosts: When i try to connect to my server on direct ip adress, for example http://111.11.11.111/ in apache error log i see following error: script ...
1
vote
1answer
190 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
26 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
890 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
63 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
164 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
299 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
330 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
157 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
255 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 ...
0
votes
0answers
54 views

Three apps going through apache. How to configure apache httpd?

I have a quick question but I've been struggling to find the best solution: I have two java webapps and wordpress (php) that I need to serve through my Prod website: App #1 should be accessed when ...
-3
votes
2answers
110 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
117 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
108 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
73 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
384 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
79 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
0answers
161 views

Plesk 10 VPS - Site on extra port?

I'm building my own custom content management system for a my websites. I want the content management-site to be available through another port so I can do this: www.mysite.com:8844. The server I use ...
0
votes
1answer
773 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
462 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
500 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
90 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
435 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
141 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 ...
0
votes
0answers
617 views

Apache 2 Settings for high traffic webserver

Hey all and thanks in advance, this is an easy one for alot of you on here. I have a 2 server setup a web server and database backend. Well I am having issues optimizing my apache settings and don't ...
3
votes
1answer
43 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 ...
0
votes
0answers
182 views

Server Connection Defaulting to HTTPS in Firefox

I recently added SSL to my server using a self-signed certificate. The goal was to access phpMyAdmin without sending my credentials over the Internet in plain text. This works great for phpMyAdmin, ...
10
votes
2answers
973 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
164 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
765 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
1k 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
217 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
295 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
6k 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 ...
22
votes
2answers
17k 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 ...
1
vote
1answer
369 views

mod_rewrite in .htaccess causes header not to be applied - why?

Excerpt from <VirtualHost *:80> section in httpd.conf (goal: set Cache-Control for all JavaScript files): <LocationMatch "\.js"> Header set Cache-Control "max-age=290304000, public" ...
0
votes
2answers
48 views

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

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 ...
0
votes
2answers
631 views

Apache httpd.conf Only use SSL for subdomain and give 404 for other https URLs

I have a current configuration for my website mail client: NameVirtualHost *:443 <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt ...
0
votes
2answers
591 views

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

How to setup Apache so some websites across multiple sub-domains are always using https

I realise there are lots of different variations on this question on serverfault but I haven't had any luck with combining answers to match our situation. We have a CentOS 6.2 web server running ...
0
votes
2answers
602 views

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

Apache Alias - removes POST data?

I have an alias in my httpd.conf where I'm redirecting a single PHP file to another PHP file located in a different dir. Though it appears as thought data POST'd to this file doesn't get carried ...