Limit number of concurrent connections in Apache2
Is there a way I can limit the number of concurrent connections to the Web Application running on my Apache Server. My server version is Apache 2.2.11 ...
Is there a way I can limit the number of concurrent connections to the Web Application running on my Apache Server. My server version is Apache 2.2.11 ...
I have a rewrite rule of the following form: RewriteRule ^foo/([a-zA-Z0-9]+)$ foo.php?arg=$1 [qsa,nc] It takes urls of the form /foo/bar and changes them to /foo.php?arg=bar It works properly locally, and it works on my old host but I moved to a new host (running ubuntu) and it behaves differently. On the new host apache notices that...
I am running Redmine on Apache 2 with mod_rails (passenger) 2.0.3 and Enterprise Ruby 1.8.6. Every so often I get a segfault from Apache when I try to login. Anyone know how I can debug this issue? I see something like this in Apache's error.log: [Mon Jan 19 17:09:48 2009] [notice] child pid 8714 exit signal Segmentation fault (11) The...
I'm using Apache2, Ubuntu 8.10. Currently Apache is logging the gateway's IP as the host ip, what do I have to do to get it to log the remote client's IP address instead? Is this even possible, or does the NAT router "lose" it for good? Update: It actually looks like it's only logging the gateway's IP for addresses from within the net...
I have two Apache servers running PHP. One accepts forward-slashes in the query string and passes it along to PHP in the expected way, for example: http://server/index.php?url=http://foo.bar works and in PHP this expression is true: $_REQUEST['url'] == "http://foo.bar" However, in the other Apache server, the same URL results in a ...
I've been trying to switch from using PerlSetEnv to using custom configuration directives. I have my configuration module with a copy of set_val from the docs: sub set_val { local our ($key, $self, $parms, $arg) = @_; $self->{$key} = $arg; unless ($parms->path) { local our $srv_cfg = Apache2::Module::get_config($se...
Is there a way to get this functionality under mod_perl2? And can it be triggered via web requests as opposed to the command line? Or do I need to fake whatever $ENV variables and query strings and cookies that my script requires and use the command line somehow? Google and CPAN searches all seem to point to things that either don't e...
I've got apache2.2 on windows. I'm trying to serve both subversion (/svn) and redmine (/redmine). I have svn running fine with this config: <Location /svn> DAV svn SVNParentPath C:/svn_repository ... </Location> This is working great--my svn users can hit http://mybox/svn just fine. Now I want to add another directory for a rai...
I have Apache/SVN running on Windows 2003 with authentication via LDAP/Active Directory and a flat-file. It's working great except that any LDAP user can access everything. I'd like to be able to limit SVN repos by user or group. Ideally, I'd get to something like this: <Location /svn/repo1> # restricted to ldap-user1, file-user1, o...
What's the most efficient and logical way to order sections of a .htaccess file? ...
I'm using SVN through Apache with dav_svn_module like this: <Location /svn> DAV svn SVNParentPath C:/svn_repository AuthName "Subversion Repository" ... </Location> This lets me access my repos: C:/svn_repository/repo1 C:/svn_repository/repo2 C:/svn_repository/repo3 via these URLs: https://examples.com/svn/repo1 https://ex...
I have a highly trafficked application on one debian machine and apache has started acting strange. Every time I start apache, tons of apache processes are spawned, the app doesn't load at all, and very quickly the whole machine freezes and must be powercycled to reboot. Here is what I get for top immediately after starting apache: ...
Any recommendations or best practices for mapping a subdomain to a Wordpress page: http://my-page.mydomain.com -> http://mydomain.com/my-page I don't want to do a redirect either, just keep the original subdomain URL until a different link is click, and then the subdomain is removed. I'm using Apache 2 with mod_rewrite, wordpress 2.7...
My primary language is PHP, but I have done some (not very much) programming in other languages. I've written 2 modules for Apache in C. I wrote them in C because this was one of the things where performance did matter. (generating projected maps of the world on the fly and output to .png). These modules work, and that's as far as I ca...
I have a sub domain that I want to redirect to a different location using mod_rewrite. For example: subdomain.example.com -> www.example.com/subdomain I don't want to send a redirect to the browser though (so it doesn't know the page is different). BTW subdomain.example.com has a CNAME record pointing to example.com. Edit Another ex...
I'm running Ubuntu 8.10 and I've installed the necessary packages as fast as I can tell. Under System > Administration > Services I see "Webserver (Apache2)" on the list. Googling around suggested that there might be a problem with the /etc/hosts file not having a line reading "127.0.0.1 localhost", but I checked the file and it's ther...
Using the apache2 C api, I have created a child_init callback (registered through ap_hook_child_init) that is supposed to set up a per-process resource when the server is first started. Then, as each request comes in through the handler (registered through ap_hook_handler) I want the handler to look up that resource for its own use. Cur...
Hi Folks, I'm fairly new to ruby on rails and web development. Here is my setup which I followed from this link http://tonyrose023.blogspot.com/2007/01/multiple-rails-apps-with-mongrel.html I run multiple rails applications on Apache2 with Mongrel clusters. http://services.abc.edu/app1 http://services.abc.edu/app2 http://services.abc.ed...
I have copied the files and database from BradPPresents.com to BradP.com. The .htaccess file is required to get pages to display properly since "Pretty URLs" are enabled by joomla!. You can see that the database and all connections are working at http://bradp.com/index.php, however http://bradp.com/home.html does not work as it relies...
Using Apache2 on a Linux system is there a way to have multiple VirtualDocumentRoot using mod_vhost_alias? This is naming convention I am currently using and would like to continue to use: host directory 127.0.0.1 domain domain.com 127.0.0.1 sub.domain domain.com_sub Then in my vhosts section of the httpd...