Re: [users@httpd] passing request to the server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'll assume you are just testing some code and trying to learn.  In
that case, I think you just overlooked a missed else in there (better
indention might help see that):

   if (!strcmp(r->uri,"/tiago/precisas/index1.htm")){
       r->uri = "/tiago/imprecisas/index1.htm";
   }
   /* Insert else here */
   else {
       ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,"print_test2: %s",
r->uri);
       return HTTP_NOT_FOUND;
   }

Or it is going to hit HTTP_NOT_FOUND on match or not.

-B

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux