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
4answers
81 views

mod_rewrite redirects to www.example.com// when trying to access example.com

I have a VPS on which I'm trying to setup multiple websites. For one of them, with the current set of rules (below), accessing hxxp://example.com sends me to hxxp://www.example.com// [note the ...
1
vote
1answer
343 views

Configure Apache server-status handler

This is on Apache/2.2.21. In httpd.conf, I had the following directive: <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from ...
0
votes
2answers
3k views

How can I configure Apache to use more of my CPU?

Apache threads are stacking up on one of my web servers (300-500 simultaneous requests, some taking 3-8s to process!), but CPU usage is very low (~10%). Page load time is slowing way down as a ...
2
votes
1answer
3k views

Why is the RewriteBase not working?

Here is what I am trying to do: domain is thinkingmonkey.me domain has 127.0.0.1 as IP addr mod_alias is installed. I have a conf file called directories.conf. In which I have all the ...
0
votes
2answers
83 views

mod_rewrite `Redirect` how?

I have 2 urls say thinkingmonkey.me and thinkingmonkey.com both have ip-address 127.0.0.1 (A.K.A localhost). I want to redirect any requests to thinkingmonkey.com to thinkingmonkey.me. ...
0
votes
2answers
87 views

Finding Document Root

I can browse the company intranet site using the following URL. http://192.168.1.2/admin/index.php How do I find the full path of the file "index.php"? I tried... locate admin/index.php and it ...
0
votes
1answer
236 views

What should I set ServerName to in httpd.conf if using only virtual hosts?

I have a linux server with 2 dedicated IPs that I use to host about 10 different sites with Apache's virtual host capabilities. Each site has its own domain name, and I use NameVirtualHosts to direct ...
0
votes
2answers
96 views

Unable to get mod_rewrite to stop processing

This is linked to Rewriting subdomain.domain.com when other 'subdomains' exist I need mod_rewrite to 'stop' processing, but it seems to continue on. On my registrar, I've set A records as: ...
0
votes
1answer
175 views

Rewriting subdomain.domain.com when other 'subdomains' exist

My httpd.conf looks like this: NameVirtualHost 12.34.56.78:80 <VirtualHost 12.34.56.78:80> DocumentRoot /var/www/html/site ServerName www.example.com <IfModule mod_rewrite.c> ...
1
vote
2answers
806 views

Subversion Checkout Yields Could Not Open the Requested Subversion System

I've installed subversion on our RHEL server and also installed dav_svn_module. My location tag in httpd.conf is as follows: <Location /subversion> DAV svn SVNPath /subversion AuthType Basic ...
2
votes
2answers
65 views

Get Apache2.2 to hide Microsoft documents that are being edited?

I have a htdocs directory where I am serving a few Microsoft Word documents. When someone is editing a document, the name of the document changes to look like something like this: ...
5
votes
1answer
5k views

If directive not working in apache VirtualHost conf, says “Invalid command”

Why?? <VirtualHost *:80> ServerAdmin admin@mydomain.com DirectoryIndex index.php <If "%{SERVER_PROTOCOL} != 'HTTPS'"> Redirect / ...
0
votes
1answer
84 views

Directory directive for directory outside doc root - best practice

I have a virtual host which has access to a directory outside of its document root. In the config for this host I specify the directory directive to allow access to this directory. <Directory ...
0
votes
1answer
217 views

Multiple virtual hosts on localhost for development

I'm using Xampp (Apace 2.2.20) on mac os lion for development. I have a number of CMS projects and i want to access them by going to cms1.localhost, cms2.localhost, cms3.localhost etc Currently, with ...
0
votes
1answer
56 views

Can I change Apache configuration based on requestHeaders?

I need to configure filter settings (In Apache2) based on RequestContent header. Is it possible? Specifically changes based on the value of one header. (I'm using mod_line_edit to filter html in ...
0
votes
1answer
1k views

WAMP Server not working when I add a directory directive

I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the ...
0
votes
1answer
514 views

Redirect port / port 10000 to https apache

I have been reading around and trying different configurations to get a request to my server on port 10000 to redirect a http to a https request. For some reason I can't figure out how to make it ...
0
votes
2answers
43 views

Setting http://domain and http://ip to show different directories

Can someone tell me what httpd.conf settings I need to acomplish this? When in browser I access http://IP I want to show: /var/www/html/ And when I access http://domain I want to show ...
1
vote
2answers
69 views

rewrite engine setting

I can see the following entries in /etc/httpd/conf/httpd.conf RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] What is the use of these lines in the config file?
0
votes
1answer
95 views

Protect by password the / and /index.php but not the other scripts

In the document root of my web server (Apache 2.2.15 on CentOS 6.0) I have an /index.php script, which I'd like to be password protected and then few helper scripts (/helper1.php, /helper2.php, ...) ...
1
vote
0answers
145 views

Apache2 ScriptAlias seems to be ignored

I have two vhosts configured on my Apache2 server. One contains the API and the other a mobile version of my app. Since the mobile version needs to access the API from its own domain, I decided to ...
0
votes
3answers
320 views

Inline includes for httpd.conf?

Let's say I have a file list_of_naughty_ip_blocks.conf. Can I use the include directive to achieve the equivalent of line 8 below in my httpd.conf? If so, what is the proper syntax? Anything to note ...
2
votes
2answers
2k views

Blocking by user-agent string in httpd.conf not effective

I'd like to block some spiders and bad bots by user-agent text string for all of my virtual hosts via httpd.conf but have yet to find success. Below are the contents of my http.conf file. Any ideas ...
0
votes
1answer
978 views

Setting up Virtual Host in Fedora Core 15 using apache

I'm trying to setup a couple of Virtual Host files on my Localhost PC running Fedora Core 15. Now I get this working, but now onloy one Virtual Host site works, and if I type in ...
1
vote
3answers
439 views

Apache Performance analysis

I am having really difficult time with my web server. I have been tweaking things as per the suggestions on web, yet not able to find anything concrete. My Apache process was eating 450MB under ...
1
vote
1answer
90 views

Handling default VirtualHost in Apache

please correct any of my statements if I'm wrong. I've realized that VirtualHosts are loaded through httpd.conf line (exact path is individual) Include conf/vhosts/*.conf And each *.conf host is ...
0
votes
1answer
983 views

How to limit bandwidth in CentOS using htaccess and not httpd.conf?

I'm trying to limit bandwidth in centOS. I have tried using bw_module, cband_module and bandwidth_module, but all of those required to use the httpd.conf and must restart httpd! I have to do this ...
1
vote
2answers
57 views

Subdomain setup in apache not working, suspected conflict

I've setup the following in my virtual hosts: <VirtualHost app.pdf-edelivery.com> ServerName app.pdf-edelivery.com DocumentRoot /home/pdfedelivery/public_html/site <Directory ...
0
votes
1answer
90 views

dynamically scan dir and include any .conf file found and add them to httpd.conf

i want to make a somewhat dynamic subdomain thing for my members. I looked into PHP, which didn't really meet all my requirements. alos htaccess wasn't right for me either. the only problem is that ...
1
vote
3answers
16k views

Include files in Apache HTTP Server Version 2.2 httpd.conf

I have a large httpd.conf file, most of which is virtual hosts. Is there a way to make a file, say virtual_hosts.conf, and include it from httpd.conf? I've googled a bit, but can't seem to find much ...
0
votes
1answer
1k views

Apache HTTP Server+Tomcat: Which file generates mod_jk.conf, how to modify generated stuff, and how does httpd reach it?

I'm using XAMPP with Apache HTTP Server and Tomcat Add-On installed. There's a default mod_jk.conf which is generated by Tomcat when starting it. But which file generates this mod_jk.conf file? How ...
0
votes
1answer
159 views

Apache server processes second request more slowly than first

I have an Apache server that has one Virtual Host with multiple Server Aliases, and I experience slow access times depending on what name I use to access the website. My httpd.conf file: ServerName ...
5
votes
2answers
6k views

How can I redirect any ServerAlias to the respective ServerName?

I want to 301 redirect all example.org to www.example.org. The following example is doing just that, but it's got a lot of noise to it and is thus hard to maintain and error prone: <VirtualHost ...
0
votes
2answers
1k views

What is the problem with this apache config

So im getting the error 'Forbidden You don't have permission to access / on this server.' when I go to ec2.guildwars2community.com using this config NameVirtualHost *:80 <VirtualHost *:80> ...
1
vote
2answers
3k views

MaxClients exceeds ServerLimit value…see the ServerLimit directive

I want to set my serverLimit to 1024, and I am using prefork.c So, went to prefork.c, made the change, did make, make install. Then I did an apachectl stop && apachectl start Not I change ...
2
votes
3answers
3k views

Basic Apache httpd server setup becomes slow to serve images requiring frequent restart

I have an Apache httpd server running on RHEL 5.3. I'm using this server to serve static content (images) to for a website running on another httpd instance. In the public web directory are several ...
2
votes
2answers
98 views

Small confusion with access control directives in Apache

The access control to my server is defined like this: Order allow,deny Allow from 127.0.0.1 And this works the way I want it. First, only access from the local machine is allowed and then ...
-1
votes
2answers
156 views

I Have 5GB Free RAM and 70-130 Apache Processes - Improvements?

I want to tune my httpd.conf. I have constantly about 60-130 Apache processes (all 20+MB). However my server only needs like 3GB and I have 8GB overall. My settings: Timeout 10 FileETag None ...
2
votes
1answer
552 views

Restrict WebSVN Access to Windows Users in Specific Domain

I am trying to install WebSVN on top of a VisualSVN install. VisualSVN is set up to use windows authentication, with users from domains CLIENT and DEV getting access to different areas of the site. ...
0
votes
1answer
345 views

Linux Suse 11 and apache - httpd.conf

I have one problem and I hope you could help me. I disable http and now using only HTTPS- SSL. In httpd.conf I use: ProxyPass /comp1/ htt_://192.168.1.5/ ProxyPass /comp2/ htt_://192.168.1.6/ ...
0
votes
1answer
432 views

Apache alias to Ruby on Rails application

I have a RoR application that runs in /var/rails/redmine, and would like it to appear as a subdirectory in my Apache server (primarily so I can use a SSL certificate and not muck around with ...
0
votes
3answers
1k views

How to speed up apache

We have a server with 8Cores, 16GB of RAM and RAID 0 SAS 10K drives. Our goal is to use this to serve a fairly simple php application quickly. We have tested all other components and we think we have ...
0
votes
1answer
250 views

Apache: Testing against multiple module

We can use Apache's IfModule directive to test presence or absence of a specific module. Apache also allows nested IfModule directives which can be used to test multiple modules, in other words we can ...
1
vote
0answers
153 views

Can't find the correct configuration of apache on Centos 5.6 for Trac 0.12.2

I've been trying to get Apache to serve Trac on CentOS 5.6 for the past few days. The missing link is almost certainly the Apache configuration. I know this because I can get trac to run locally with ...
1
vote
1answer
1k views

Apache refusing to change DocumentRoot

I've installed Zend Server CE 5.1.0 on Windows 7 Ultimate 64 bit in its default location, meaning the path to my htdocs is C:\Program Files (x86)\Zend\Apache2\htdocs. Not something that I would like ...
-2
votes
2answers
751 views

how to optimize apache on web-server

how can I optimize the server with following configuration. It takes too much time to load a page. IBM X3200 M3 Server - 1 Intel Xeon Processor with 4 GB Ram Below is my current configuration for ...
1
vote
1answer
125 views

Redirecting http://www.server.com:portX to http://subdomain.server.com

I've got outdated requests coming into a custom port (2104) on my server. http://www.server.com:portX I've now setup my machine to handle those requests at: http://subdomain.server.com:80 But how ...
0
votes
2answers
743 views

Apache + mod_wsgi: seem to be getting a 403 server error

Hello I had to recently reinstall mod_wsgi today (As our Red Hat server was curupted again). Something funny happed while deployiing with Django. I kept on getting page 403 errors You do not have ...
9
votes
3answers
17k views

Make apache only accessible via 127.0.0.1, is this possible?

I've set up my Apache server, and the PHP/MySQL works well! But the issue is, how do I keep this private, since it's a development-only server? The only reason for keeping the content private is if a ...
1
vote
4answers
388 views

Redirecting www.example.com/folder to folder.example.com

I had mantis setup as www.example.com/mantis and now I've setup my httpd.conf to have it accessible at: mantis.example.com . Since I have many links referencing the earlier links, I need to redirect ...