httpd

CGI to Handle Multiple Requests on a Persistent HTTP Connection

CGI programs typically get a single HTTP request. HTTP 1.1 supports persistent HTTP connections whereby multiple HTTP requests/responses are made w/o closing the connection. Is there a way for a CGI program (or similar mechanism) to handle multiple HTTP requests/responses on the same connection? I am using Apache httpd. ...

Interrupted server-side perl CGI script when client-side browser closes

Hi everyone, I've been trying to solve a little problem for quite a while now but it seems I'm not able to. I wrote an HTML page which calls a perl CGI script upon submitting a form. This CGI executes a certain number of tasks server-side and I made the script print the steps of these tasks into an iframe on the HTML page. The thing i...

What are some best practices for using continuous integration (e.g., Hudson) with mod-perl for apache module development?

I am looking into using Hudson to perform continuous integration testing for developing apache modules using mod_perl. Does anyone have any best practices or recommended strategies for utilizing these kinds of CI systems with apache modules? ...

Single-EXE, PHP-capable www server?

To run a simple PHP app on users' desktop, I need a light, installer-free, portable www server for Windows that I can just stick into a ZIP file with the minimum files needed to run PHP (php-cgi.exe, php.ini, php5ts.dll, php_pdo_sqlite.dll), so the user only has to unzip the files into a directory, double-click the www EXE, and have a wo...

Will this config error stop apache from restarting

I have a production website running apache on linux. There are all sorts of rules set up which I don't want to mess with. I need to restart apache so I decided to do a configtest first to check that everything was ok. My question is, will apache restart given this error? >$ service httpd configtest Syntax error on line 129 of /et...

Fedora LAMP: Problem include configuration file

Hello, I've been configuring LAMP server on Fedora core 13 and when I tr to include my configuration files from within /etc/http/conf/httpd.conf using apache's Include directive, apache just fails on restart action. What is the problem, is there any problems on Selinux stack? Sultan ...

svcrack.py and svwar.py

hello, i found out that my server is getting slower and slower. on command top i get response that i have a lot svcrack.py and svwar.py processes active. can you tell me what are those? thank you in advance! ...

How to compile c++ using mingw from an apache cgi?

Hi ! I'm trying to execute mingw's g++ from inside a cgi written for apache. The line I execute is: c:\mingw\bin\g++.exe -Wall -IC:\hpxbase -O2 -c -v -o code.o code.cpp This works when I call exactly this line from a cmd window. But when run from my cgi, g++ crashes. I made the cgi open up ots own console window and there is the messa...

Serve static content in a web server and dynamic content in tomcat is still a good performance practice?

In old versions of tomcat (like 3.2) you can find the recomendation to serve static content in a apache web server and leave the dynamic content to the tomcat itself. At the new versions of the tomcat docs you cannot find any reference to this practice even at the mod_jk configuration tutorial. So I am wondering. Is still true that tom...

Compiling Apache HTTP Server (httpd) 2.2.16 with OpenSSL

Apache 2.2.16 is currently the "best available version" of the HTTP Server. I made some changes to the source and need to recompile with OpenSSL. My question is, should I use OpenSSL 0.9.8o or OpenSSL 1.0.0a? The latter is a more recent, major release, but Apache couples HTTPD 2.2.16 with OpenSSL 0.9.8o in their binary offering. See ...

Integrating Apache HTTP with Tomcat, possible to output combination in one page?

I am planning to integrate Apache httpd server with Tomcat using the proxy module to forward certain addresses to be processed by Tomcat. However I wanted to ask if it is possible to combine the output from Tomcat with content from apache httpd so that they are returned to the client as part of one html page? (no frames or funny business...

Is there a way to have Apache log slow requests?

If a page takes over a couples seconds to process, I'd like Apache to log that URL somewhere. Is this possible? I have a lot of sites, so I was looking for an automatic way to do this as opposed to proprietary code for each site. ...

Dynamic URLs w/ Struts 1

I'm using Struts 1. I have a list of stores in our database. The store table contains store id, store name, url friendly store path, store address. For example, "1; Store 1; the-wonderful-store; 52 Main St.", When a request comes in for /store/the-wonderful-store.do, I want to grab "the-wonderful-store" and query the DB for the store...

mod_rewrite messing up the site navigation links

On my main page, the navigation links are as follows: localhost/inventory/add localhost/inventory/view The code for those are: <a href='add'>Add Record</a> <a href='view'>View Records</a> and my .htaccess file is: RewriteEngine on RewriteRule ^([^/\.]+)/?$ ./index.php?url=$1 [L] RewriteRule ^([^/\.]+)/?/([^/\.]+)/?$ ./index.php?u...

Able to remove one word from URL? ISAPI_Rewrite httpd.ini question

I'm using ISAPI_Rewrite, Windows server 2008. Currently I am rewriting URLs to httpd.ini like this: RewriteRule /this-is-my-super-fancy-url/([^/]+)? /foobar/index.html?nid=10$1 Problem is, now we need to remove certain words from the URL, yet still have the request filled. For instance, in the example above if I needed to remove the...

VirtualHost on XAMPP

Hi, I'm using XAMPP lite on Windows 7, but instead of http://localhost I'd like to have http://mycustomname mapped to a directory myfolder in root/htdocs. What should I change in httpd.conf? Many thanks! ...

Packaging Apache configuration files with WAR

I have built a Spring 3 MVC driven RESTful web service app. I use Maven 2 to manage the application lifecycle including packaging up the WAR for distribution. As part of the end solution, I filter application requests through Apache to handle some of the GET requests for static content. This of course requires that I have several custom ...

Django Performance

I am using a django with apache mod_wsgi, my site has dynamic data on every page and all of the media (css, images, js) is stored on amazon S3 buckets liked via "http://bucket.domain.com/images/*.jpg" inside the markup . . . . my question is, can varnish still help me speed up my web server? I am trying to knock down all the stumbling b...

NuSOAP / fsockopen error - Couldn't open socket connection to server , Error (13): Permission denied

I have a php application using NuSOAP on a RHEL5/CentOS dedicated system. I'm runing into the following error: 2010-10-21 06:23:43.374471 soap_transport_http: entered send() with data of length: 1693 2010-10-21 06:23:43.374510 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host www.mysite.com, port...

Apache mod status is showing ..reading..

Hi, Recently my apache got DoS attack, it happened attacker flood SYN request to our apache, i know because at that time i have wireshark enabled. After the attack finished, i restart my apache and its all back to run normal. But the problem when i check my serverstatus from mod-status there are some threads are showing > 0-92 61968...