I made an Apache virtual host for a web application that works fine, but I have a problem with the URL. I want my application to be accessed only using an url similar with: http://ip_address/app_name, but now the aplication can be access also with http://ip_address/.
My virtual host looks like this:
NameVirtualHost 192.168.5.235:80
<V...
Hi!
I'm developing a PHP application that uses HTTP response codes for communication as well as response bodies.
So this is a typical scenario in the PHP code:
try {
doSomething();
} catch(Exception $e) {
header('HTTP/1.1 500 Internal Server Error');
}
... and the typical code in clients looks like:
switch(re...
Hi,
I'm not sure whether this is the origin of the bug I'm trying to solve, however, I'm still not sure I correctly understood Apache doc...
Let's say I wanna redirect
toto.page?a=2&c=546EUE&stuff=blah
to
index.page?view=Blahblah/Toto&a=2&c=546EUE&stuff=blah
Of course, if there was other parameters, they should be preserved too.
Is ...
Hi,
One moment my local apache server was serving my php nicely. The next (I don't know of any settings changing in between) it doesn't serve them properly.
Given a php page, it will serve the pure html that was in that page, and just strip out the php code. This tells me that something is working, although not properly, because if th...
I've tried it before and remember that apache2 did not allow to send requests with methods other than HEAD,GET,POST to cgi. Is that true or did I just not find the correct solution back then?
I've found somewhere that a line like:
Script PUT /cgi-bin/put.pl
to access.conf could be used..
What I am trying to do is setting up simple Web...
I'm rethinking which modules I need for local PHP development. Which of these modules have you found essential for you, or rarely used, or never used for PHP development. Please share your experience, or share any other that aren't on this list.
a: actions_module, alias_module, asis_module, auth_basic_module, auth_digest_module, authn_...
Hi
I'm trying to write an AppleScript which will add new virtualhost by name and absolute path.
It works when I try on test files (txt files on desktop) but when I try real files (/private/etc/hosts and /private/etc/apache2/extras/httpd-vhosts.conf) it just does not work.
The problem seems to be somewhere around user permissions, but ...
Hello,
I'm having some difficulties with mod_rewrite. My directory structure (part of it) is:
index.php
.htaccess
app
controllers
models
views
...
public
javascripts
stylesheets
foo
bar
So, as you can see, all static files are in app/public. That's the reason I would like to route requests like:
http://...
I am trying to implemented an OpenID for our project(Zend, PHP, Apache), and hitting a weird problem. After user authenticates at the provider's side and is sent back to our website, apache gives 500 Internal Server Error response. Logs are completely blank.
I've noticed though that when using OpenID AX with Google, they returning way to...
Heya, how goes it?
I'm having an issue with apache2.
I have a bunch of sites working off virtual hosts on an apache2 box, and a few of them have apache auth setup. When it fails, I wanted to customize the error page (401?), and so I tried throwing in:
ErrorDocument 401 "Woops"
into the rule, but it didn't work. To make sure I tried th...
virtual() can be used only when running PHP as an apache module. My shared hosting runs it as CGI so it doesn't work. Is there any other method to do it?
Note: the subrequest is for static files that I'd like to let Apache serve (for performance, HTTP-headers caching, etc.). Right now this is handled by using an HTTP redirect (that I wa...
Hi
I have an Apache config which gets deployed to several different webserver platforms (uat, staging, development etc). The platforms are identical Redhat environments.
Each platform has an environment var "HOST_PLATFORM" of "uat", "staging", "development" etc.
I'd really like to be able to do something like this in my vhost:
<...
So I just got a nasty surprise when I deployed some code I thought I'd tested. It would seem there must be some difference between my test machine and my server. The exact same code, featuring a header redirect, worked perfectly on my test machine and not at all on the server. The redirect on the server simply didn't happen, leaving a...
Hi,
I'm using subprocess.Popen and getting IOErrors when running under mod_wsgi. The following code will work in a python term, or a django runserver, and under mod_python. If you put it under mod_wsgi (v2), it fails: (2, 'No such file or directory') I have tried many variations involving using subprocess.PIPE. I have tried to red...
I did the following to try to set mod_dumpio up properly:
Used a2enmod to enable mod_dumpio
Changed LogLevel to "debug" in apache2.config
Added "DumpIOInput On", "DumpIOOutput On" and "DumpIOLogLevel debug" to apache2.config
Issued "/etc/init.d/apache2 restart" to restart Apache
Issued "apache2ctl -t -D DUMP_MODULES" to make sure mod_d...
Hi,
My Application(.ear) is running in Jboss with any issues on 7001 port. There are following requirement as such with me.
Task 1. Integrate Jboss with Apache2 so all the request should be coming from Apache Instead of jboss
Task 2. Implement SSLwith apache2 so it should open with https instead of http.
For task 1, I have followed c...
We have a tomcat application which works fine in IE7/8 and Firefox. The only browser we are having issues with (that we care about at this point) is google Chrome. Users can navigate to the application fine and log in and do whatever they need to do in Firefox and IE. However, when trying to log in with Chrome, the session is apparently ...
I have this PHP file:
<?php
header('Content-type: text/xml; charset=UTF-8');
?><?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="hello world example" />
<Content type="html">
<![CDATA[
Hello, world!
]]>
</Content>
</Module>
I would expect it to return a Content-type:text/xml header.
What i...
Hello,
I have a window 2003 dedicated server, i have installed xampp on it.
So i tried to pass download using PHP script such as zina from pancake.org, phpIndexer php functions such as fread, fgets, file, file_get_contents;
If i download let say from apache mod_dirlisting, the speed is 1mbps however on same server with using php, the ...
Besides the name, what are the differences between loading one or another?
I got issues with APC and X-Debug, I know that is a quick way to crash Apache but my application relies in APC and I MUST profile with WebGrind so it's no option for me to disable either. So I'm trying to think out of the box.
What I can't do:
Disable APC or X...