Is it possible using .htaccess or other apache powers to set a custom server value in the php array $_SERVER.
for example
if($_SERVER['is_special']) {
echo "Yeah for us!";
} else {
echo "No you fool!";
}
I realize I ask a lot of questions that the answer is no so feel free to say so.
...
Does anyone know the best way to do this? Apache, tomcat, linux
...
Hi everyone,
I am trying to learn PHP. I am having trouble getting Apache working correctly on my Vista Home Premium machine.
I have IIS7 running and I would like to have Apache running along with it. I was looking around on the web and some say that it would be fine having the two together as long as they are looking at different por...
I am a .Net developer who is starting to do more and more Java development at work. I have a specific question about caching that I hope you guys can solve or offer suggestions. We are starting a java project that will be deployed on a Linux box running JBoss. We are planning ahead and try to think about our caching strategy. One thi...
I have been working on a drupal test site for a while, which has a bunch of virtual hosts set up like this:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/path/to/root"
ServerName testsite1.example.com
</VirtualHost>
I have been using a modified host file to view each of these test sites, along the lines of:
12.0.0....
How is Apache in respect to handling the c10k problem under normal conditions ?
Say while running very small scripts with little data, or do I need to scale out if I use Apache?
In the background heavy lifting is done by a few servers running specialized software that processes the requests but I'd like to use Apache as a front. Is this...
I am curios about how one can set the request properties for a PostMethod in Apache Commons HttpClient?
I am refactoring some code written using HttpURLConnection class to post which looks like the following:
conn1.setRequestProperty(
"Content-Type", "multipart/related; type=\"application/xml\"; boundary="
+ boundary);
conn1.s...
Server: Apache
I'm looking to rewrite my urls in the following way, and I can't figure out a way to get it to work.
http://website.com/index.html
I want it to redirect to:
http://website.com/
So basically I want to load index.html, but not display it in the url. I also don't want to give it another name. I'm not looking for /index...
proxy? proxy_http? what else? When I include all of the available modules, rewrite works, but I'm having a hard time figuring out which ones are actually making the difference. I just learned about this today and I'm not entirely sure how it all works, so if you need more information than that, let me know.
Thanks!
...
I've recently download poi-src-3.2-FINAL from apache.org. Now I can't write these:
import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hwpf.*;
import org.apache.poi.hwpf.extractor.*;
Now I can't use the classes of HWPFDocument and WordExtractor. I can only
import org.apache.*;
Did I forget to download any other thing?...
I have the following task:
Create one website which is accessible with 20 different domains names.
Same files, same folder, same ip.
Question (shared hosting):
Can this be accomplish with a bare cname's pointing to the same common subdomain or do we need one static ip for all?
The problem is sure shared hosting and I'm trying to avoid...
We recently switched from using PCs at work to Macs, so I'm new to the *nix way of doing things. I have the default Apache running that shipped with 10.5, but I've noticed that when I drag files from a Windows server to my machine, the permissions are changed. Specifically, I'm writing data to an XML file, and occasionally after swapping...
RFC2616, 503 Service Unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server
How to configure Apache 2.2 to serve particular name based virtualhost 503 code with custom HTML page?
...
I'm trying to get my .htaccess to redirect all requests to the /blogs directory, except for requests that start with /staff. This is what I have so far:
RewriteEngine On
RewriteRule ^staff(.*)$ staff/$1 [L]
RewriteRule ^(.*)$ blogs/$1 [L]
It works fine for every case, except when I do http://mydomain.com/staff or http://mydomain.com/...
I am currently interpreting sub-domain wild-cards with php and i would like to handle them with .htaccess, user profiles will be accessed at http://username.mysite.com/ (or for some people http://www.username.mysite.com/) which should use /main.php?action=profile
The hardest part of this is making /error/i+am+a+test+message or /files/ia...
I need to run tomcat behind apache - am running suse 10
...
This is a continuation of:
http://stackoverflow.com/questions/623161/help-with-basic-htaccess-modrewrite
I was told to use
RewriteRule ^error/(.*) index.php?error=$1 [L]
RewriteRule ^file/(.*) index.php?file=$1 [L]
and
RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ [NC]
before each, but it dosn't really help me specifically.
I am u...
UPDATE: I added a revised question after playing around with it two answers below.
Hi there,
If you're reading this you're probably familiar with Apache's mod_proxy and its ProxyPass function. Like many others, I have the issue of having an application that I can access from outside our internal network, but that application itself acc...
I am doing PHP web application, with Apache.
There are a few configuration files ( like App.yml) whose content I don't want to expose to users under whatsoever circumstances. Is there anyway that I can tweak my Apache setting so that these files won't be available when hostile users query for them?
...
Have you used NPanday to integrate Visual Studio with Apache Maven? If so, did it work well? Would you use it again?
Edit: Less specifically, I suppose, the problem I'm trying to solve is this:
I have a C# solution in Subversion that relies on other projects elsewhere in the Subversion tree. I'd like to build my project using Hudson. I ...