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

403 Forbidden error on apache 2.2.2 under ElementaryOS Luna

I've installed latest lampp in my ElementaryOS install. All went ok until I begun getting access problems in some files, so I went through: created a new group www and added my user to it, then ...
0
votes
0answers
10 views

How to combine a rewrite rule containing QSA with proxypassmatch in apache?

I need to combine the following rules in one of my VirtualHost directive: # example: /dog?sort=latest&page=1 becomes index?type=dog?sort=latest&page=1 RewriteRule ^/(dog|cat|others)$ ...
-4
votes
1answer
36 views

My website isn't loading on SSL (HTTPS) Connection Timeout [on hold]

I bought a postitiveSSL certificate from namecheap and I followed all the instructions but when I try to load my site with https:// in front of it, it doesn't load (Error code: ...
1
vote
1answer
33 views

How add SSL/443 to Apache server without virtual host?

I have an apache server set up on CentOS. I am trying to add SSL. I was able to create the certificate and keys and then updated /etc/httpd/conf.d/ssl.conf to have the following configurations: ...
3
votes
1answer
128 views

Why is my Apache in an infinite redirection loop?

We currently have an internal site set up for IT at it.example.com, which hosts a single Redmine site. I want to set up Apache so that if a user goes to kb.example.com it redirects them to ...
1
vote
0answers
38 views

403 error from 403 ErrorDocument

I've the following configuration script in my Apache 2.4.7 installation: <Directory "/www"> Options Indexes FollowSymLinks AllowOverride All <RequireAll> Require all ...
-1
votes
1answer
33 views

Best way to setup apach default site

I'm working on setting up a web hosting system and was wondering what the best way to configure the default configuration is to look in a folder if there is no vhost for it. Here's how I would like ...
-3
votes
2answers
33 views

How to limit access to website based on specific header? [closed]

I am developing on my local PC but it's setup so that it is listening on external IP, so anyone can hit my apache is they know the port number. I want to implement a quick solution to prevent other ...
-1
votes
1answer
166 views

How to add /home/user/public_html as virtual host in apache - centos [duplicate]

In Directadmin (I used it before) when we create a reseller, a new user with a home directory was created and user could add domains in a home directory like /home/user/domains/example.com/public_html ...
0
votes
3answers
68 views

How to Redirect FROM https TO http [closed]

I have a site that does not need https. We do not collect any information at all, nor do we have any forms. This being so we did not set up an SSL certificate. However, when I go to ...
0
votes
0answers
34 views

Where do I put the CacheEnable, CacheRoot directives in httpd.conf? Not working currently

I am not using a VirtualHost and I added the following to httpd.conf right after the DocumentRoot declaration (not the one that's an XML node): CacheEnable disk / CacheRoot /var/www/cache ...
1
vote
2answers
25 views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> ...
0
votes
1answer
152 views

ProxyHTMLURLMap replaces url given two times

to explain the title, i have put this (this is the only htmlUrlMap) in my conf: ProxyHTMLURLMap / /rp/ticket/ and this in my html: <script type="text/javascript" ...
0
votes
1answer
28 views

issues setting up subdomain with httpd

Hey I'm having an issue getting my subdomains to show up, I am using HTTPD and have set up my conf in conf.d witht he following <VirtualHost *:80> ServerName wp.{domain}.com ...
0
votes
1answer
42 views

CentOS: Is it possible to have two different installations of PHP and Apache on the same machine?

There's a motivation in my company to enable a team of coders to develop an upgraded version of an existing product on one of our development servers. There are two configurations, the one we use now ...
2
votes
4answers
145 views

Apache Security Config - Ubuntu 12

I am running a LAMP stack on Ubuntu 12, with the primary function to serve a PHP based API. There is only one file I want to be exposed to the public called: api.php It needs to reference a config ...
0
votes
1answer
26 views

not able to access xml file from webserver

when i am trying to aceess my html file of xml file after putting it in var/www/html i am not be able to access it from a browser. for example , i have stored crossdomain.xml file in var/www/html ...
0
votes
2answers
61 views

Exclude the root from a ProxPass directive, but keep everything below the root included

I am running Apache in front of a Tomcat instance. Apache proxies every request that comes through and passes it on to Tomcat. The current configuration is such that Apache puts a ProxyPass on the ...
4
votes
1answer
35 views

Apache: can ErrorLog be made to log also hostnames instead of IP addresses?

Having different Apache servers in a low-load int*ra*net with almost only DHCP clients, we need to log hostnames instead of IP addresses. As the DHCP environment is quite dynamic, any later attempt to ...
2
votes
1answer
102 views

.htaccess not working on Cent Os 6.4

I have installed Cent Os 6.4 -Final Version and set the environment for PHP web development. My application uses the .htaccess for url rewrite & denying direct access of files. my configuration ...
2
votes
1answer
27 views

Is RewriteEngineOn used only once in httpd.conf or can it be used multiple times?

I read that a directory block in httpd.conf is like a .htaccess file. Does that mean that RewriteEngineOn can be used multiple times within httpd.conf? I'm assuming that it can be but it must be ...
0
votes
1answer
24 views

Multiple VirtualHost Configuration files in Apache2.

I have servers with RHEL-5, Apache-2.2.22, PHP-5.3.25 I know I can configure multiple virtualhost configurations in mutliple file by including these files in httpd.conf. Can Apache support this ...
0
votes
0answers
65 views

Difference between default ServerName and UseCanonicalName DNS

For the Apache HTTP Server (2.2) configuration, the default value for ServerName looks equivalent to UseCanonicalName DNS. Is that true? This is confusing considering the default value of ServerName ...
2
votes
2answers
88 views

Use the ServerName as a variable in httpd.conf file

My current httpd.conf file looks something like this: <VirtualHost *:443> DocumentRoot /var/www/html/www.example1.com ServerName www.example1.com SSLEngine on SSLCertificateFile ...
0
votes
1answer
41 views

configuration files and ssh keys are being reset

I own a Centos 6.4 OS. I have standard lamp stack installed. Apache 2.2, PHP54 and mysql 5.5. I have also uploaded a public key into my authorized file in .ssh. I have my document root set in my ...
1
vote
2answers
127 views

Amazon EC2 .htaccess and 500 Error

I have an Amazon EC2 (amzn-ami-pv-2013.09.0.x86_64-ebs (ami-149f7863)) on which I installed Apache, PHP and MySQL. All works fine until I try to activate .htaccess. I change AllOverride All in ...
0
votes
0answers
63 views

Disabling Wordpress 404 and Replacing with Default Apache Error Document

We currently have Apache installed on CentOS. We have run into a problem with one of our sites, in that since we have blocked access to wp-admin bots try and find it somewhere else therefore over ...
-1
votes
1answer
55 views

Running Multiple sites with multiple domains apache

I am having a rough time running apache and using multiple domain names here is a snippet of my config file. I keep getting a error saying that NameVirtualHost has no VirtualHosts. I want them both ...
1
vote
1answer
102 views

DocumentRoot Directory Apache httpd

I want to make changes over my httpd.conf file of Apache running in Windows, but I want to know why need to use (or declare) the same root twice. DocumentRoot "C:/Apache/htdocs" <Directory /> ...
0
votes
1answer
55 views

How to ProxyPass and ProxyPassReverse with a URL having a dot in it?

I am using ProxyPass and ProxyPassReverse. In just simple cases its wouks great but as I have a URL ending with a ".jpg" it just misses it. For example :- Consider the statement below :- The request ...
0
votes
1answer
52 views

Unable to access certain files on web server

Background: I'm running a CentOS VM with Apache installed. The web root is "/var/www/html". There is a subdirectory ("/var/www/html/mp3") which has two mp3's in it. Both mp3's have exactly the same ...
3
votes
4answers
165 views

Only allow the POST method for a specific file in a directory

I have one file that should only be accessible via the POST method. /var/www/folder/index.php The document root is /var/www/ and index.php is nested inside a folder. Version of Apache is: 2.4.4. ...
1
vote
2answers
96 views

How to set different mod_mime rules for reverse proxy?

By default, httpd contains the following configuration: <IfModule mime_module> # # TypesConfig points to the file containing the list of mappings from # filename extension to ...
1
vote
2answers
113 views

Request exceeded the limit of 10 internal redirects

so here is the error [Mon Sep 30 00:09:53 2013] [error] [client 66.249.66.205] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' ...
-1
votes
1answer
36 views

Apache Hotlink Prevention not Working

I have been trying to prevent hotlinking of images on a domain of mine without any success. I have added the following to /etc/apache2/httpd.conf RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ ...
3
votes
2answers
497 views

Why is allow not allowed here in apache2

I've the following in my httpd.conf file: <Directory "/www"> Options Indexes FollowSymLinks AllowOverride AuthConfig FileInfo Options=Indexes,Limit Order allow,deny Allow from ...
0
votes
3answers
343 views

Figuring out correct Apache module names for a2enmod

I have an existing httpd.conf file which I am supposed to get to work on a Vagrant instance running Ubuntu, which I am using Puppet to provision. The problem I am running up against is with module ...
0
votes
1answer
72 views

Add custom Apache config. rules for subdirectory within the same <Directory …> section?

Say my Apache configuration file '/etc/apache2/httpd.conf' looks like this (I don't use .htaccess): <Directory /var/www/whatthenerd.com/public> AllowOverride None <IfModule ...
1
vote
1answer
112 views

How multiple <Directory> sections work in Apache configuration (httpd.conf)?

For example, if my '/etc/apache2/httpd.conf' looks like this: <Directory /> AllowOverride None </Directory> <Directory /home> AllowOverride FileInfo </Directory> ...
2
votes
2answers
154 views

With PHP installed, Apache is (comparatively) slow at serving static content?

First some background on how I installed PHP, Apache, and some Apache modules: # apt-get -y install php5 php-pear libapache2-mod-php5 php-apc php5-mysql php5-mcrypt php5-xmlrpc php5-curl php5-imagick ...
1
vote
0answers
133 views

Configuring dnsmasq to properly work with mod_rewrite on Mac OS X Mountain Lion

I desperately need help. I read an article on the echoditto blog (http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again) and followed the recommendations for setting up ...
0
votes
0answers
47 views

Collabnet_subversion installed and using httpd. Log rotation?

A system admin pointed out to me that Collabnet httpd was holding deleted log files open, and that was taking up room on the disk. Doing an /etc/init.d/collabnet_subversion graceful solved the ...
0
votes
1answer
56 views

What is wrong with my httpd.conf file?

I am using Apache 2.2.22 on Ubuntu 12.04 with PHP 5.3.10. The real domain name has been obfuscated to example.com for this question. I am attempting to set AllowOverride to None. I currently have an ...
1
vote
2answers
320 views

Apache httpd: How can I Deny from all, Allow from specifc IP addresses

Can someone take a look at the syntax of the code below and let me know if it is correct -- my intention is to exclude the htaccess for the IP ranges specified in the 'Allow' part and rest of all ...
0
votes
1answer
170 views

how to set any browser to no keep alive in apache httpd.conf

I have the following setting for IE in my httpd.conf: BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 I want to apply this to all requests that hit my server. My ...
0
votes
0answers
58 views

Assistance required configuring /server-status on apache — keeps getting caught in redirects

Good Morning, I'm trying to configure server-status on my servers, so that I can connect them to Solar Winds monitoring. (No jokes, it's not my choice!) I thought that I could just drop a new .conf ...
-1
votes
2answers
321 views

Cent OS forbidden error

I am very beginner to system and network administration and I researched a lot on this problem, but still not sloved! I have an Ubuntu machine in which I installed cent Os 6 as a virtual machine. I ...
0
votes
0answers
267 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
63 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
45 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 ...