apache

Wordpress problem language

okay on our testing server the language works fine whetter your click it twice or more but when transffered onto the clients server bugs occured... to see the bug click on "FR" top left (it's now on French) once click on "EN" (it stays in french click it again and it gives you a page with no style saying page not found) . I've been over ...

Improving a Python Script that Updates Apache DocumentRoot

I'm tired of going through all the steps it takes (for me) to change the DocumentRoot in Apache. I'm trying to facilitate the process with the following Python script... #!/usr/bin/python import sys, re if len(sys.argv) == 2: f = open('/tmp/apachecdr', 'w') f.write(open('/etc/apache2/httpd.conf').read()) f = open('/tmp/apachecdr',...

Apache: reverse proxy to process PHP from another server

I have the following setup: Plain-Server: Delivering php-files as plain text Proxy-Server: Asking the Plain-Server for the php file and parsing it. Now my question: How do I configure the Proxy-Server (a fully configurable apache 2.2 with PHP 5.3) to interpret the plain php files from Plain-Server? Example: Given a small php script ...

Apache vs Twisted

I know Twisted is a framework that allows you to do asynchronous non-blocking i/o but I still do not understand how that is different from what Apache server does. If anyone could explain the need for twisted, I would appreciate it.. ...

Is there a way to find out if a server supports mod_rewrite & .htcaccess

Is there a way to find out if a server supports mod_rewrite & .htcaccess ...

How do I stop getting ImportError: Could not import settings 'mofin.settings' when using django with wsgi?

I can't get wsgi to import my settings file for my project 'mofin'. The list of errors from the apache error log are as follows mod_wsgi (pid=4001): Exception occurred within WSGI script '/var/www/wsgi-scripts/django.wsgi'. Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 2...

Mapping folder to a different server via htaccess

Our website currently servers images from a website.com/images/ folder. Thing is we have limited bandwidth on that server and the images are sucking it up. We have another server with a lot more free bandwidth. Is there any way to maps /images/ to goto the other server where we'll upload that folder? This would save us from needing to...

Managing concurrent access to an Apache Derby database

Hi, I have an Apache Derby database running (in networked mode) inside a java swing application, I connect to it through direct JDBC calls via a java client application. This is all very good and works great however I know have an additional requirement to implement concurrent licenses for this client/server application. Ideally a user...

Listing Apache Derby Active Connections

Is it possible to query apache derby for a list of current connections/active sessions? Any system tables etc? thanks, Phillip ...

Has anyone installed a Tomcat client on OSX

I work in a design shop the does most of our back end work on apache servers running php. We have a job where we need to set up a very basic project using JSP to generate some html templates for a client. I work primarily on OSX, what's the best way to get a local apache tomcat server running on my local machine? I'm looking for a s...

Simplest way to inject google anayltics tags into arbitrary pages?

I have a directory full of hundreds, if not thousands, of html and PHP files that I'm hosting for a client. They currently include no google analytics tracking tags, but we'd like to add them -- ideally without actually modifying the files themselves. What's the best way to do this? I'd imagine I'd want to redirect all requests for *....

mod_rewrite to redirect /index.whatever to / isn't working

I want to redirect all requests for index.html|php|php5 to http://www.domain.co.uk/ using mod_rewrite and I've copied the code from a book on search engine optimization with PHP verbatim, then added in the php5 option, but it isn't working. This is my complete .htaccess file: RewriteEngine On #translate any .html ending into .php5 Rewr...

htaccess Redirect from subdomain to domain

I'm re-working a site and I'm attempting to move a forum from a subdomain (board.example.com) to the primary domain where the path will be example.com/index.php/forums/ I've set up my htaccess file like so: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteRule ^(.*)$ http://www.example.com/index.php/forums/ [R=301...

Is there an open source alternative to the stackoverflow model?

Hello, I'm interesting in creating a web site similar to stackoverflow. As I'm usually interested in OSS I'd like to know if someone knows about the existence of other Q&A sites whose sources are licensed under an open-source license (not interested which license as long as I can use it - GPL, Apache, BSD, MIT ...). Thank you, Iulian ...

Using .htaccess and mod_rewrite in a directory (not root)

I have a site that sits in a directory on a domain: http://www.example.com/site/ I also have an .htaccess file in /site/ which has several rewrite rules. These rules work if all the files (including the .htaccess file) sit on the top-level of the domain: e.g., at www.example.com. My .htaccess file looks something like this: Rewrite...

Apache mod_rewrite going berserk - redirecting where it shouldn't

I have a script that echoes a meta redirect to a page called account_management.php5, but for some reason it automatically redirects from there to index.php5. My .htaccess file handles a couple of redirects automatically, for example index.html|php5 to the domain root, and that's the only place I can see this problem originating, but I d...

How can I set up Juno on apache with FCGI?

Hello, I have an Apache server with mod_fcgi and I made a project with Juno, which I'd like to run on it. Juno says it supports flup for fcgi but I can't find any info on that, has anyone used it/set it up? Can it be done with server-spawned processes, like with Django? ...

Should I user Apache or Nginx & Passenger or Mongrel for my Rails application

Hello, I have a Ruby on Rails application that will be a CMS in way which means it's mostly DB intensive. I expect it to have decent amount of traffic so before designing I'm choosing what servers to use. Most important for me is performance. I heard good things about Nginx and many developers in the Rails community recommends it my on...

Apache-httpd processes die with segmentation fault on deployment

Hi, I'm running Rails 2.3.3 application which is deployed with passenger/mod_rails with ruby-enterprise-1.8.6-20090610 and apache httpd. The problem is that whenever I deploy our application, hundreds of httpd processes start dying. I'm getting this error: [notice] child pid NNNNN exit signal Segmentation fault(11) After a short p...

Apache Rewrite does not redirect

I'm having an odd issue where, according to Javascript (in Chrome), all of the strings I tested match the Regex I have for a RewriteRule, but not all of them redirect properly. My patterns are (in this order): ups/sections/([A-Za-z]{3})/([A-Za-z0-9_+.-]+)$ ups/([A-Za-z_+.-]+)$ and the files I tested are: (marked with + for a successf...