apache

"title" attribute for <html:options> struts tag

Hi, In a regular select box you can show the full title on mouseover using "title" attribute in the "option" field. In Apache Struts, you make the select box with the "html:options" tag. I don't think this tag supports the "title" attribute. Is there another way to show the full title of an option on mouseover for the "html:options" s...

Redirect domain.com/folder to folder.domain.com permanently

Possible Duplicates how can I use mod rewrite to redirect a folder to a subdomain ... Apache rewrite based on subdomain (backwards) I have catch all rules set up and a subdomain working fine. However it's still possible to get to a part of my site from http://example.com/subdomain rather than http://subdomain.example.com/ Ho...

Different page provided for Google Crawl

Hi, I have built a Twitter client that's only one page: index.html. When being used, it draws in content from JSON feeds to populate various columns. The issue is hardly any traffic is coming in from Google except for searches on the site's domain name. This is because Google only crawls index.html when it's blank and before the user ent...

Perl REST flow layout

I'm using Apache and Perl (modperl), with Handlers to handle requests. I'm new to this, and I'm not quite sure how to lay things out in a sensible way. Right now I have the following: package MyClass::Handler; use warnings; use strict; # includes our %action = ( 'a' => \&a, # And more ); sub handler { my $a = shift; ...

How can I change the Apache ErrorDocument from a Perl handler?

Is there a way to have your PerlAuthenHandler, PerlAuthzHandler, or even your PerlHandler change the error document for a request? Example: When the user goes to a specific page and gets an error, I want to have a subroutine choose what error document errors are thrown to. ...

Apache RewriteRule not working without Page # specified.

Hello All, I have a rewrite rule set up in my .htaccess file: RewriteRule ^Crocodile-Style/([0-9]+)/?$ products/display.php?folder=crocodile-style&page=$1 [L,NC] http://test.bradp.com/drupal/Crocodile-Style/1 works OK. http://test.bradp.com/drupal/Crocodile-Style/ DOES NOT WORK. Apache throws a 404. The PHP logic defaults to page 1...

Setting up Railo in the same way as Multiple Instance Adobe CF

I'm looking to install Railo in the same way we currently do for Adobe CF. At present we run Adobe CF8 on top of JRUN 4, in a multiple instance setup. On our local sandboxes we use Apache as the web server. We then use Apache Virtual Directories to point to our codebase which exists outside of the CF Context. This gives us ultimate fle...

Apache on WIndows - growing VM Size of httpd.exe

I have a Rails app running with Apache on a Windows 2003 server . I am using the Apache Lounge version of apache. Httpd.exe process's Mem usage and VM Size is growing constantly and quite fast, while there is not much load. Most alarming is the VM size, as it appears to be growing at a much faster pace, reaching several GB in a couple o...

cakephp simpletest and rewrite rule

I've setup simpletest to work with my cakephp. I did it as prescribed in the book.cakephp.org. Everything seems to work fine - i've made my first test - super. But the visual layout of the testpage does not look right - I'm talking about www.mydomain.com/test.php. It looks like it has no CSS. I've seen this with the cakephp framework,...

How do I make my urls work with mod_rewite?

Hey everyone, I'm having rewite issues. http://test.bradp.com/drupal/Crocodile-Style/1 works OK. http://test.bradp.com/drupal/Crocodile-Style/ DOES NOT WORK. Apache throws a 404. The PHP logic defaults to page 1 without a page specified, so I know the script is fine. Here's the code: RewriteRule ^Crocodile-Style/([0-9]+)/?$ products/...

Force a prettified URL with mod_rewrite

So have rewritten my ugly php URL to something prettier: RewriteEngine On RewriteRule ^main/photo([^/\.]+)/?.html$ main/details.php?gid=$2pid=$1 However, now I want to force anyone who goes to http://www.example.com/main/details.php?gid=20&amp;pid=5 to redirect to htto://www.example.com/main/photo5.html I have tried the follow...

Proper permission for sendmail.cf when apache sends mail on linux

I have a web application (bugzilla) in apache that needs to use sendmail.cf . When it tries to use sendmail I get the error: /etc/mail/sendmail.cf: line 0: cannot open: Permission denied the web application is in group "apache" Permissions for sendmail look like: -rw-r--r-- 1 root root 58624 2008-03-29 05:27 sendmail.cf What do th...

My server intermittently won't serve pages to Safari 4... Need help!

I just upgraded my browser to Safari 4 and find that our website is having some major issues specific to that browser version. As I click through pages on our site it takes one or two clicks before the browser window simply goes blank. When the window goes blank, there is no source to view and no matter how many times I try to reload o...

Url redirect to another page on the same site

Basically I want to redirect all requests to my domain to a specific page. For example, redirect all requests to page X, unless you are already on page X, in which case you should just load it. But my solutions just create an infinite loop :/ because 'new users'cant post hyperlinks, assume $LINK = 'http://www.example.com/' I tried... ...

How do I create subdomain redirects using .htaccess?

Hi, I have a main domain MYDOMAIN.COM I want to make it easy for me to remember my Google Apps email URL, so I just want to redirect gmail.MYDOMAIN.CCOM to my Google Apps email URL using .htaccess to do a redirect. How do I do this? ...

localhost doesnot connect in offline mode?

have not tested on windows. but in ubuntu when u disconnect from the network, start ur Apache, and enter localhost in any browser, it does not shows ur localhost page, it is suppose to show. ...

Problems redirecting old domain to new with Apache and htaccess

My homepage is located at www.nazgulled.net and I bought a new domain which is www.ricardoamaral.net. Both these domains point to the same exact server. I'm having two problems with the redirection, my current code is this: RewriteCond %{HTTP_HOST} ^(www\.)?nazgulled\.net [NC] RewriteRule ^(.*)$ http://www.ricardoamaral.net/$1 [L] Fo...

Handling subdomains and https with .htaccess

In the .htaccess example below, if someone types in a URL like the following... http://mysite.com/ricks-motorcycles ...it will automatically load the page from x.com's subdirectory under public_html called "ricks-motorcycles". This technique is called Proxy Throughput. RewriteEngine On RewriteRule ^ricks-motorcycles/(.*)$ http://x.co...

Why my OpenX folder have been auto chmodded to 770 many times???

How can I stop it from auto chmodding? ,or are there any apps that help tracking chmodding on the host? Thanks. ...

How can I use .htaccess to automatically chmod a folder?

I'm looking at this article http://www.jwrmedia.com/lessons/htaccess/automatic-chmod So, I want more details about this method. Thanks. ...