If I want to use a pylons app with Apache, should I use mod_wsgi or proxy to paste?
Or should I be using a totally different server? ...
Or should I be using a totally different server? ...
I had the default Apache2.2 and PHP installation working on my MacBook Pro, but it stopped working at some point. I've read many online articles to try and fix this problem, but none of them have pointed out anything that I am not already doing to get PHP working again. I am completely stumped: My basic Apache configuration appears to b...
I am setting up an Apache2 webserver running multiple Ruby on Rails web applications with Phusion Passenger. I know that Passenger spawns Ruby processes for handling requests. I have the following questions: If more than one request has to be handled at the same time, will Passenger spawn multiple processes or multiple (Ruby) threads? ...
I have this .htaccess file, which is not working, when I navegate to gotgage.local/category/gages/ the gages portion of this is not being passed RewriteEngine On RewriteRule ^/category/(.*?)/$ category.php?p=$1 [rn] For the sake of testing the category.php file is just dumping $_POST, $_GET and $_SERVER this is what I am seeing when ...
I'm writing an application to do proxying and rewriting of webpages on the fly and am pretty settled on using mod_perl2 - there is an existing implementation using mod_perl (v1) that I'm working from. In mod_perl2, there's this idea of APR::Brigades and APR::Buckets which, from my vague understanding, are an efficient way to do the sort...
I poked around the mod_python website and I only found the files for Python 2.5 and earlier for Apache HTTP Server 2.2. I Googled around a little, without significant luck. Any suggestions? ...
I am trying to streamline a server of a clients. After downloading the access_log files, I noticed that there were an awful lot of entries that looked like: ::1 - - [11/May/2009:23:21:16 +0100] "GET / HTTP/1.0" 403 5043 "-" "Apache/2.2.3 (CentOS) (internal dummy connection)" I have also checked the httpd.conf file, and I have seen th...
Hi, so we're running a cluster of 2+ backend servers (happend to be JBoss servers) that are being load-balanced by an Apache 2.2. From time to time it can happen that the backend servers become unresponsive (meaning they'll wait ages to reply to a request, but don't close the connection immediately). This will naturally end up in a 502 ...
location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; if (-f $request_filename) { access_log off; expires 30d; break; } if (!-f $request_filename) { proxy_pass http://127.0.0.1:8080; # A...
I just want to browse my Subversion code repositories and view files. Some of the file types, like .VBS, prompt me to open or save the file, but I just want to view it in the browser as plain text. Can Apache's httpd.conf file be modified to do this? I don't think it would be changed on the client (IE7) because then it would work the ...
I have setup Apache to serve Subversion data. The configuration looks like this, <Location /svn> DAV svn SVNPath /path/to/svn AuthType Basic AuthName "My Project" AuthUserFile /etc/httpd/dav_svn.passwd Require valid-user SSLRequireSSL <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> T...
I'm trying to get multiple rails apps hosted under the same domain, but different directories. My configuration before attempting to host multiple apps (which works great), looks like this: <VirtualHost *:443> ServerName secure.mydomain.com DocumentRoot /root/store/public </VirtualHost> I google'd around and found documentati...
I was working on debugging an issue today related to mixing mod_proxy and mod_rewrite together and I ended up having to use balancer://mycluster in the RewriteRule in order to stop receiving a 404 error from Apache. I have two questions: 1) Is there any other way to get the rewritten URL to go through the balancer without adding balance...
Hi, Using Apache 2, I want to configure my website so that any requests to the domain are forwarded to a Python CGI script. Basically, if the user goes to http://www.example.com i want the cgi /cgi-bin/cgi.py to execute. If the user goes to http://www.example.com/index.rss I want /cgi-bin/cgi.py to be executed with /index.rss as the ar...
I am using this script for a piped log setup in Apache 2: #!/usr/local/bin/perl $|=1; # Use unbuffered output while (<STDIN>) { if (<STDIN> =~ m/(.php|.html|.htm|.dhtml|.cpp|.h|.c|.txt|.pdf|.pl)$/) {system("beep");} } I am sending in the directive %f to give it the filename. As you can tell, it checks to see if the requested...
I'm a little confused as to how to configure my Apache server. I'm using Apache 2.2.11 Take these 2 pages as a good example: HTML XHTML They're both one and the same syntax, but the extension is different. The first file has HTML as an extension, the second has XHTML as an extension. The server in the background has the following set...
I have a site with some html files on it. One of them is contact.html. This is my .htaccess, and I'm having problems where I can address the page with site.com/contact, but not site.com/contact/. (Note ending slash.) What's the fix? RewriteEngine On # If the requested URI does not contain a period in the final path-part RewriteCond %{R...
I am writing a small application to get the various diagnostic parameter of Apache Webserver like time of the start of the server, Worker mode or Prefork mode, server version and many more. I have found few API for getting info about these parameter. But I colud not find nay API for the getting start time of the WebServer. Is there any s...
I'm having problems with the follow code: Options FollowSymLinks RewriteEngine on RewriteRule ^thing/([^/]+)/?$ index.php?t=$1 [B] I'm getting "500 Internal Server Error" The error log says: RewriteRule: unknown flag 'B' I've check my Apache version: [root@server ~]# httpd -v Server version: Apache/2.2.3 Server built: Jan 21 2...
I run a very simple php file on apache. Then I benchmark apache, using ab -n 10000 -c 5 http://localhost/~me/hello.php?name=Niko But I get this error message, depending on c (for c=1, things are fine): apr_socket_connect(): Operation already in progress (37) I'm using ApacheBench, Version 2.3 on OSX 10.5.7. The very simple PHP f...