apache2

Problem installing mod_jk on Ubuntu karmic apache httpd 2.2.12 and tomcat 6

I have a problem when configuring mod_jk on ubuntu i use apache httpd 2.2.12 and tomcat 6 I installed apache httpd and lib mod_jk from synaptic and use default configuration. Here my mod_jk.conf ------------------------------------------------------------- # Load mod_jk module # Update this path to match your modules location #LoadModu...

python on apache - getting 404

I edited this question after i found a solution... i need to understand why the solution worked instead of my method? This is likely to be a silly question. I tried searching other questions that are related... but to no avail. i am running Apache/2.2.11 (Ubuntu) DAV/2 SVN/1.5.4 PHP/5.2.6-3ubuntu4.5 with Suhosin-Patch mod_python/3.3.1 ...

What is Loglevel debug?

My error.log file for my site says Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://URL/TO/REFERER My question is, what is LogLevel? I've googled it but it seems like I'm j...

How to debug into my apache module built using a Makefile?

Firstly, I come from Windows-VisualStudio-C++ background. Now I am developing in a Ubuntu environment. With the help of a Makefile, I built a mymodule.so and copied it to the modules folder within apache. Now, it appears that the module is working fine. But I would like to debug into this module to understand it better. So, first, is...

Mooshak Error - Could not find execute

So I'm trying to install mooshak in our university server, but I found some problem... I installed mooshak 1.4.3 in Ubuntu 8.10, and followed instruction in the site... But I get this error after entering http://mysite.com/~mooshak in my browser: Not Found The requested URL /~mooshak/cgi-bin/execute was not found on this server. Has ...

Problem in apache2 with mod rewrite when setting rules in .conf files instead of .htaccess

Hi, Because of weird security policies of my hosting provider I have to define my rewrite rules in /etc/apache2/conf.d/examplesite.conf instead of writing them on an .htaccess on the www folder of that site. What I'm trying to do is setup a Wordpress Mu server (http://mu.wordpress.org/forums/topic/17349 ) and so far its working on a 50...

How can I create an apr_table_t type's table in shared memory segment?

How can I create an apr_table_t type's table in shared memory segment? ...

Apache mod-vhost-alias question

Hello! I was wondering if you could use a wildcard in the VirtualDocumentRoot directive. I mean is it possible to scan multiple directories with the VirtualDocumentRoot, like multiple home directories to look for sites? ...

Ruby on Rails - Static page as start page

Hello! I am developing an app in RoR which has static and dynamic parts. The static portion is placed in the public/ folder of the app. Now if i have an index.html in my public folder then i will not be able to use the routes configured in my routes.rb The default configurations like map.connect /:controller/:action will not be usable i...

Do passwords used for .htaccess need to be encrypted?

I am using .htaccess files to control access to various Apache2 directories. I have a main "password" file that contains usernames and passwords. All the instructions I have found regarding .htaccess talk about how the passwords added are encrypted. The usernames and passwords are created using the following command line syntax ... htpa...

Apache2 - Dynamically map url on files ystem

Hi Guys, I'm tying at the moment to dynamically map a url to the file system. e.g.: www.example.com/~svn/myrepo < to > /var/svn-repos/myrepo My approach: <Location /~svn/([a-ZA-Z0-9-_]+)> DAV svn SVNPath /var/svn-repos/$1 AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apa...

Apache2 VirtualHost Configuration with SSL

Hello! I'm new here and I have a strange problem which needs to be solved. Previously I searched in the whole forum and I've read all of related questions but I didn't find solution to my question. We have two servers and a firewall computer. On the Server#1 there is an Apache 2.2 web server and it forwards the incoming traffic to the a...

Matplotlib and WSGI/mod_python not working on Apache.

Everything works as supposed to on the Django development server. In Apache, the django app also works except when matplotlib is used. Here's the error I get: No module named multiarray. Exception Type: ImportError Exception Value: No module named multiarray Exception Location: /usr/share/pyshared/numpy/core/numerictypes.py in <modu...

Apache: Redirect blog.foobar.com to www.foobar.com

Hello, I have a site at blog.foobar.com that I have closed down, and I want any page requested there to be forwarded to www.foobar.com I want my VirtualHost config to do this for me. I currently have the following lines that does nearly what I want but not exactly: redirect permanent / http://www.foobar.com Unfortunately what happens...

Excessive httpd processes to stack up on my Rails + Apache2 + Passenger production setup?

I have a Rails + Apache2 + Postgres + Passenger application running in production mode in OSX Snow Leopard. The application serves as a data warehouse for another application in the cloud so I'm constantly getting API calls to my OSX production build. After a recent reboot, I'm finding a ton of httpd processes stacking up and eventually...

django (under mod_wsgi) and php

Hello Under my debian copy, I run a django site runs via apache2 and mod_wsgi. Now I want to include a wordpress to it, for that I need to install php - apache bindings. I am curious what library is recommended for this, aswell as how shall I be doing the apache2 config file ? Here is my current apache 2 000-default file: <VirtualHost ...

Apache2 php fastcgi, run for each request.

I've installed php fastcgi for Apache2 by this doc: http://library.linode.com/web-servers/apache/php-cgi/ubuntu-9.10-karmic Pages is opening fine. But I don't understand why I can't see php5-cgi process [ > top ] Looks like apache run php5-cgi for each request, but processes should be already run. Could you help me to find the probl...

how to increase apache 2 uri length limit

i am getting this error in my apache2 log [Tue Apr 06 09:00:56 2010] [error] [client A.B.C.D] request failed: URI too long (longer than 8190) what setting can i change to increase this limit? ...

Get current Apache version string for display

I'm writing an Apache module and want to get a string with the Apache name version and other details. Much like what gets added to outgoing headers, e.g.: Server: Apache/2.2.13 (Win32) I've tried code like this: apr_table_get(request_rec->headers_out,"Server") But that doesn't seem to work. Is there an API call I haven't found or a...

Apache on linux and i18n : spawning processes or threads ?

Hello, I would like to understand better exactly what is going on when Apache on linux receive an HTTP request in a process pre-fork model. Let's say we have 20 Apache child processes waiting. When I receive an HTTP request, is it true to say that 1 child process will be chosen to handle the request and that this process won't handle a...