apache

Anyone know the Click Framework ?

I've been recommended the Click framework from Apache. But I can't find any forums talking about benchmark, reviews, advantages, disavantages, usefulness, ease of implementation, etc. I've been asked to use it to develop a web site, but I'm completly in the dark about its strengths and weaknesses. And its damn name isn't helping !! Cli...

mod rewrite URL

hi i how can i change my site URL using mod_rewrite my problem is when i open my site's admin section i have to write www.example.com/index.php/admin what i want is i directly open my site like www.example.com/admin please help thanks ...

Blocking specific extensions in htaccess

Hi, i have a directory: /files/archive.01.json /files/archive.02.json /files/archive.03.json /files/hello.php I need the .htaccess to block access to all .json files in that directory. Any ideas? ...

disabling Zend Framework

I'm using FreeBSD + Apache. How do I disable Zend Framework from running on a system? I prefer not to delete the entire software if I don't have to. Secondarily, how do I find out the version of Zend Framework I am using? I am refering to Zend Framework, the CMS. What would be my DocmentRoot directory? It seems to me that the Document...

Best way to stop Firefox pipe-lining from messing up my stats

I've noticed that my pageview counts are being messed up by the pipe-lining feature in Firefox. People who visit using Firefox with pipelining enabled count two (or more) times for each visit. What is the best way to detect or block these duplicate requests? I need to know how to block it on my server, not just how to disable pipeli...

vs.php remote database connection

Hi, I'm currently using vs.php on a development client. (vs.php is a php dev IDE that uses the visual studio shell). The problem is connecting to our remote sql 2005 database. The connectionattempt fails in less than 1 seconds. I can connect to the database with telnet without problem from the same client. The database is set to allow...

Getting destination and referer via .htaccess?

Hi! I want to write a .htaccess script that checks where a request is coming from and where it wants to end up. And depending on the result maybe do an action. For example, I want all scripts that are run from "/websites/{identifier}/" to pass a validation. If said script is trying to reach for a file or directory that is not in "/webs...

.htaccess and sessions for security?

Hi, In my application users have their own "websites" which can be reached if they are signed in. However, since these websites are just directories containing html and other documents everyone in the world can reach them if they know the address. I can't have that :) A user should be able to decide whether or not thw world might see t...

PyAMF backend choices!

I've been using PyAMF to write a backend for a flex app that will request different groups of hundreds of different images depending on what the client needs. I have been using the "simple_server" WSGI server that PyAMF supplies while developing the flex code. Now I'm ready to write a robust backend that will be able to pull images from ...

URL Segment Support macosx 10.6

Hi, does anyone knows how to activate URL Segment Support in Snow Leopard? I take I must add the AcceptPathInfo On directive to the httpd.config file in /private/etc/apache2 but I cant find the right way to do it. Should I set AllowOverride and go .htaccess instead? Any advice would be greatly appreciated, Thanks!. ...

Django dynamic content in VPS environment - when do I need a queue?

I've got some Django content that I plan to host on a vps, web facing. It dynamically generates images that are cached to disk (regeneration is not often needed except (1)user changes content within image or (2) the layout is updated globally so all images need regeneration) right now when a user requests a view, it checks to see if what...

Mcrypt installed but doesn't show up on PHPINFO

I think I managed to install mcrypt lib. The files are in place, but it looks like the library doesn't run at all. Tried to add: extension=mcrypt.so to PHP.INI; no good. Any help? ...

Where and how to set DYLD environment in Mac OS X

I'm in the middle a long quest, by now, trying to install mcrypt library to Mac OS X PHP (Previous questions here, here and here). I narrowed it down to a possible solution the includes setting a parameter in the DYLD environment (or something; I'm guessing here). Anyone has any idea where this environment is declared? Any help would b...

configure apache with sql

Hello, I am newly using Apache Tomcat6.0 I am unable to access sql database through my jsp and getting java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver Tried steps at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html downloaded drivers mysql-connector-java-5.1.9 and mysql-5.0.85-w...

Performance issue with Apache, PHP and Symfony~

Updated: ================================================================ I finally found the reason with oprofile. It was because the routing cache of Symfony. We have lots of pages with different urls and symfony caches them in one file (serialized data). So the cache file grows large and it needs more CPU to serialize and unserialize...

.htaccess Why access to a file is forbidden on localhost?

I want to allow access to a file (secret.txt) only from my ip. Below is the .htaccess I'm using. It works great at my provider's server. However, at my localhost this .htaccess does not allow me to access the file. <Files "secret.txt"> order deny,allow deny from all allow from 1.2.3.4 </Files> Where my external ip is "1.2....

Apache RewriteRule

Hi , I have an encoding problem, using the Apache rewrite rule below: RewriteRule ^/somethingx/somethingy/somethingx_somethingz(.*) /somethingx/somethingy/somethingx_somethingy/$1 [L,R=301] The Rewrite rule works fine but except it is encoding '?' characters in the request as '%3f' characters in the response. Does anyone know why th...

Can i limit apache+passenger memory usage on server without swap space

Hi, i'm running a rails application with apache+passenger on virtual servers that do not have any swap space configured. The site gets decent amount of traffic with 200K+ daily requests and sometimes the whole system runs out of memory causing odd behaviour on whole system. The question is that is there any way to configure apache or p...

Run Apache 2.2 as a single httpd.exe for debugging.

I'm running Apache 2.2 in console mode on Windows to test an apache module I'm writing. By default, a parent httpd.exe is started (with one thread), which starts a child httpd.exe with a number of worker threads. Now I have to attach the debugger to the child process each time to be able to debug my module. Is there a way to configure ...

Why would you need a slash at the end of a URL?

Is there a difference between these URLs in regards to having slashes at the end of the URL? https://drchrono.com/about_us https://drchrono.com/about_us/ Do web frameworks and web servers (e.g. Apache, Nginx, Django) handle these requests differently? ...