apache

Apache mod_rewrite RewriteRule question

I have this RewriteRule that works too well :-) RewriteRule ^([^/]*)/$ /script.html?id=$1 [L] The bad thing about this rule is that it also matches physical directories which I don't want. How can I tell the mod_rewrite to ignore physical directories and apply the above rule only when the directory matched does not exist? Thanks in a...

gss_acquire_cred returning Key table entry not found error

I have been trying to follow the guidelines in this Microsoft article to authenticate against Apache with Kerberos and AD. I have successfully tested the communication between the apache server and the AD server with kinit. However when I attempt to access a restricted page on the server with IE I get an Internal server error and the fo...

Incorrectly set up APC for PHP?

I decided to install APC to speed up the site that I work for. Sadly, I found out that it was already installed and enabled(The developer who first worked on the servers has moved on). Then I decided to check the usage of it to see if it needs more memory allocated to it or not. This is when I discovered something weird. A simple file w...

Preferred protocols to upload static files to your Apache server ?

Hello!If you were the administrator of an Apache web server, what protocol(s) would you prefer to provide, for the web developers to upload static files (html/gif/css/...), with the goal of maximum security ? If you were the web developer/graphic designer, what protocols would you prefer to be available at the Apache server, to upload st...

Securing DB and session-data on a PHP shared host

I wrote a PHP web-application using SQLite and sessions stored on filesystem. This is functionally fine and attractively low maintenance. But, now it needs to run on a shared host. All web-applications on the shared host run as the same user, so my users' session data is vulnerable, as is the database, code, etc. Many recommend stori...

Apache rate limiting options

What techniques and/or modules are available to implement robust rate limiting (requests|bytes/ip/unit time) in apache? ...

Why do my hot-deployed files disappear sometimes? (I think Apache eats them)

Here's my situation: Windows Server Apache CruiseControl The last step of my CruiseControl deploy scripts copies the build to Apache's htdocs folder, in a "demos" folder (I believe this is referred to as a "hot deploy"?) All is good and dandy, except that SOMETIMES (not common, but it happens enough that it bugs me), the demos folde...

What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application?

What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? Are there any performance considerations? How would this compare with the native integration between Apache httpd and Tomcat? ...

Running subversion under apache and mod_python

My Apache server runs on some non-default (not-root) account. When it tries to run a python script which in turn executes a subversion check-out command, 'svn checkout' fails with the following error message: svn: Can't open file '/root/.subversion/servers': Permission denied At the same time running that python script with subversion...

How do I serve a script with apache instead of running it?

I'm trying to host a python script using an apache web server, but the server tries to run the script instead of just offering it for download. I do not have direct access to server, and adding the line AddType text/plain .py to .htaccess in the root folder does not appear to work, though I could be doing something wrong. How do I g...

Compressing HTTP request with LWP, Apache, and mod_deflate

I have a client/server system that performs communication using XML transferred using HTTP requests and responses with the client using Perl's LWP and the server running Perl's CGI.pm through Apache. In addition the stream is encrypted using SSL with certificates for both the server and all clients. This system works well, except that ...

finding apache build options

I need to rebuild an apache server, but the original source is no longer available. Is there any way ( command line switch to httpd? ) to get the build options which were originally used? ...

Apache Redirect only when entering a password

I setup phpMyID on one of my machines, and I'm trying to get apache to redirect to HTTPS only when a password is being submitted. I am doing this as my original setup of redirecting all openid traffic didn't work stackoverflow doesn't like my self signed certificate. This is the new rule I've written, but its not working: RewriteRule ...

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to apache called site1.local, site2.local etc, and have them all resolve to localhost, while apache serves a different site accordingly. I am on Windows XP. I tri...

Multiple domains for one site: alias or redirect?

I'm setting up a number sites right now and many of them have multiple domains. The question is: do I alias the domain (with ServerAlias) or do I Redirect the request? Obviously ServerAlias is better/easier from a readability or scripting perspective. I have heard however that Google likes it better if everything redirects to one dom...

How can I use post-commit hooks to copy committed files to a web directory from SVN?

My Ubuntu server has Apache and Subversion installed. I use this server as a staging server, purely for testing purposes. I use Apache to host the web application, and Subversion to keep versioned copies of the source code. My current workflow: Make changes to a file Commit the file to the Subversion repository Upload the file new ove...

Disable caching of errors when using Apache as a proxy

When you having Apache proxying (using either ProxyPass or RewriteRule), if the destination returns an error (500 series status) then Apache won't proxy any more requests for 30 seconds. I know there's a way to disable this by setting that value to 0 seconds, but I can't remember how. I think it involves a semicolon and some options but ...

Do you have to restart apache to make re-write rules in the .htaccess take effect?

I have pushed my .htaccess files to the production severs, but they don't work. Would a restart be the next step, or should I check something else. ...

DocumentRoot in .htaccess is causing an error

I have DocumentRoot /var/www/test in my .htaccess file. This is causing the apache server to give me a 500 internal server error. The error log file shows: alert] [client 127.0.0.1] /var/www/.htaccess: DocumentRoot not allowed here AllowOveride All is set in my conf file. Any idea why this is happening? ...

What is the performance hit of using TLS with apache?

How much of a performance hit will running everything over TLS do to my server? I would assume this is completely ignorable in this day and age? I heard once that servers today could encrypt gigabytes of data per second, is that true? And if so, is it linearly scalable so that if top speed is 10GB/second, encrypting 1GB would take 0.1 se...