httpd

Best way to log POST data in Apache?

Imagine you have a site API that accepts data in the form of GET requests with parameters, or as POST requests (say, with standard url-encoded, &-separated POST data). If you want to log and analyze API calls, the GET requests will be easy, because they will be in the apache log. Is there a simple way to get the POST data in the apache...

Looking for open-source http servers

Hi, all I'm looking for open-source http servers as benchmarks for my OS, which should satisfy: It folks several processes to handle http requests (not threads or I/O multiplexing) It can be compiled statically, which means no run-time code link like dynamic libraries. Is there any satisfied httpd? Thanks for your replies. ...

Apache loading queue problems

Hello guys, I now have 8GB of ram in my server, so bare that in-mind when making recommendations on how much to up settings. Basically, Apache won't concurrently load more than one page at a time. What the hell could be causing this? This causes real problems when I execute a page that takes a long time to load, no other pages will loa...

Setting up Wildcard subdomain (with reverse proxy) on apache 2.2.3

Hey All, What I am trying to achieve is the following: I want to have numerous subdomains such as abc.domain.com redirect to a url such as www.domain.com/something?subdomain=abc Since I am redirecting to a fully qualified domain, I needed to use a reverse proxy to avoid the change of the URL in the browser. (using the [P] Flag and turn...

500 Internal Server Error?

Hi,everyone, Recently, I put my project which is php+smarty+mysql in my httpd server. But I encountered an error that says: 500 Internal Server Error My OS is archlinux, and the httpd server and php were installed like this: sudo pacman -S apache php If I use a test native php file which contains the following: <html> <head...

Apache proxy Cluster redirect.

I have a apache httpd which distributes the load between 2 servers (Serv_A and Ser_B). Using sticky session. If the request was sticky with Serv_A and Serv_A goes down. Question is? 1. should the proxy send the request to Serv_B without doing a redirect from the browser? OR 2. it should always redirect from the client browser to Serv_...

Fails to load remote files from web, but not CLI

I can load a remote file (http) from the php CLI: php > print_r(getimagesize("http://www.google.ca/intl/en_ca/images/logo.gif")); Array ( [0] => 276 [1] => 110 [2] => 1 [3] => width="276" height="110" [bits] => 8 [channels] => 3 [mime] => image/gif ) However, the exact same code from a web script gives ...

Apache-httpd processes die with segmentation fault on deployment

Hi, I'm running Rails 2.3.3 application which is deployed with passenger/mod_rails with ruby-enterprise-1.8.6-20090610 and apache httpd. The problem is that whenever I deploy our application, hundreds of httpd processes start dying. I'm getting this error: [notice] child pid NNNNN exit signal Segmentation fault(11) After a short p...

HTTP Request Log - unique visitors without ip

How can i log Requests to get unique visitors of my webpage but without saving his ip? Hashing? ...

Apache 2.2 localhost VirtualHosts problems

Hi all, I am trying to setup my dev machine with virtual hosts so I can access my development projects with a simple url, like http:// project.dev/ rather that a whole http:// 127.0.0.1/dev/path/to/root/of/project/ type of url. Now, I'm aware there are many tutorials and questions already answered about this, but after trying many of th...

Tomcat behind Apache: Using SSL with j_security_check

Hi guys, I have a little problem with using SSL on a Tomcat that is behind Apache. I have used Google all morning to try to find a good solution, but nothing so far. As a part of my SSL VirtualHost configuration I have <Location /MyApp/> ProxyPass http://localhost:8080/MyApp/ </Location> This works fine for most cases, but j_securi...

How to move existing apache configuration to another machine

Hi, I have an apache(httpd) up and running on one machine. Now i want to move configuration details to another machine. The other machine should have the appropriate changes like creating apache home directories, shares created, etc.. I want to automate the above process.. How do i do that? --Anandan ...

Reading the .htaccess DirectoryIndex and Rewrites with PHP

Is there an inbuilt way to read the active DirectoryIndex in .htaccess (or httpd.conf etc) with php? Also, is there a way to determine which file the httpd will execute using PHP given a url if rewrites are being used? Basically, given a URL, I want to use PHP to figure out which file the httpd would initially invoke. Thank you. ...

[SOLVED] Apache2 + RewriteMap + Python -- when returning 'NULL', apache hangs

[SOLVED: See solution below.] I'm having a problem writing a RewriteMap program (using Python). I have a RewriteMap directive pointing to a Python script which determines if the requested URL needs to be redirected elsewhere. When the script outputs a string terminated by a linebreak, Apache redirects accordingly. However, when the s...

Tool to check up ssl setup on apache server

My Apache server works fine without -DSSL, but does not start with SSL. This happened after I re-install the certificate because of expiration. (it used to work before) I would love to have some tool to check up if my newer setup of ssl key and certificate is correct or not. That would include permission, ownership etc.. Or is there a...

Apache problem on Mac

I couldn't visit 127.0.0.1 on my mac . I turned on the "web share" already. and there is no "httpd" process in Activity Monitor ...

Apache authentication: Redirect on failure, reliably?

I've set my ErrorDocument 401 to point to my website's account creation page, but not all browsers seem to honor this redirect (Safari). Also, other browsers (Firefox, Chrome) never quit asking for the password and show the ErrorDocument. This causes a good number of users to give up trying after many password attempts without seeing th...

http server validation

Hello, I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing for http protocole and specialy for the server part. Is there a test tool for verify that ? (no secret : http://raubarede.homel...

Tomcat CometProcessor NIO served via Apache httpd?

I have a CometProcessor Servlet working fine in Apache Tomcat. My server.xml connector entry is: <Connector connectionTimeout="20000" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/> I can hit the servlet (named 'EventBus') with a URL to Tomcat directly like so: http://xyz.com:8080/EventBus I h...

open_basedir in reverse... kind of...

We have several vhosts that all include files from another vhost so in the httpd.conf we have added php_admin_value open_basedir "..........:/home/commonfi" I was wondering whether I could add something to the commonfi vhost setup to allow any site to access the files without having to specify /home/commonfi in the open_basedir for e...