Hi.. this might be a no brainer to some, but I am trying to specify some RewriteCond in an .htaccess file and I am failing badly.
Heres what I have :
RewriteCond %{REQUEST_FILENAME} employee [NC]
RewriteRule ^(.*)$ /resources/employee [L,R=301]
will redirect fine... but if I include any other rules that include 'employee' like th...
Hi i am trying to indlude a file by using require_once(). i am using xampp apache php server.
the file test.php is in htdocs drupal folder is also in the same directory where the include files is.
the code in line 5 is
require_once ‘drupal7/includes/bootstrap.inc’;
i am getting error
Warning: Division by zero in C:\xampp\htdocs\imp...
I'm having an issue with my rewrites exposing GET variables if the originating request isn't terminated with a forward slash (/).
Here's my rule:
# All requests are routed to PHP
RewriteRule ^(.*)$ framework/index.php?framework=$1&%{QUERY_STRING} [L]
If I visit:
http://www.domain.com/folder/
everything works great. If I visit:
htt...
My server doesn't seem to gzip my css and javascript files. It works for HTML.
Here's my config: http://pastie.org/1105941
And here's my result: http://i35.tinypic.com/audv0k.jpg
Also tested Google Page Speed, and made Apache2 log the compression results. They say the same.
What could be wrong here, since it does compress the HTML?
...
My goal is to run multiple Ruby on Rails web apps and one PHP application on Apache2 from a single server.
All of those virtual hosts will be Name-based and running on 80 port.
Is it possible? How can I do that? Will it have any negative performance impact because of these mods_x cooperation.
...
Okay what i want to do is ...
http://domain.com/hdu79ejo
above should be redirected to
http://domain.com/client/?share=hdu79ejo
where hdu79ejo can be any value.
But ...
http://domain.com/client
and
http://domain.com
should not be redirected at all.
Here is my code
RewriteEngine on
RewriteCond $1 !^(client)
RewriteRule ...
Hi,
I have apache + nginx as proxy,in nginx.conf I have:
server {
listen 94.23.xx.xx:80 default;
server_name proxy ; # "_" is for handle all hosts that are not described by server_name
charset off;
access_log off;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_ad...
I have some troubles configuring w3c validator at my local server.
I'm using fedora 9 and apache httpd.
I have installed witjh yum the package, w3c-markup-validator.
This is my apache configuration:
NameVirtualHost 127.0.0.2:80
<VirtualHost 127.0.0.2:80>
ServerName validator.example.org
DocumentRoot "/usr/share/w3c-markup-va...
I've been working on this for a while and have tried a lot of different solutions I've seen on the web and can't seem to get this to work.
I have a site at www.mydomainname.com. The page that I want to handle ALL page requests is www.mydomain.com/index.php. I'd also like to set this up to work for any other domains that I point to this ...
I have a web based application which server's content to authenticated users by interacting with a soap server. The soap server has file's which the user's need to be able to download.
What is the best way to serve these files to users? When a user requests a file, my server will make a soap call to the soap server to pull the file a...
I'm having an issue with Railo 3.1.0 running under Apache on Windows Server 2003.
When going to http://www.domain.com it defaults to index.cfm.
When going to http://domain.com it doesn't find index.cfm. http://domain.com/index.cfm works fine.
Anyone know where I can configure this?
...
I have a problem reading from Flex a url which has Transfer-Encoding: chunked because the FLex waits for the server to send terminate signal which in chunked transfer isn't sent...
...
One of the pages in one of my apps runs very slowly on the web server compared to my local test server. There are some radical differences in the environments that might explain it, but I'm hoping for a more solvable solution than that.
Server:
Solaris 10
Apache 2.2.9 Prefork
PHP 5.2.6
The server is run on a cluster of 4 not-even-a-yea...
now the situation is like am trying to view the www.b.com
it is going to document root of a.com
how can i change it as both a and b should work.?
can i use alias.?
like checking id there is bb in request go to document root of bb or else
go to document root of aa.
What can i do to achieve this?
...
This is a question to proxy and plugin developers.
The usual mindset when it comes to specific sites is "They make changes which breaks our plugin; we change the logic to make it work again".
But, what if the other side worries about this too? If we want to compile a set of guidelines and best practices for site development for a proxy...
I'm using a wildcard subdomain to manage most of my requests but I'm running into an issue of getting one of my subdomains (let's say, wiki.domain.com) to load first.
I understand that loading this inside an httpd.conf or something would just be a case of resorting which VirtualHosts load first, but I am using a2ensite and sites-availab...
Well, seems that so far the tutorial is working as it suppose to.
However, I can't get it to use styles and images.
I am using win7 + wamp + symfony sandbox 1.4
The project i the Jobeet tutorial.
the path for the www folder is:
"d:\dev\wamp\www"
My project folder is located directly under the www path and named: 'banana'.
I changed ...
I haven't used Apache Axis since my 1.x days so I am little rusty here. My question is this.... How do I go about using the @Autowired annotation in my Apache Axis2 service endpoint class? Is this possible? I did some google searching and have yet to find anything conclusive. I am using Apache Axis2 version 1.5.1 and Spring 3.0.3. I just...
I want to configure Apache to send to the user a 500 response with a custom 500 page when a PHP script raises a fatal error.
What I have now is that it will print the error inline with the page content which is good for development but not for production.
Thanks in advance.
P.S.:any good tutorial on how to tune php/apache for productio...
How do I register a new username/password on apache (.htaccess and .htpasswds) using php?
...