Hello,
I am using a Wampserver 2.0 for database-web development.
When i ran the following the php code which is embbeded in my html form, the server crashes meanwhile other php processes on different pages are responding effectively.
I have checked my apache error log and saw the following message:
[Fri Oct 22 11:37:04 2010] [error] [c...
So I have a .htaccess file which is performing a rewrite from /testscript1.php/testvar1/testvar2 to
/testscript2.php/testvar3/testvar4
(this is an over simplification but you get the idea).
Now though in my testscript2.php script when i access the $_SERVER['REQUEST_URI'] variable i see /testscript1.php/testvar1/testvar2 rather than /t...
Hello,
I wonder if and how it is possible to write a custom "protocol handler" (listening at a custom port) for Apache 2 in PHP?
In C and mod_perl you can write so-called "protocol handlers", which intercept the early Apache stage (after a client socket connection has been accept()ed, but before any content has been written to it) and ...
I have apache 2.2 running with mod_rewrite as user/group www/www. I'm using the directive
RewriteCond %{SCRIPT_FILENAME} !-f
So that any actual file that exists in a document root is accessible.
There are multiple .zip files in the same directory that are downloadable, one of which is larger than the file that will not download.
You...
I am trying to do reverse proxy with configuration
# directive ifModule mod_proxy.c
ProxyRequests On
directive Proxy *
Order deny,allow
# Deny from all
Allow from all
directive /Proxy
ProxyPass / http://localhost:8080/mysocial
ProxyPassReverse / http://localhost:8080/mysocial
ProxyVia On
directive IfModule mo...
I've installed snow leopard on the old tiger and I tried to run apache2 by clicking system preferences->sharing->web sharing. It seems to run but if I try to access http://localhost or http://127.0.0.1 or http://192.168.1.6/ (my ip on my network) it doesn't work. I don't know where is the log file (no files on /private/var/log/apache2/)....
My question is about .htaccess
I am using WordPress 3.0.1 as the front end of my web application.
I want most HTTP accesses to follow the normal WordPress flow.
However, I have created a special "Page" in WordPress that has embedded PHP code that powers my web app.
URL's of this form "http://site.com/app/" already go to the correct pa...
I have some conditions and rules in my .htaccess:
RewriteCond %{DOCUMENT_ROOT}/assets/img$1/.$2.$4/$3.$4 -f
RewriteRule ^assets/img(.*)/[a-zA-Z0-9-_\.]*\.[^/]+\.[a-z]{2,4}$ assets/img$1/.$2.$4/$3.$4 [NC]
RewriteRule ^assets/img(.*)/[a-zA-Z0-9-_\.]*\.[^/]+\.[a-z]{2,4}$ assets/img/image.php?path=$1&file=$2.$4&template=$3 [NC,L,QSA]
The ...
Hello
First off let me start by saying that yes I have searched for this in google and in stackoverflow specifically, I have found many answers and tried them all. At this point I believe my only resource is posting the question myself, even if the scenario sounds repeated please be so kind as to try to help.
The situation is quite b...
I have a question about Django, unixODBC, FreeTDS, Apache2, mod_wsgi, that is somewhat similar to this question asked before on SO.
I have a Django website built to run on the latest Django, that is, 1.2.3. It uses managed models for the most part, in that, save for the session information, nothing is written to the DB by Django, only r...
All,
I've come across an interesting little quirk in one of my RewriteRules, which I wanted to resolve by the use of named back references. However from what I can see, this is not possible in Apache's mod_rewrite.
I have two incoming urls, each containing a key variable, which need to be rewritten to the same underlying framework acti...
Hi everyone,
I try to add an Apache login and pass authentification.
It works ... well, not as intended.
I have 2 server names, one ssh and a "normal" one.
This is how I've done it so far :
<Directory />
AllowOverride AuthConfig
order deny,allow
allow from XX.X.X.XXX 127.0.0.1
deny from all
AuthName "Login/Pass"
AuthType Basic
AuthUse...
I can do sudo $ service apache2 graceful and it'll do a graceful restart, but looking at /etc/init.d/apache2, the only way I can do a graceful shutdown is is running $ /usr/sbin/apache2ctl -k graceful-stop
But that results in a PID error: httpd (pid xxxxx?) not running
Obviously Ubuntu/Debian does not mean for me to run this command di...
I've setup two local vhosts (http and self-signed https) for billing.example.com and trying them in firefox with firebug. Http vhost only purpose is redirecting all requests to https.
Almost each time I request page from https, one or two files with associated resources (images, js, css, etc...) and sometimes php page itself return 400 ...
Hi Guys I have installed LAMP server on suse linux on Amazon. Here is the server info
Basic 32-bit Amazon Linux AMI 1.0 (AMI Id: ami-08728661)
Amazon Linux AMI Base 1.0, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.
I am trying to pass some special charters through a URL to PHP script but am not able to get it using $_GET['d...
I'm having a problem with file uploading. I'm using FastCGI on Apache2 (unix) to run a WSGI-compliant application. File uploads, in the form of images, are begin saved in a MySQL database. However, larger images are being truncated at 65535 bytes. As far as I can tell, nothing should be limiting the size of the files and I'm not sure whi...
How can I change/set permissions of a file or directory using asp.net under mono and apache2?
I have an aspx page that needs to check if a directory exists, if not, it must be created, but with group read permissions set. Tried with DirectorySecurity, but it throws PlatformNotSupportedException.
Apache is using www-data user and all ...
Hello, I am trying to achieve the following through mod_rewrite:
1. What is the basic directory structure?
/
main/ (folder)
a bunch of PHP files
some_folder/ (folder)
another_folder/ (folder)
... (an arbitrary number of such folders)
yet_another_folder/ (folder)
.htaccess(the magic goes here)
2. What I am trying to do?
In thi...
Hi,
I want to have a clean, efficient directory setup with VirtualDocumentRoot. (Reference: http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html).
In particular, I am thinking of the following:
1) http://example.com to be served by /apache_root/example.com
2) http://www.example.com to be served by /apache_root/www/example....
Hi!
I'm trying to write small application which allows to send dbus commands (to Amarok) through web page.
I'm using python + mod_wsgi, because I need to run the script with the same user as Amarok.
When I connect to the Amarok through normal shell, it works. But after connecting through the script, I get the following error:
DBusExce...