apache2

Weird Apache2.2 SVN error, "Expected repository format '3' or '5'; found format '9'"

I've had a repo that I would access, using TortoiseSVN, from only the same computer on which the Subversion win32 service was running, and it's been working for a while now. I decided to try to set up mod_dav_svn to be able to get at it from elsewhere. When I try to access it, I get this error in the browser: <D:error> <C:error/> <m:h...

mod_rewrite help

Im trying to set up a simple rewrite rule but I dont seem to be able to get it to work. Basically I want to route any address that starts with "restaurants" to a certain place and all other addresses to my bootstrap. RewriteRule ^/restaurants http://www.google.com RewriteRule !^/restaurants index.php is what I have so far. ie. mysite...

Apache2 Reverse Proxy to an end-point that requires BasicAuth but want to hide this from user

Basically my scenario is that I have an internal website that requires a SINGLE hard-coded username and password to access (and this can't be turned off, only changed). I am exposing this website through a reverse proxy for various reasons (hiding the port, simplifying url, simplifying NAT, etc). However, what I would like to do is be ...

Apache/PHP closes connection after short time (12 secs)

I am getting a peculiar problem. Apache closes connection after 12 seconds or so. This leads to a "connection reset by peer" message on the browser. I am on Linux Centos 5. Using apache2/php5.x/mod_gzip. (php with eAccelerator) I tested some variations: Usually, I will print all the HTML output as the last step. It always closes conn...

Apache2 - authorize users against a Location using BasicAuth but ONLY for users outside local subnet

In my Apache 2 config I have a VirtualHost which looks something like this: <VirtualHost *:80> ServerName sub.domain.com # username:password sent on to endpoint RequestHeader set Authorization "Basic dXNlcm5hbWU6cGFzc3dvcmQ==" ProxyPass /xyz http://192.168.1.253:8080/endpoint ProxyPassReverse /xyz http://192.168.1.253...

Setting up Django with mod_python, Apache on SuSE with Alias

Hello guys, I'm having major problems getting Django working with my Apache configuration. I did not create the server, so I don't have too much leeway as to how the server works. Essentially there are three virtual hosts: board.site.org, students.site.org and insider.site.org The insider.site.org is the main one I'm concerned with. ...

Maxmind geolocation apis: Apache vs PHP

I am looking to implement a very basic country limiting on my site based on the Maxmind geoip database (free version). Basically, I want to limit all users of the site to one country only. What I'm wondering is: is there any performance gain using the Apache API versus the PHP API? I want to be able to use the country code for more th...

Way to write vhost for same subdomain across multiple domains?

I've got several domains setup in /etc/apache2/sites-enabled: domain1.com domain2.com domain3.com I need to setup webmail.domain*.com for each one. I can do this with individual vhost files for each, but is there a way to write a wildcard vhost to be caught by all domains? Also, the same directory should be served by all webmail.*.co...

Why can't I disable .htaccess in Apache?

This is the opposite problem from most about which I have read. I am running Ubuntu 8.04 on an Amazon instance with Apache 2.2.8 and I can't figure out why setting AllowOverride to None for root doesn't stop my .htaccess file from being included. I have a sub-directory with hello.py in it and an .htaccess file. When I browse to the file...

json post request size limit (now a verified php-mysqli bug)

I'm sending a request to my PHP application through a JSON-encoded ajax request (form process). A post-request with character length of 4174 is successfully processed and the result is received correctly. Adding one additional character to the request causes my application to loop infinitely until Apache2 seg-faults. There are only 2 ...

mod_rewrite depends on what other modules?

proxy? proxy_http? what else? When I include all of the available modules, rewrite works, but I'm having a hard time figuring out which ones are actually making the difference. I just learned about this today and I'm not entirely sure how it all works, so if you need more information than that, let me know. Thanks! ...

Hosting Multiple Domains on Same Server Port with Apache2

How do I configure Apache2 via webmin or command-line (I'm using RHEL5 Linux) so that I can have multiple domains on the same server on the same port but in different subdirectories? For instance, trying to get homerentals.ws and homerepair.ws to be detected on port 80 (default port) on the same server. I know that my DNS holds the two ...

Apache2 not sending "Content-Type" in header

Hello. I have a standard Apache2 installation on Ubuntu. I was trying to get mod_deflate to work, which it does, but noticed it was not gzipping my .js files. A closer inspection revealed that apache isn't sending Content-Type: for anything other than .php files. For them it's sending "text/html," which is strange since DefaultType i...

tortoisesvn - Error REPORT request failed on ../../../!svn/vcc/default

Users attempting to check out files from a particular Subversion 1.4.x repository with Apache 2.2 on Windows 2003 have suddenly begun getting an error message in their log windows upon checkout with TortoiseSVN 1.4: Error REPORT request failed on '/[path_to_repo]/!svn/vcc/default' Error REPORT of '/[path_to_repo]/!svn/vcc/default': 200 ...

Another Hosting Question: Linux, Apache2, PHP5, PostGreSQL 8.3

Hello SO, I'm hoping that someone will be able to recommend a good hosting company that provides the following environment. I know that I could just google for one, but I'm asking here first because I'm looking for someone that has previous experience working with such a company. Linux Box. Apache 2.0. PHP5 (5.2.6 to be exact). PostG...

Windows loginID help on Windows/Apache2.2 environment

Hello Apache/Win Masters: I really could use some help in solving what appears to be a trivial issue. In summary, I want to know the Window's loginID for the user accessing a Perl .cgi running in Apache on a Windows environment. Here's my basic Apache2 conf additions: ---- begin httpd.conf ----- ... LoadModule sspi_auth_module modu...

Apache: SSI inside SSI

Is there a way I can include include files inside include files? (Say that five times fast!) For example: Inside index.html: <!--#include virtual="/include-1.shtml"--> Inside include1.shtml: <!--#include virtual="/include-2.shtml"--> So the tree looks like this: index.html <-- include_1.shtml <-- include_2.shtml As is, this is n...

How to use apache2.3 mod_auth_form module with IBM Http Server 6.1

I want to use Apache's mod_auth-form module with IBM HTTP Server 6.1 (which is based on apache) but this module will be released with apache http server 2.3. The source code for this module is available in development trunk. I haven't build/compiled any apache module. Can anyone let me know if it is possible to compile the mod_auth-form...

LocationMatch and DAV svn

Hi, I am trying to make our subversion repository accessible via multiple URLs. To do so, I was thinking to use the LocationMatch directive. My configuration is: <Location ~ "/(svn|repository)"> DAV svn SVNPath /opt/svn AuthzSVNAccessFile /etc/subversion/access </Location> The above configuration does NOT work ... Strange thing...

Apache on windows server can't write to file

We have installed Apache 2.2 on a windows server 2003. We want to make apache able to write to files on the disk but we don't know as what user Apache works as. How do we allow Apache to write to files on a Windows server 2003? BR Larre UPDATE: The user is running as 'SYSTEM' and we have tried giving that user full permission to all ...