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
0answers
559 views

Apache2 - symbol gzopen64 version ZLIB_xxx not defined in libz.so.1 with link time reference?

I am not a pro in Apache2 httpd server configuration. The OS is a 64bit OpenSUSE 12.3 with built-in apache 2.2 64bit. I found an issue that I cannot explain why: Jul 19 10:07:18 linux-fho2.site ...
1
vote
1answer
141 views

How to allow a website to be accessed without www

For now, I have these DNS records which points to my web server : example.com. IN A 123.123.123.123 www.example.com IN A 123.123.123.123 I am wondering if it is good practice ...
0
votes
1answer
58 views

URL Rewrite http to https with www

I have a domain with several apps. All apps should be reached like this. https://www.website.com/app1/ https://www.website.com/app2/ https://www.website.com/app3/ The problem I'm having is with my ...
2
votes
3answers
160 views

Can i set 443 as default web port which means it can only be accessed via https and no port 80

As title says, I want to set my apache to listen on 443, and will configure SSL. So, My Question is :- 1). Does that mean, i will not have port 80 or any other port which is no ssl ? 2). My site ...
1
vote
1answer
144 views

How to store value of a non-standard HTTP request header to be used in an Apache If conditional

My server will be receiving a non-standard HTTP request named EmployeeID that I want to use to determine access rights to certain directories on the server. How can I store the value of the incoming ...
0
votes
0answers
188 views

X-Forwarded-For to log client ip is not working in apache

I have a load balancer in front of an apache httpd server which inturn forwards the requests to Tomcat6. The flow looks like below: Client -->Firewall System -->Load balancer -->Apache httpd ...
2
votes
1answer
425 views

How can Apache serve as a Reverse Proxy for multiple sites?

I have my Apache Server running on port 80. I also have a Geoserver running in Jetty on port 8080. To avoid cross domain problems in JavaScript, I wish that any request that comes to ...
0
votes
2answers
138 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
306 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
161 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
157 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
595 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
957 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
105 views

Virtual hosts only working for 2/4 directories?

I am running CentOS 6.2 and I have in httpd.conf the following: <VirtualHost *:80> ServerAdmin user@example.co.uk DocumentRoot /var/www/html/example.co.uk/public ServerName ...
0
votes
1answer
51 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 ...
1
vote
1answer
241 views

Apache Core Dump file deletes itself on physical machine restart

I am having an issue which there must be a simple solution I am not seeing, but I have googled and googled to no avail. The issue I am having is when I do a server (physical machine) restart, every ...
0
votes
1answer
442 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
31 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 ^(.*)$ ...
3
votes
1answer
804 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 ...
6
votes
5answers
8k 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
75 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
31 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 ...
1
vote
2answers
3k 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
24 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
215 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
565 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
410 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
161 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
61 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
1k views

WAMP different sites on different ports accessible on LAN [duplicate]

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
332 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
926 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
84 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
598 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
66 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
326 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
174 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
4k 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
52 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
172 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
151 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
1answer
147 views

How to disable access to www.example.com, but make laptop.example.com active

My website's two major sections can be accessed using: www.example.com for general content laptop.example.com for more specific content The laptop section is ready and deployed. User can access it ...
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
168 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
143 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
677 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
1k 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
233 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.