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
1answer
82 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
11k views

Apache - httpd.conf Include Files?

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
150 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
5k 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
2k 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
94 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
141 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 ...
0
votes
1answer
321 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
378 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
167 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
147 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
732 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
124 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
576 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 ...
6
votes
3answers
12k 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
351 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 ...
1
vote
2answers
3k views

Apache .htaccess not working

I have access to an Ubuntu Machine with apache installed, which I connect to Using PuTTy. For some reason my .htaccess file is not working, this is all it contains: ErrorDocument 404 /handler.php ...
0
votes
2answers
260 views

httpd.conf changes to allow www.mysite.com and www.mysite.com/mantis and phpmyadmin?

I've got a php application which I use to place in: ~/public_html/beta/ And mantis and phpmyadmin in: ~/public_html/mantis/ ~/public_html/phpmyadmin/ The application used to be accessed as: ...
1
vote
1answer
205 views

Will private dirty RSS used by mod_php ever be made available to other processes?

I've got PHP processes running that occasionally have to briefly use large amounts of RAM. After PHP uses the large amount of RAM, the httpd process seems to keep the same private dirty RSS ...
2
votes
4answers
260 views

Macro, template, function or something similar to apache's conf files

Following another question I just solved, I wonder: is there anything we can do within Apache to avoid repeating lines of configuration? What about outside apache? In my case it would be AWS EC2's ...
0
votes
2answers
455 views

Multiple servers on the same port, using aws elastic load balancer

I've got this setup that works almost all right and, apparently, works the exact same way than this: UseCanonicalNames off <VirtualHost *:8888> RewriteEngine on RewriteCond %{HTTP_HOST} ...
0
votes
2answers
209 views

Simplify httpd.conf file

Any suggestions on how to simplify my httpd.conf file? I've stripped out everything but the relevant portions: Listen <ip-addr-1>:80 Listen <ip-addr-1>:443 <VirtualHost ...
1
vote
1answer
2k views

Using constant variables in apache configuration

<VirtualHost *:80> SetEnv SITENAME testing ServerName www.test.com # Location of files DocumentRoot "/www/${SITENAME}/site" Alias /data "/www/data/${SITENAME}" Alias /base ...
0
votes
3answers
180 views

I've just installed php on CentOS but need to integrate with Apache

Through yum, rpm commands I've got php53 and other 53 versions common pdo cli mysql pdo I can't tell what version of apache I have, or how to integrate this php into apache. [root@server1 httpd]# ...
0
votes
1answer
389 views

Need help with apache2 httpd.conf

Ok, the problem is presented like this: I have a single IP (123.123.123.123) I have multiple domains I work with subdomains for testing So basically I need to host www.example.com, ...
2
votes
1answer
122 views

httpd.conf match absolute file

I have the following directory statement in my httpd.conf for a virtualhost. <Directory c:/foo/bar/*/*/baz> <Files index.php> # something file specific </Files> ...
7
votes
3answers
5k views

Limit upload file size and redirect user to error page if limit exceeds

Is it possible to redirect user to file file too big page when POST request size exceeds specified limit? I am aware about max-request-size option, but it gives just static page that cannot be ...
0
votes
0answers
47 views

redirect a domain to a cathegory of another domain

Let's say that I have www.cathegory-one.com and I wish to redirect it to www.mydomain.com/cathegory-one. How can be achieved this? Using a html redirect it is not a clean solution( i think). ...
4
votes
4answers
8k views

Yet another (13)Permission denied error on Apache2 server

I just can't figure it out. I'm running apache2 on a Ubuntu 10.04 i386 server. Whenever I visit my server (has an IP address, and is connected to internet with static IP xxx.xxx.xxx.xxx) so that's not ...
2
votes
1answer
569 views

Is it possible to serve different DocumentRoot from Virtual Host in Apache conf depending on IP of the visitor?

I just wonder if it's possible to define several DocumentRoots for single VirtualHost in httpd.conf and serve them out depending on IP of the visitor?
1
vote
1answer
156 views

Can you use a windows enviroment variable in apache conf?

Is it possible to include a windows enviroment variable in an httpd.conf? Ideally I would like to set DocumentRoot to something like %PROGRAMDATA%\MyCompany\MyApp\htdocs. Background: I'm trying to ...
2
votes
1answer
3k views

Warning in Apache log: Cannot get media type from 'x-mapp-php5'

I have no idea what is causing this issue, but it seems to be related to the displayed file (just a simple index.php to print phpinfo) being in an aliased directory. Any suggestions what I can do to ...
0
votes
2answers
119 views

How to configure Apache to process PHPs in Alias

I've configured my Apache with an alias to another directory in the httpd.conf like this: Alias <a_dir> "<full path>" This works fine for regular HTML documents like ...
2
votes
2answers
2k views

Apache deny from CIDR range but allow from IP within that range

I am using a long CIDR blacklist to block several countries from a site, but I need to allow specific IP addresses within the blocked CIDR ranges. Here's an excerpt of my conf file (this is the order ...
2
votes
3answers
541 views

htaccess vrs httpd.conf?

Is it still true that you shouldn't use htaccess files if you can use httpd.conf? The Apache site says "In general, you should never use .htaccess files unless you don't have access to the main ...
0
votes
1answer
86 views

Multiple Apache2 vhosts are pointing to the same website

I'm having trouble getting multiple sites working with Apache on Ubuntu 10.04. I have two sites I want to serve from the same VPS, psychedeli.ca and mahoganytales.com. The problem is, both domains are ...
1
vote
1answer
306 views

Apache prefork.c and other settings

Intel C2D E7400 2048 MB DDR2 RAM 250 GB 7.200 RPM Debian 5 - 32bit This is my dedicated server. I'm using it to host a vBulletin forum. What would be the best prefork.c, worker.c and mpm_winnt.c ? ...
3
votes
2answers
36k views

Accessing localhost (xampp) from another computer over LAN network - how to? [closed]

I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2). On my desktop I can ...
0
votes
2answers
86 views

Problems adding new domain to httpd.conf file

So, I just bought a brand new domain. I set up my dns records with the host (godaddy) but something strange happens on my server. I've added this to the httpd.conf file: <VirtualHost *:80> ...
1
vote
3answers
261 views

httpd.conf configuration for https sites?

I've got a subsite configured like this in httpd.conf <VirtualHost *:80> ServerName myadmin.mysite.com DocumentRoot /var/www/html/myadmin DirectoryIndex index.php <Directory ...
0
votes
2answers
676 views

Setting up an SVN repository on a subdomain

I've found a few guides for setting up a subversion repository and making it available via a subdomain (using a virtual host in Apache), but for some reason can't get things working. Here's what I've ...
0
votes
1answer
455 views

WordPress pretty permalinks not working

I can't get WordPress pretty permalinks to work on my Fedora LAMP server. If I set them and click a page/post link I'll get a ""Oops! This link appears to be broken." The .htaccess file is writable ...
0
votes
1answer
43 views

Disabling access to specific directories and their contents

I have a Web site that contains several Web applications. Each Web application corresponds to a subdirectory of the document root whose name starts with "Web". (For example, /WebLulzGenerator and ...
0
votes
1answer
56 views

Redirecting all requests through HTTPS in a way that works with both public and private IPs

I want to force Apache to redirect all traffic through HTTPS: # Redirect HTTP traffic to HTTPS. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://mypublicip/$1 [R=301,L] ...
2
votes
1answer
70 views

Limit SSI capabilities to only include files

Is there a way to enable SSI on a server (running apache), but only allow the include element (<!--#include -->) and not any other?