I'm working with an OS X 10.6 Server running Apache2 / PHP5 and having a problem with PHP not resolving hostnames when 'fopen()' tries to retrieve a file from a remote server. When run in interactive mode on the command line 'fopen()' works perfectly. However, when run through the web it will always fail with the error:
failed to open s...
Is it possible to have an apache mod_perl handler, which receives all incoming requests and decides based upon a set of rules if this request is something it wants to act upon, and if not, return control to apache which would serve the request as normal?
A use-case:
A legacy site which uses
DirectoryIndex for serving index.html
...
I just need some clarification on a couple of files.
My site has an admin subdomain and SSL in addition to the normal *:80 details found in the virtual hosts.
My question(s): Do I need to specify a 1) ServerName and 2) DocumentRoot in: /etc/apache2/apache2.conf?
I currently enable my site from this directory: /etc/apache2/sites-availa...
Hello.
Consider the following problem, please. I have got domain.tld with hierarchical sub-domains like the following:
a.domain.tld
b.a.domain.tld
c.b.a.domain.tld
... etc.
There is also hypothetical directory structure in the web-root:
/foo
/a.
/a./b.
/a./b./bar
/a./b./c.
... etc.
I would like to achieve such rewrite that would ...
Hi,
I'm running zend server on windows 7.
I'm using the htaccess from jooml:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GL...
Hello
I have a file structure that serves mutliple domains with a top level .htaccess pushing requests down to the domain specific directories:
...
ReWriteCond %{REQUEST_URI} !webroot/domains/www.sitea.com/
ReWriteRule ^(.*)$ webroot/domains/www.sitea.com/$1 [L]
ReWriteCond %{REQUEST_URI} !webroot/domains/www.siteb.com/
ReWriteRule...
Hi folks,
I am trying to pop up an iframe from a bookmark whose contents are from my test app. The test app doesn't do much but let me log in and set some session vars. First I developed this using Perl's Catalyst framework, and it worked great. I could log in to the test app in some window, or the iframe, and it would keep the session ...
I'm trying to create a MVC framework when I noticed the $_SERVER['PATH_TRANSLATED'] variable is doing this:
[PATH_INFO] => /test/test2/test3
[PATH_TRANSLATED] => redirect:/index.php/test/test2/test3/test2/test3
This is when I'm accessing the PHP file by http://domain.tld/test/test2/test3
Notice how it is repeating after /test/
T...
I am trying to open a file I have in my /var/www/ directory named cardlist.xml.
this is the code I am using.
import cgi
import os
open("./cardlist.xml", "r")
def crawlXml():
return 0
My error is
MOD_PYTHON ERROR
ProcessId: 11361 Interpreter:
'127.0.1.1'
ServerName: '127.0.1.1'
DocumentRoot: '/var/www'
...
I'm reading http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode but it seems like way too much work, I've been restarting my apache2 server gracefully whenever I make tweaks to Django code as it inconsistently picks up the right files and probably tries to rely on cached .pycs.
...
I have a django website running with mod_python and Apache. The current configuration directs all / traffic to the django site. Now, I need to enable userDir /~user on the machine as well. I have enabled the userDir module in Apache. Since, Apache is redirecting all the request to the django app, /~user is not working as the django just ...
Hi,
I'm using django with apache mod_python. I authenticate users via the basic auth handler (django.contrib.auth.handlers.modpython) [1]. My views get only an instance of AnonymousUser passed in request.user. What am I doing wrong?
[1]: it's an API that is https only, so it shouldn't be a security problem.
...
I'm can't figure out why I cannot get the reverse proxy for a particular (remote) website to work. (nb: the reverse proxy works for a number of other websites). I can access static files on that website through the proxy, but for some reason the homepage and other pages give a 404, "the page that you were looking for does not exist"
Wh...
Hi,
In our cakephp application, we do a
file_get_contents('http://my.web.com',... );
Recently we changed the ip address of my.web.com, and we modified our /etc/hosts file, and flush dns cache using /etc/init.d/nscd restart, and restarted apache.
However, file_get_contents still refer to the old ip address,
while if we do ping, nsl...
Using Apache2 (2.2.12) / Passenger (2.2.9)..
Have 2 apps running.. One runs fine in production mode the other insists on being in development mode.
Have booted mongrel into production mode and the app works fine.. (script/server -e production)
Tried the following with no result...
Forced the RailsEnv in the apache virtual host.
For...
If I haven't setup FastCGI or mod_php, does that mean my vanilla Apache2 uses CGI for PHP?
...
Hi,
I'm trying to get / compile / install mod_mono for Apache 2.2.4 on Solaris 10.
Apache Version: Apache/2.2.4 (Unix)
[/]# uname -a
SunOS wexch 5.10 Generic_118855-36 i86pc i386 i86pc
I have blastwave installed (blastwave.org), and am a little disappointed that it doesn't have a mod_mono package, or include mod_mono with other pack...
I am currently developing a module for Apache 2/2.2 and need to perform some cleanup before the main Apache process terminates (not the child processes).
I have searched extensively without finding any guidelines on which hook to use. Can anyone help point me in the right direction?
...
Dear All,
I have a setup with Drupal 6.12 installed on Ubuntu 9.10.
It took me a while to figure out how to enable the Clean URL...
but after I upgrade from 6.12 to 6.15... the radio on Clean URL was disabled and I tried so many different ways I found from google and drupal.org and was no help...
Can someone please tell me is there i...
Hi
Has anyone ever managed to get a datasnap system (BDS2006) running in apache?
I have set up my apache to acceot cinnections to the httpsvr.dll as per this article
http://www.distribucon.com/blog/HTTPSRVRWithApache.aspx
.
My TWebConnection objects connects perfectly but as soon as my clientDataset becomes active I get an error saying...