apache2

Apache won't execute CGIs with Macports Perl5.8.9

I'm trying to get perl running under on my Apache 2 macports install. I'm hoping an experienced perl geek can help me out. I've... Got Apache running just dandy. Macports installed it with perl5 placeholder and perl5.8.9. Installed mod_perl2. Run the script to configure httpd.conf. Restarted apache. Written the following test script in...

Apache2: mod_wsgi or mod_python, which one is better?

Hi, I am planning to write web service in python. But, I found wsgi also does the similar thing. Which one can be preferred? Thank you Bala Update I am still confused. Please help. Better in my sense means: 1. Bug will be fixed periodically. 2. Chosen by most developers. 3. Additional features like authentication tokens like AWS...

Dynamic mass hosting using mod_wsgi

Hi, I am trying to configure an apache server using mod_wsgi for dynamic mass hosting. Each user will have it's own instance of a python application located in /mnt/data/www/domains/[user_name] and there will be a vhost.map telling me which domain maps to each user's directory (the directory will have the same name as the user). What i d...

Apache Custom Log Format to track complete file downloads

Hello, I am trying to write a reward system wherein users will be given reward points if they download complete files, So what should be my log format. After searching alot this is what I understand its my first time and havent done custom logs before. First of all which file should I edit for custom logs because this thing I cant fin...

Is it possible to put binary image data into html markup and then get the image displayed as usual in any browser?

It's an important security issue and I'm sure this should be possible. A simple example: You run a community portal. Users are registered and upload their pictures. Your application gives security rules whenever a picture is allowed to be displayed. For example users must be friends on each sides by the system, in order that you can vi...

double slash apache configuration

Hi, i'm deploying a ror application and now i have to rewrite the url (in apache) to add a prefix www to the url add / to the end of the url So i took the following approach: RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L] RewriteCond %{HTTP_HOST} ^foo\.com RewriteRule ^(.*)$ http://www....

My mod_rewrite won't work, what's wrong?

I have the following rewrite rule, but nothing is hapenning at all when I try to use it. I have the file in the directory server.blahblahblah.com/todo and the following is my .htaccess file: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteRule ^tasks/view/([0-9]+)?/$ controller.php?task=view&id=$1 Rewrit...

Problem with Office 2007 MIME Types, they download as *.zip in IE all other Browsers ok...

We have a custom CMS running on Tomcat, we added the following config: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx I can download those Excel 2007 Files without Problems in FF, OP, Chrome, Safari. But in IE I get a Download Box for a ZIP File. I changed IE8 Settings to recognize Filetypes from Fileextension...

index.php gets send as download request on random occasions...

Hello We have had a problem with getting "You want to download index.php/viewtopic.php ect" on our website for quite some time now, and been trying to rule out server load ect. Mainly trying that since it seems to happen mostly when the website has alot of visitors But given that by throttling all apache2 server load settings to lowest...

php symfony and apache2 - inst't serving .phtml

Hi, I have a problem with apache2 settings (Ubuntu system). I would like to run symfony project on my localhost but instead of serving .phtml files, browser is trying to download files. this is my file .host: 127.0.0.3 test this is apache2/sites-available/default file < VirtualHost 127.0.0.3:80> ServerName test Document...

PHP Error: Warning: session_start() [function.session-start]: Node no longer exists

Getting the following error when trying to start a session: Warning: session_start() [function.session-start]: Node no longer exists in file.php on line 3 The script uses SimpleXML to parse XML files from remote hosts. It's running on a Linux Ubuntu server with PHP 5.2.6. Has anyone come across this message before or have an insight i...

flex - SWFLoader - authentication

I have an issue where I am trying to load an external SWF using a SWFLoader, but the HTTP server requires authentication. <mx:SWFLoader source="assets/externalswf.swf"></mx:SWFLoader> Is there any way to pass the credentials to the SWFLoader? ...

Remote access to apache2 server

Hi all, I'm trying to test my iPhone application on the device. I have a mac computer which stores my development environment. Right now I can only access PHP files using the http://localhost/PHPFileLocation which does not work when I try to test my app on real device. How do I configure apache2 to be accessible from outside? Is it pos...

install CakePHP on Mac osx: apache problems

First time cake user and I'm having real apache problems. For some reason the .htaccess is trying to find File does not exist: /Library/WebServer/Documents/Users but there is no such directory as Users. I have tried setting up the following also: /etc/apache2/extra/httpd-vhosts.conf <VirtualHost *:80 > DocumentRoot "/Users/username/...

MPM Prefork Apache Uses Absurd Amount of Memory

Help! My apache processes are all using 115MB of memory on startup. Relevant information: Linux version (uname -a) Linux 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux Apache version (/usr/sbin/apache2 -v) Server version: Apache/2.2.8 (Ubuntu) Server built: Mar 9 2010 20:45:36 Top display (top...

Apache LogFormat IP Address

I am using the following LogFormat in my httpd.conf: LogFormat "%h %l %u %t \"%r\" %>s \"%{Referer}i\" \"%{User-Agent}i\" %a %t" combined It's working ok, but for some reason the IP address is coming out as ::1. Is there a particular reason why Apache isn't logging the users IP address? Edit: Here is an example log: ::1 - - [23/Mar/...

What is the right way to serve dynamically generated images using Apache and mod_perl?

I have an Apache2/mod_perl2 system up and running. I'm using GD to create an image on the fly, and I'm then printing it like this: $r->content_type('image/png'); binmode STDOUT; print $im->png; But is this the correct way to do things in mod_perl2? (Ignore the fact that I'm generating an image on the fly and not caching it etc ...) ...

Browsing to Subversion repository location indicated in Apache conf file

I have Subversion 1.6.6 and Apache 2.2.14 installed and working. I have made the following changes to the Apache httpd.conf file: #Uncommented by me for Subversion installation LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so #Added by me for subversion installation LoadModule dav_svn_module m...

How to remove date header from apache ?

hi everyone, I need to minimize Apache HTTP response headers, by now i reduced them as following HTTP/1.1 200 OK Date: Thu, 25 Mar 2010 21:57:41 GMT Server: Apache Content-Type: text/html I'd like to know if there is a way to disable Date and Server header, only for a certain virtual host. Thank you! ...

Limit Recursion Error / Rewrite Log file

I am getting an error from a probable infinite loop on my server. My set-up is an Apache2 server with all sites set-up using the Virtual Host method. Problem: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to ...