apache

Cleanest & Fastest server setup for Django

I'm about to deploy a mediumsized site powered by Django. I have a dedicated Ubuntu Server. I'm really confused over which serversoftware to use. So i thought to myself: why not ask stackoverflow. What i'm looking for is: Easy to set up Fast and easy on resources Can serve mediafiles Able to serve multiple djangosites on same server...

Why can't I connect to my CAS server with Perl's AuthCAS?

I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the AuthCAS Perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my script returns with the following error from the IO::Socket::SSL module: 500 Can't co...

How do I support SSL Client Certificate authentication?

I want to do what myopenid does -- once you've logged, you can click a button that generates you an SSL certificate; the browser then downloads this certificate and stores it. When you later go back to yourid.myopenid.com, your browser can use its stored certificate for authentication so you don't ever need a password. So my questions ...

Difference between the Apache HTTP Server and Apache Tomcat?

What is the difference in terms of functionality between the Apache HTTP Server and Apache Tomcat? I know that Tomcat is written in Java and the HTTP Server is in C, but other than that I do not really know how they are distinguished. Do they have different functionality? ...

How do I add a MIME type to .htaccess?

I would like to add the following MIME type to a site run by Apache: <mime-mapping> <extension>jnlp</extension> <mime-type>application/x-java-jnlp-file</mime-type> </mime-mapping> (That is the Tomcat format.) I'm on a shared host, so I can only create an .htaccess file. Would someone please specify the complete contents of such a...

Setup django with WSGI and apache

I have been sold on mod_wsgi and apache rather than mod_python. I have all the parts installed (django, apache, mod_wsgi) but have run into a problem deploying. I am on osx 10.5 with apache 2.2 and django 1.0b2, mod_wsgi-2.3 My application is called tred. Here are the relevant files: httpd-vhosts (included in httpd-conf) NameVirtual...

Apache - how do I build individual and/or all modules as shared modules

On Mac OS X 10.5 I downloaded the latest version of Apache 2.2.9. After the usual configure, make, make install dance I had a build of apache without mod_rewrite. This wasn't statically linked and the module was not built in the /modules folder either. I had to do the following to build Apache and mod_rewrite: ./configure --prefix=/usr...

Getting an error when starting WAMP - "VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results"

I'm running WAMP v2.0 on WindowsXP and I've got a bunch of virtual hosts setup in the http-vhosts.conf file. This was working, but in the last week whenever I try & start WAMP I get this error in the event logs: VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with ...

What's the difference between DOCUMENT_URI and URI_REQUEST in SSI?

When looking at a SSI printenv dump I see a variable URI_REQUEST. When reading the Apache mod_include docs I see DOCUMENT_URI which they define as "The (%-decoded) URL path of the document requested by the user." Anyone know the difference between the two? TIA. ...

Getting Apache to modify static webpages on the fly

I have been experimenting with woopra.com A web analytics tool. Which requires a piece of javascript code to be added to each page to function. This is easy enough with more dynamic sites with universal headers or footers but not for totally static html pages. I attempted to work round it by using a combination of Apache rewrites and S...

square brackets in URLs

Are square brackets in URLs allowed? I noticed that Apache commons HttpClient (3.0.1) throws an IOException, wget and Firefox however accept square brackets. URL example: http://example.com/path/to/file[3].html My HTTP client encounters such URLs but I'm not sure whether to patch the code or to throw an exception (as it actually shoul...

Testing HTTPS files with MAMP

I am running MAMP locally on my laptop, and I like to test as much as I can locally. Unfortunately, since I work on e-commerce stuff (PHP), I normally force ssl in most of the checkout forms and it just fails on my laptop. Is there any easy configuration that I might be missing to allow "https" to run under MAMP? Please note, I know that...

Apache serving files that should not be served.

This is so strange. Today I discovered that my fresh installation of Apache HTTP Server is able to serve files from my C:\uploads\ directory. I have two folders in c:\uploads: c:\uploads\templates c:\uploads\sites Both folders contain testimage.jpg. I found that Apache will serve the files from the templates folder if I request - ht...

Kerberos user authentication in Apache

Hi, can anybody recommend some really good resources for how to get Apache authenticating users with Kerberos. Background reading on Kerberos would also be useful Thanks Peter ...

Best way to rotate Apache log files

I've got an Apache server that has one access log file that is topping 600MB. This makes it really hard to search the file or parse it. What software or modules for Apache are available that will make a daily copy of my access file to make it more manageable? ...

How do you make an etag that matches Apache?

I want to make an etag that matches what Apache produces. How does apache create it's etags? ...

apache mod_proxy error os10060 and returning 503?

Can't get to my site. Log Message: [Fri Sep 05 08:47:42 2008] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : proxy: HTTP: attempt to connect to 10.10.10.1:80 (10.10.10.1) failed ...

Best way to compress HTML, CSS & JS with mod_deflate and mod_gzip disabled

I have a few sites on a shared host that is running Apache 2. I would like to compress the HTML, CSS and Javascript that is delivered to the browser. The host has disabled mod_deflate and mod_gzip, so these options are out. I do have PHP 5 at my disposal, though, so I could use the gzip component of that. I am currently placing the foll...

Problem with Oracle Application Server SSL Certificates

Hi, We've got an Apache instance deployed through Oracle Application Server. It's currently installed with the default wallet, and, the self-signed certificate. We've got a GEOTRUST certificiate, imported the Trusted Roots and imported the new Cert to the Wallet Manager. We've then updated the SSL properties of the VHOST and the HTTP_SE...

Apache rewrite based on subdomain

Im trying to redirect requests for a wildcard domain to a sub-directory. ie. something.blah.domain.com --> blah.domain.com/something I dont know how to get the subdomain name to use in the rewrite rule. Final Solution: RewriteCond %{HTTP_HOST} !^blah\.domain\.com RewriteCond %{HTTP_HOST} ^([^.]+) RewriteRule ^(.*) /%1/$1 [L] Or as p...