05-04-2013
Out of curiosity, what happens when you remove the <IfModule> </IfModule> brackets?
It's possible that apache has not been configured to allow you to use these options in .htaccess.
Also, could you explain the intent of these rewrite rules?
8 More Discussions You Might Find Interesting
1. Solaris
Hello Everyone,
I am currently running a large Server with Veritas Volumen Manager, attached to a EMC.
uname -a
SunOS 5.8 Generic_117350-47 sun4u sparc SUNW,Sun-Fire-880
I have one directory that tends to change to a file.Once in a while and always in different time.The file is the... (1 Reply)
Discussion started by: Peterh
1 Replies
2. Shell Programming and Scripting
hi
i'm very new to mod_rewrite.
I can't seem to have this work.
I have a site which has 4 pages : home, links, adverts and contacts page.
the adverts page is linked to this url http://www.xxxxxx.com/adverts.php. What i want is that whenever the adverts page is clicked , it will show... (0 Replies)
Discussion started by: arsonist
0 Replies
3. UNIX for Advanced & Expert Users
A perplexing mystery...
please note that i am not a lacky, and the error below is misleading
recently something i do all the time broke (a script).
now when i run this script i get this error.
/usr/bin/awk: 0403-027 The parameter list is too long.
note that the (parameter list is... (9 Replies)
Discussion started by: nullwhat
9 Replies
4. Web Development
Here's my situation.
When a user access the site domain.com it redirects to /portal which displays SKIN1 by default.
When a user accesses the site domain.com/portal?branding=SKIN1 it displays SKIN1 by default as well.
When a user access the site domain.com/portal?branding=SKIN2 it... (0 Replies)
Discussion started by: Adrnalnrsh
0 Replies
5. Web Development
I'd like to translate a friendly url such as:
http://www.xxxyyyzzz.com/page/12345678/
to:
http://www.xxxyyyzzz.com/page/12/34/56/78/
Seems simple enough, but I cannot figure out how. Any one done this before? (2 Replies)
Discussion started by: markericksen
2 Replies
6. Filesystems, Disks and Memory
I burned identical raw encrypted data to three cds using my new external Toshiba drive. My internal IBM read only drive does not get an I/O Error when reading in Circumstance #1, but does get an I/O Error in Circumstance #2. But, the Toshiba drive can do both circumstances without an error.
... (1 Reply)
Discussion started by: darkstarxor
1 Replies
7. Shell Programming and Scripting
Hi everyone,
I can't seem to understand the behavior of sort on a particular case.
cat tmp25
1 a
10 b
20 c
2 d
I do that:
sort -k1,1 tmp25
1 a
10 b
2 d
20 c
This one I understand, it's what i expected, from a string point of view 1<10<2<20
sort -k1... (9 Replies)
Discussion started by: a.brassac
9 Replies
8. Web Development
Hi Team,
I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https.
Requirement below:-
want to match a word (test) on the url and if matches then it should rewrite to https.
example:-
... (1 Reply)
Discussion started by: arumon
1 Replies
LEARN ABOUT DEBIAN
apache::db
DB(3pm) User Contributed Perl Documentation DB(3pm)
NAME
Apache::DB - Run the interactive Perl debugger under mod_perl
SYNOPSIS
<Location /perl>
PerlFixupHandler +Apache::DB
SetHandler perl-script
PerlHandler +Apache::Registry
Options +ExecCGI
</Location>
DESCRIPTION
Perl ships with a very useful interactive debugger, however, it does not run "out-of-the-box" in the Apache/mod_perl environment.
Apache::DB makes a few adjustments so the two will cooperate.
FUNCTIONS
init
This function initializes the Perl debugger hooks without actually starting the interactive debugger. In order to debug a certain
piece of code, this function must be called before the code you wish debug is compiled. For example, if you want to insert debugging
symbols into code that is compiled at server startup, but do not care to debug until request time, call this function from a
PerlRequire'd file:
#where db.pl is simply:
# use Apache::DB ();
# Apache::DB->init;
PerlRequire conf/db.pl
#where modules are loaded
PerlRequire conf/init.pl
If you are using mod_perl 2.0 you will need to use the following as your db.pl:
use APR::Pool ();
use Apache::DB ();
Apache::DB->init();
handler
This function will start the interactive debugger. It will invoke Apache::DB::init if needed. Example configuration:
<Location /my-handler>
PerlFixupHandler Apache::DB
SetHandler perl-script
PerlHandler My::handler
</Location>
SELinux
Security-enhanced Linux (SELinux) is a mandatory access control system many linux distrobutions are implementing. This new security scheme
can assist you with protecting a server, but it doesn't come without its own set of issues. Debugging applications running on a box with
SELinux on it takes a couple of extra steps and unfortunately the instructions that follow have only been tested on RedHat/Fedora.
1) You need to edit/create the file "local.te" and add the following:
if (httpd_tty_comm) {
allow { httpd_t } admin_tty_type:chr_file { ioctl getattr }; }
2) Reload your security policy.
3) Run the command "setsebool httpd_tty_comm true".
You should be aware as you debug applications on a system with SELinux your code may very well be correct, but the system policy is denying
your actions.
CAVEATS
-X The server must be started with the "-X" to use Apache::DB.
filename/line info
The filename of Apache::Registry scripts is not displayed.
SEE ALSO
perldebug(1)
AUTHOR
Originally written by Doug MacEachern
Currently maintained by Frank Wiles <frank@wiles.org>
LICENSE
This module is distributed under the same terms as Perl itself.
perl v5.14.2 2008-04-27 DB(3pm)