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...
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...
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...
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...
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...
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....
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...
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...
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...
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...
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...
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?
...
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...
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/...
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...
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/...
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 ...)
...
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...
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!
...
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 ...