I am creating HTML form and using Python to code it. I have installed Apache version2.2 and Python version 2.6. Here is the code:
#!C:\Python26\Python.exe -u
#import cgi modules
import cgi
#create instances of field storage
form = cgi.FieldStorage()
#get data from the fields
first_name = form.getvalue('first_name')
last_name = form....
Hi,
I'm trying to install the mod_xsendfile Apache Module on Windows (7) x64 (using Apache 2.2) -- yes I'm doomed from the get-go, I know :-). Apparently there is :
a) No Win x64 binary for mod_xsendfile, just a Win32 binary from the module's website
b) No Win x64 binary for apxs from ApacheLounge
I've tried the usual LoadModule xse...
hi all , i am using ubuntu and i have some html pages and i want to host a website from my PC at my home. how can i do using apache2.I am new to Apache2. If any one know about it plz help me.
...
Does anyone know how to access/modify the POST request data using mod_perl2.
IN GET method one can get/set the request QUERY string:
$args = $r->args();
$prev_args = $r->args($new_args);
How to get/set the request QUERY string in POST method ?
...
I have a PHP site setup on my server that also has mod_wsgi + Python 2.5 on it.
Occasionally I'm going to be asked to provide a zip of the entire site, and I'd like to use Python instead of PHP to do this.
What's the most minimal configuration I could make so that my python script is web accessible in order such that it can wget and gr...
is there a way to send apache access log entries to oracle database at runtime...analyzing those entries from database instead of parsing access.log file is far better...i found some modules for logging this to myssql database but has somebody done that for oracle?
...
Hi all,
I'd like to server /blog from http://blog.domain.com. I'm using apache 2, rails 2.3, and passenger on ubuntu. I've tried this in the virtual host:
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /blog http://blog.domain.com/
ProxyPassReverse /blog http://blog.domain.com/
But it's not proxying, it's trying to...
I have an issue loading xdebug in apache server.
Here are my settings:
Apache 2.2.11
MySQL 5.1.36
PHP 5.2.0
Windows 7
Wampserver 2.0
php -i and php -m show that the xdebug module php_xdebug-2.1.0RC1-5.2-vc6.dll is installed.
However phpinfo() does not show that xdebug is installed. I have tried starting apache as a service, throu...
Hi,
So, it seems that when a client makes more than 1 connection to the web server ( Windows + Apache 2.0.x + PHP 5.1.6 ) it dies. e.g.
I put 1 phpthumb call - e.g.
<img src="/library/classes/3rdparty/phpthumb/phpThumb.php?src=/media/images/gallery/cart1.jpg&w=100&h=100" />
That works. But if I put like 3 on the page, it just loa...
Hi,
I have some links problem and I'm trying to solve the problem using htaccess.
I have a directory that contain images, for example:
PGPHX.203.jpg
PGPHX.80.jpg
PGPHX.137.jpg
...
I want that all the links that doesn't contain a *.number.jpg at the end to be pointed to *.203.jpg, for example:
FROM: PGPHX.jpg TO: PGPHX.203.jpg
38.108...
I have a Django 1.1 Apache2 server running. There is a JSON get request at a fixed URL that returns "stale" data when accessed via iPad/iPhone/Safari/Chrome, but is always up to date from Firefox.
By stale data, I mean that as the data the JSON represents changes, the broken requests don't get updated, their responses are getting cache...
I have a directory named dollars that contains a file index.php. I would like for the url http://localhost/dollars/foo to translate to dollars/index.php?dollars=foo. This is the .htaccess file that I currently have in the dollars directorty:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !^index\.php
RewriteRu...
I'm trying to do the basic mod_rewrite clean URL trick, where /category/item rewrites to /category/index.php?id=item. In the /category directory, I have this in my .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /category/
RewriteRule ^(.+)$ index.php?id=$1 [L]
It sends the request to the index.php script jus...
I'm developing for a bunch of sites on my local machine. Some of those sites ultimately run on php5.3, and some run on php5.2. Is there a way I can setup virtual hosts to use different versions of php for each?
...
Hey all,
I'm facing a problem with the deployment of my sites on my server.
What I want is to have a site hosted directly at the root and also at /site2.
Config now looks like this:
- /opt/dn/site1 contains Rails site 1 (so in here there's app, public etc)
- /opt/dn/site2 contains Rails site 2 (so also wtih app/public/...)
- /opt/dn/www ...
Could someone direct me to the correct mailing list or forum please. I'm running Ubuntu 10.04 and trying to install Axis C++. I searched the repositories & installed the following packages
libaxis2c-bin
libaxis2c-dev
libaxis2c0
libxerces-c3.1
libxerces-c-dev
I tried to enable the apache module with a2enmod axis2c but when I restart a...
I'm curious, is there a more efficient way to do the the following? Right now it works great, just seems like overkill...
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond...
Hi all
I am new to https ( HTTP using SSL). I have managed to generate a self signed certificate file and have added the following lines to the apache conf file:
SSLEngine on
SSLCertificateFile /path/to/cert/file/myfile.crt
SSLCertificateKeyFile /path/to/key/file/myfile.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdow...
I'm working on an upcoming project, but the team needs to access it online. I've setup (for now) Basic Authentication using:
<Directory /var/www/html>
AuthType Basic
AuthName "Staging"
AuthUserFile /etc/passwd
Require valid-user
</Directory>
But, I need one file to be publically ...
Dear all,
I would like to make my website to allow only one session at a time. For example, let say user has login to my website on firefox, if the user login again to another browser like opera on the same computer or different computer, the session on firefox will be destroyed. However, the session on firefox remained if it remains a...