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
88 views

Configuration of NameVirtualHosts and IP address

so I have site1.com and 192.168.1.100 If I use the IP address Apache doesn't work for site1.com, if I use site1.com the IP address doesn't work. Thoughts? Can I get both? I need to access the IP ...
0
votes
1answer
120 views

Apache httpd.conf redirection. How to “balance” app

This is probably a simple problem but I just can't seem to solve it! I have a website running 2 Apache Tomcats on different ports (e.g. 8080, 8085). However since my customers cannot access specific ...
0
votes
1answer
81 views

htpasswd not working when set up in the httpd.conf file

My httpd.conf file looks like: <Directory "/path/to/mysite"> AuthType Basic AuthName "Restricted Files" AuthUserFile "/path/to/.htpasswd" Require user valid-user Options ...
0
votes
1answer
53 views

Redirection on Apache (Maintain POST params)

I have Apache installed on my server and I need to redirect from http to https. The reason for this is our load balancer solution cannot hand https so requests come in on http and then we transfer ...
0
votes
1answer
400 views

PHP 5.4 Apache 5.4.4 Installation error in Windows

While I am trying to install Apache with command httpd -k install I am getting an error: C:\Program Files\Apache24\bin>httpd -k install Installing the Apache2.4 service The Apache2.4 service is ...
0
votes
1answer
239 views

How to redirect HTTP post request

Hi I am currently using the below code in my apache httpd.conf file to redirect from HTTP to HTTPS <VirtualHost 10.1.2.91:80> Redirect 302 /GladQE/link https://glad-test.com/GladQE/link.do ...
0
votes
1answer
382 views

Apache ProxyPass Virtual host

I'm trying to do a similar setup to the one discussed in this older thread. I've enabled the proxy_module, proxy_connect_module, proxy_http_module, and rewrite_module. It worked, but now when I go ...
0
votes
1answer
34 views

Seting up folder from Apache root directory in other hdd and allow php to write on it

please need help... [LINUX] I'm trying to set up a big photos folder in a new hdd over apache. Before it was: /htdocs/photos now I'm trying to create a virtual directory: <IfModule ...
0
votes
1answer
180 views

apache httpd.conf subdomain setting cause 500

I am trying to adding a subdomain for my mobile site. But when I add below code into my httpd.conf, i could open m.domain.com in my browser, but failed all www.domain.com with 500 Internal Server ...
1
vote
0answers
28 views

Rewrite not functioning in httpd.conf

My httpd.conf has: <Directory "/var/www/site"> AllowOverride All RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^site.com [NC] RewriteRule ^(.*)$ ...
1
vote
1answer
196 views

Running a file without extension as CGI-script outside /cgi-bin

It seems like I'm the first person wanting to do this... It was really easy to solve with lighttpd, but with apache this seems impossible. Basically I want to run a cgi-file without extension outsite ...
1
vote
5answers
3k views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
0
votes
1answer
58 views

Apache(httpd) virtual host configuration

I am trying to configure virtual host on local web server What i want is when i go to localhost or server IP i want to see the default centos page and when i go to the other websites that are ...
0
votes
1answer
24 views

Apache HTTPD “sites/mods-enabled/available” configuration

I've recently moved from the default Ubuntu/Debian apache2 packages to installing the Apache HTTPD from the official tarballs. I have everything working fine, but I wanted to know if there's any easy ...
0
votes
2answers
496 views

How can I block a user agent from all sites on my server?

I originally this posted at webmasters.stackexchange.com, but was told I'd get a better reception here. For the last few days, I've been suffering from what appears to be a (presumably inadvertent) ...
0
votes
0answers
33 views

Setting up Ajax Push Engine (APE) to work with two websites-domains on the same server

I have a server configured and running with APE. I would like to add at the same server, another domain to work with APE. It's possible? How to do that?
0
votes
0answers
23 views

How to using mod_rewrite under HTTPS

I'm write following configuration in httpd.conf. but, I can't start Apache when I turn on this setting. <VirtualHost *:443> ServerName www.example.com <IfModule mod_rewrite.c> ...
1
vote
0answers
70 views

set up apache http server in windows as proxy to access another domain

I know this should be very basic and simple in theory, but I need to complete this task, I'm new to this and for some reason I can't find a suitable example that works for me. I am running apache 2.2 ...
0
votes
2answers
140 views

Apache httpd-vhosts.conf file sending all requests to default vhost

What is wrong here? NameVirtualHost *:80 <VirtualHost *:80> ServerName domain1.com ServerAdmin membersupport@domain1.com DocumentRoot /var/www/html/domain1-com </VirtualHost> ...
1
vote
1answer
112 views

Apache AllowOverride Options Directive

I am trying to understand the following configuration (specific to FollowSymlinks and SymlinksIfOwnerMatch directives) in Directory section of an httpd.conf file: <Directory "/home"> Options ...
1
vote
1answer
106 views

How is Apache 1.3 compressing?

More specifically, I would like suggestions as to how my server is encoding in gzip compressed format. We have once OC4J container that serves gzip transfer encoding, and others do not. Trying to ...
0
votes
1answer
55 views

How does Apache 2.2 know about my server's second IP, and how can I hide it?

My server has two IP addresses, and I want two Apache services listening to each one separately. The DNS has this: a CNAME alias pointing 'intranet' to servername a Host (A) record pointing ...
0
votes
2answers
401 views

WAMP different sites on different ports accessible on LAN

I have a small windows server set up on a LAN, with static IP address 192.168.1.100. I have a few other client machines, say 192.168.1.101 - 104. Requirements: Host an apache server (wampserver) on ...
0
votes
2answers
124 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
405 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
65 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
136 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
46 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
171 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
110 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
667 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
296 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
43 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
100 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
107 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
128 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
79 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
332 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
503 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
32 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
163 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
25 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
710 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
58 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
158 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
226 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
268 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
150 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
222 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 ...