apache

Django + dbxml + Apache = problems. Any solutions?

I'm trying to set up a Django application using WSGI. That works fine. However, I am having some issues with part of my Django app that uses BDB XML. My Apache config is as follows: Listen 8000 WSGISocketPrefix /tmp/wsgi <VirtualHost *:8000> ServerName <server name> DocumentRoot <path to doc root> LogLevel info WSGIScr...

In apache, if i go to https://mysite.com, the page itself is over https, but all images/links are http://. Is there way to auto rewrite the html so its all https://?

Hi, Im sure ive seen a feature in apache that can rewrite urls so you can point domain2.com at domain1.com and it rewrites everything domain1.com to domain2.com on the fly. is there a similar thing for https? In apache, if i go to https://mysite.com, the page itself is over https, but all images/links are http://. Is there way to auto ...

What does the error message "all endpoints are disconnected" mean from mod_jk

Does anyone know the meaning of the info message "all endpoints are disconnected, detected by connect check (1), cping (0), send (0)" This occurs with some regularity in my mod_jk log, but I can't find information about whether this is a problem, or just something to ignore. ...

Removing .php with mod_rewrite

I want to rewrite all my URLs to hide the .php extension. A general rule that adds .php to all URLs obviously won't do, so I want this rule to be conditional on the fact that There is no file nor directory that matches the URL After adding the .php, there is a match I've arrived at these rewriting rules: RewriteCond %{REQUEST_FILENA...

how to detect that localhost web site is closed and then shout apache web server

Hello all i need to find away to stop/terminate apache web server that is running on my local pc when i close the site that is running in my local pc (for example http://localhost:8080) or when i close the browser that display/load the localhost site that the local apache web server is running . what is the preferred way ? ...

Can Apache serve a default file instead of a 404?

We have Apache serving a set of files from a particular directory. If a file requested in that directory does not exist, can I make Apache return a default file - instead of a 404? If so, how? ...

How do I integrate SAML into my Rails Application?

I have a rails app that is currently an affiliate site with my customer's SSO Identity Provider. Currently it uses the CA SiteMinder Affiliate Agent, which is an apache module. The underlying SSO architecture is abstracted away and my Rails app only has to parse and HTTP Header to receive the values from my customer's Identity Server. ...

How to manage Tomcat 6 libraries into subfolders under %TOMCAT_HOME%/lib?

I use Tomcat 6.0.20 and JDK 1.6.0.13. How can I load libraries from sub-folders of "%TOMCAT_HOME%/lib/" without taking the .jars out of sub-folders and putting them straight into "%TOMCAT_HOME%/lib/"? The reason I want to do this, is because many apps are going to be sharing lots of libraries. So, for the sakes of organization I want ...

RewriteRule with string starting "http://"

Hi, I'm having problems working out how I can do the following using htaccess: http://isitup.org/http://example.com => http://isitup.org/example.com I think the problem is the second double slashes, but I can't think of a solution. Here's my current (failed) attempt: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME...

XAMPP on Flashdrive cannot start Apache, MySQL on Windows 7

XAMPP is unable to start Apache or MySQL on a windows 7 system when run from a flashdrive. The control panel indicates that the server is starting, but it never actually comes online. Additionally, the control panel process refuses to end; Task Manager end tasking is required to make it stop. Is there a specialized setting either in X...

Better Understanding of Web Proxies for php and javascript

I am trying to develop a analytic s project. My goal is to let a owner of x-domain be allowed to copy and paste a small snippet of javascript includes on to their site, from my server. That will be able to analyze the end users experience on their site. Given that my server is php, and I will sending and recieving data larger then the b...

Voting mechanism with IP validation and allowing only one by user: problem in getting user IP address with two app servers and apache in front.

Hi there. We have a voting mechanism that we want to restrict to only allow one vote by user. We've tried to validate by IP address, but the problem is that when we get the user's IP address in the applicational server it shows always the apache IP address (we have two applicational servers with apache in front of them). We are using ...

Apache - Ubuntu desktop edition 9.04

Not Found The requested URL / was not found on this server. Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch Server at localhost Port 80 Am getting this error while am accessing http://localhost/ Apache,phpmyadmin and mysql running fine. Bugzilla3 also working fine Need some help to change the listening port for bugzi...

changing php.ini settings on heart internet

I am trying to upload large files through my cms and was wondering how to change the php.ini file for heart internet. Is this possible in shared hosting, if not are there any other work arounds? Thanks in Advance ...

Apache: RewriteRule leads to segfault

I use a RewriteRule to replace all spaces (aka %20) in my URLs by underscores: RewriteRule (.*)[\ ](.*) $1_$2 [N] The [N] flag starts the rewrite process again, until no space is left (hopefully). Now, all is well, when there is a file waiting at the other side, i.e. request: /This is an example.html and file: This_is_an_example.h...

Why does Perl complain about "Use of uninitialized value" in my CGI script?

I am cleaning my Perl code for production release and came across a weird warning in the Apache error log. It says: [Thu Nov 5 15:19:02 2009] Clouds.pm: Use of uninitialized value $name in substitution (s///) at /home/mike/workspace/olefa/mod-bin/OSA/Clouds.pm line 404. The relevant code is here: my $name = shift @_; my $nam...

How do I suppress the default apache error document in mod_perl?

I'm developing a RESTful API and I wrote a mod_perl2 handler that takes care of the request. My handler deals with error codes by setting $r->status($http_code) and return $http_code; Everything is fine, except a little problem: when my http_code is different than 200 (for instance 404), apache appends a default HTML error document to ...

Proxy URL without authentication

I have an Apache web server with basic authentication enabled at the root directory. I can't change this due to business restrictions. However, we want a particular URL to be a proxy to a different site, with different authentication, without being asked for authentication by the main site. Example: My site is http://foo.com/ If you g...

How do I get mod_rewrite to work in my home directory?

I have my PHP files stored under FreeBSD under this directory: /home/david/public_html/code/php In my browser, I access them through this URL: http://192.168.6.7/~david/code/php And I have an htaccess file to rewrite URLs: RewriteEngine on RewriteRule ^test test.php But when I go to http://192.168.6.7/~david/code/php/test in my ...

How do I redirect to my same URL without getting a too many redirects error?

I need to redirect users from http://myurl.com/Login.action to http://myurl.com/app/Login.action I tried this but I get an error saying I get too many redirects. RedirectMatch ([A-Za-z]*)\.action$ http://myurl.com/app/$1.action How can I get apache to redirect to the same URL but only redirect once. Would something like this work? R...