apache

Serving static files with logic in django (keeping a downloadcount)

I have a site which enables the user to download certain files. However I want to keep a download count for each file so going the usual way by putting the static files on a different subdomain and then letting apache do the heavy lifting is not a way as well as HttpResponseRedirecting the user to a subdomain isn't good because then the ...

Apache's Velocity Template Engine -- Worst Software Package Ever?

So I'm using Velocity in a legacy project. And even rendering moderately large pages takes FOREVER. Literally 10+ minutes. There has to be some kind of bug I'm hitting... anyone else have bad experiences with Velocity in general? I'm about to start stepping through the source code and see where it hangs/etc but I wanted to see what SO h...

PHP HTTP server? Ports 80, 443-444, 1000-3000, 8000-9000. (No-Apache)

I will upgrading to Linux Debian 6.0 "Squeeze" on the server soon and I want to know how I can use Python as a web-server on many ports dedicated for different things.. Ports Directory Description 80, 443 /var/www/sitegen/ Take all domains and generate a site from the SQL DB 444, 1000-3000 /var/www/mana...

Create a server in apache initialization

Hi all, I need some advice regarding writing a module for the apache web server. This module needs to create a TCP server which will listen to incoming connection from another application in our system. The server is having its own protocol, and I use plain unix functions (socket, bind, listen so nothing fancy around there) to create th...

Mod rewrite problem: rewrite url with drupal

Hi, Im am working on a drupal website with acqui solar search. I have to use this url /search/apachesolr_search/, but I want to change it to 'search' instead. If u create an alias, my search doesn't work anymore... Can someone help met to write a function for the 'Mod rewrite' module or give another option? Thanks in advance ...

configuring apache subversion with Websvn

Hello CentOS release 5.5 (Final) svn, version 1.4.2 (r22196) Apache httpd.i386 2.2.3-43.el5.centos.3 I have a file called subversion.conf in the /etc/httpd/conf.d/subversion.conf LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so # Virtual path for websvn Alias /wsvn /var/ww...

Virtual Host using Apache

We have development team of 10 people working on Linux platform our application is hosted on Apache server Now what i want if every developer is having own codebase in his directory he can have his own httpd conf file which uses his code base and his port on that server and whenever he changes the code base he needs run only his apach...

DataMapper fails to open database - sqlite3 - Apache, Passenger, Sinatra

I've got a Sinatra app which uses DataMapper to connect to an sqlite3 database. APP_ROOT = File.expand_path(File.dirname(__FILE__)) DataMapper::setup(:default, "sqlite3://#{APP_ROOT}/db.sqlite3") If I rackup the app and connect it works fine, no errors, and the db is created. However if I run the app through Passenger I get the error ...

apache portable runtime binary for windows?

from http://apr.apache.org , apr only available in source format. any third party side we can get apr pre-compiled ready so that i can use with tomcat6. ...

Using netBeans for PHP development (Apache)

I have a project to do in PHP (5) and I want to use netBeans (6.8) as the IDE (Linux). But after a little search I found out that netBeans doesn't have apache2 server. In that case: Can I use netBeans as my IDE for PHP development? If yes, I would be thankful if you can provide some examples. If not, what are the other alternatives? P...

.htaccess gives recursion error on everything

I am trying to redirect all traffic through index.php. Here is my .htaccess file: RewriteEngine On RewriteRule ^(.*)$ /index.php?ref=$1 [NC,L] I'm always getting HTTP 500 errors, and I check the error.log and I see that its the internal recursion error. Can anyone help me with this? Thanks. ...

Can't execute ssh from php

Hi Everyone, I can't seem to execute the ssh command from any of the PHP functions like exec, system, passthru etc.. I've even tried /bin/ssh however no output is displayed Any ideas? I can confirm that by doing "su - www-data" and then trying ssh works, meaning that the apache user has access to ssh.. Thanks Update: Sorry everythin...

Wordpress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error.

We have just installed WordPress 3.0.1 and everything worked fine. However, as soon as we started to install the multisite functionality by following this tutorial, things started to go wrong. At the end of step 5, the tutorial has you update your wp-config.php file and .htaccess file. Once we made the reccommended changes to these files...

Missing MySQL in PHPinfo on Ubuntu Linux

I am working on a newly built Ubuntu server with Apache2, MySQL 5 and PHP 5.3.2 . It seems something is incomplete in the configuration. When I call phpinfo() there is no MySQL section in it. However, the "Additional .ini files parsed" section shows "/etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apac...

Equivalent of this htaccess for IIS7?

What is the equivalent of these rewrite rules: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] In IIS7? These are rewrite rules for Zend Framework and they work under Apache. I tried importi...

Mod Rewrite not working on my addon domain

I have a wordpress website on my main domain For the wordpress website i have this in my .htaccess file # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php </IfModule> # END WordPress I just created an addon domain ...

creating multiple repositories

Hello, CentOS 5.5 Subversion 1.4 httpd-2.2.3-43.el5.centos.3 I am trying to create multiple directories for each project under a project category. For example, we have projects for web, dev, test, etc So all web projects will have their own repositories and the same for dev, and test. My structure is this: /var/www/svn/repos/WEB/w...

access control lists for granting permissions

Hello, CentOS 5.5 Subversion 1.4 httpd-2.2.3-43.el5.centos.3 I have the following repository structure I am created multiple directories for each project under a project category. For example, we have projects for WEB and DEV So all WEB projects will have their own repositories and the same for DEV. My structure is this: /var/www/s...

logged out when form get submitted..... Strange problem

I am facing strange problem. I have form which has lots of hidden field and text field and one file field. And there are total six fields for selecting tagging on file which is to be uploaded. When user select less parameter or less tags then form get submitted properly. but when user select more parameters in all six fields and submit ...

How would I use mod_rewrite to turn this query string request in to a clean url?

How can I use mod_rewrite to take http://www.site.com/events?pg=4 and turn it to a clean URL, like so: http://www.site.com/events/4 ? Thanks for the help! ...