apache2

Read If-Modified-Since header in PHP CGI

My PHP script depends on being able to read the value of the If-Modified-Since header (yes, I know how to do this). It worked correctly when I used PHP as mod_php, but now that I've switched to suPHP (CGI), it appears Apache itself handles requests that contain this header, without forwarding them to PHP at all. This is silly, because...

How to configure SVN web access for different write permissions?

I'm trying to configure SVN web access on Apache2 under Windows Server 2008 for different write permissions. I have next Apache2 conf: <Location /svn> SVNParentPath "E:\SVN" DAV svn SVNListParentPath on AuthType Basic AuthName "Subversion repositories" Require valid-user AuthUserFile svn-auth.txt AuthzSVNAccessFile svn-acl.tx...

mod_jk help with apache2 tomcat6 and railo3 on ubuntu server 9.04

Hello I am trying to setup the coldfusion server railo on tomcat6 and using apache2 to connect to tomcat via mod_jk. I've gotten everything setup except that i would like to be able to have my railo webapp use the /var/www (my default apache directory) as its home directory since not every file need to be processed by railo. What is the ...

Why does apache mod_perl process become a zombie?

Hey! Occasionally mod_perl apache process is marked "defunct" in "top" utility, that is becomes a zombie process. Is it a correct behavior? Do I have to worry about it? Our Perl script is very simple, it does not spawn any child processes. The zombie process disappears pretty quickly. Apache2, Ubuntu. Our apache config is here: apache...

Apache 2 + Tomcat 6 + Mod_jk: How can I close the port 8080 ?

Hi all, I'd setup Apache 2.2 with Mod_Jk so that all Tomcat 6 pages is piped through Apache, port 80. Everything work fine, all pages look good. My question is: How can I close the port 8080 listened by Tomcat ? Since right now all pages are served from port 80 by Apache, the port 8080 from Tomcat should not be accessed by end-user. ...

mod_speling & mod_rewrite to work together?

CheckSpelling On RewriteEngine on RewriteCond %{HTTP_HOST} ^([^.]+)\.site\.com$ RewriteCond /home/%1/ -d RewriteRule ^(.+) %{HTTP_HOST}$1 RewriteRule ^([^.]+)\.site\.com/media/(.*) /home/$1/data/media/$2 RewriteRu...

Does mod_mono need xsp to work or to work better?

I run an apache 2.2 web server to serve asp.net web applications with mod_mono. It works fine. But mono-xsp2 service running too.. Does mod_mono need xsp to work or to work better? I am asking that because xsp-server start running automatically on boot time. And I couldn't be sure if it is needed or not. Here is a screenshot of the p...

apache server configurations proxy

Hi friends; i have configured my apache instance to delegate requests to a application running on tomcat container. lets say my URL for tomcat container is http://localhost:8014/accounts I want to access this URL from http://localhost Now the configuration in vertual host, i have made to access this is ProxyPreserveHost On Pro...

How to do URL rewriting

Hi all, I am very new to httpd server. And i have a immediate problem to solve. My server instance is running on centos box. If a request comes to my server as http://sub-domain.domain.com This should be translated to http://domain.com/key/sub-domain I have configured many virtual host on my server. But this is quite a cas...

jquery on localhost

I am using Linuxmint (= ubuntu linux 9.10) I installed LAmp server which have apache,php mysql and now i am trying to write jquery code i made a file and it worked perfectly with this link : file:///var/www/jquery/jquery.html but when i use this link, then it doesnt work anymore : http://localhost/jquery/jquery.html the file jquery.min...

Correct owner/group/permissions for Apache 2 site files/folders under Mac OS X (10.6)?

It's hard to find Mac-specific answers to this question on the web, so I'm hoping someone out there can put this one to rest for me? My permissions are screwed up on my sites and I'm not sure how to fix them without just slamming a recursive 777 on everything which is quite obviously incorrect. Thanks! ...

How to enable mod_proxy_ajp for Apache 2.2.14?

I have Apache 2.1.14 installed and running in production - due to a new requirement, I need to start using the module mod_proxy_ajp. Running the './httpd -l' script does not show the compiled module 'mod_proxy_ajp'. Is there a way I can enable mod_proxy_ajp withough having to recompile the Apache instance? Thanks. ...

how to proxy a localhost only webpage through a publicly facing authenticated webpage?

I have a web application that requires user authentication. Once logged into this web application I want the users to also be able to see the content of a read only wiki that is running on the same server but is not publicly accessible, however I do not need/want to have the users of my web application to have accounts on that wiki, and...

Plone with Apache Proxy

I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance: ProxyPass / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/Virtual...

How can I configure Apache2/mod_python/Django to abort request processing after N seconds?

I recently spent a long while debugging something that turned out to be an infinite loop bug in my own code. Since I can't guarantee I'll never make that sort of mistake again, how can I configure my web server to terminate any apache2 subprocess that remains waiting for my python app to return a response for over N seconds? In this cas...

Rails app Hangs and Ruby uses 100% CPU

I have an apache2 server running Phusion Passenger. On this machine I have two virtual hosts setup each look like this (path's are different for the 2nd virtualhost...but other directives are the same) ServerName beta.mysite.us DocumentRoot "/var/www/beta/mysite/public" <Directory "/var/www/beta/mysite/public"> RewriteEng...

Understanding apache RewriteLog

I'd like to understand the output from RewriteLog in apache2. I have something like ...... (3) applying pattern '^/img(.*)' to uri '/api/marker/2' ...... (3) applying pattern '^/img/imagecache/(.+)' to uri '/api/marker/2' ..... (1) pass through /api/marker/2 .....

filesize function is crashing the Apache server

Hi all, On using filesize is PHP is crashing the apache server. No error is seen in the log file but window event viewer shows Faulting application Apache.exe, version 2.0.63.200, faulting module php_iisfunc.dll, version 5.2.7.7, fault address 0x00001085. regards Hemant ...

jmeter multiple users problem

We are using Jmeter to test our Php application running on the Apache 2 web server. I can load up Jmeter to use 25 or 50 threads and the load on the server does not increase, however the response time from the server does. The more threads the slower the response time. It seems like Jmeter or Apache is queuing the requests. I have ch...

Amazon EC2 php/fedora htaccess mod_rewrite not working

Amazon EC2 with Fedora, there are 2 instances of the httpd conf, the doc root is automatically set as /home/webuser/helloworld/conf/httpd.conf and the default (which is also there) is /etc/httpd/conf/httpd.conf . Mod rewrite is enabled with both, we are in drupal, the .htaccess is in the folder it needs to be (on Drupal) and it loads t...